cuba_pre_compact
Preserve session context before compaction with a snapshot, then restore it afterward to maintain observations, decisions, and errors without loss.
Instructions
Compaction-survival protocol (v0.8). Before the agent runs /compact, call action='snapshot' to persist a dense markdown summary of the active session (recent observations, decisions, unresolved errors, pending embeddings, goals). After compaction, call action='restore' to retrieve the latest snapshot for the active session and re-inject it into context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | snapshot persists a session summary; restore returns the latest |