Consolidate Memories
consolidate_memoriesConsolidate recent project sessions into a digest highlighting decisions, open questions, and tech stack facts.
Instructions
Run memory consolidation for a project to build a structured digest.
Analyzes recent sessions and extracts decisions, open questions, and tech stack facts. Free tier: up to 3 consolidations per day. Pro: unlimited.
Returns a digest dict with status, decisions found, open questions, and the formatted digest_markdown for reference.
Acquires an exclusive lock; returns status='lock_held' if another consolidation is already running.
Args: project: Project name (matches the --project tag used when saving sessions) surface: Surface to consolidate ('code', 'cowork', 'chat', etc.) or None for all max_sessions: Maximum number of recent sessions to analyze (default 50) mode: 'heuristic' (free, default). 'llm' requires Pro (v0.6.1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | heuristic | |
| project | Yes | ||
| surface | No | ||
| max_sessions | No |