cuba_pre_compact
Preserve session context across /compact by saving a summary snapshot before compaction and restoring it after to re-inject observations, decisions, and unresolved errors.
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 |