consolidate
Reduce session log size by compressing old finished sessions into durable entity notes, preserving key knowledge and archiving originals.
Instructions
Compress old finished sessions into durable entity notes ('sleep').
Call this when a project's session log has grown large and you want to reclaim space while keeping the lasting knowledge: it distils old sessions into the durable entity notes and archives the originals. Requires a configured LLM (HANDOFF_LLM_MODEL); it is the only step that uses one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project to consolidate; defaults to the current project. | |
| older_than_days | No | Only fold sessions finished more than this many days ago. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |