prepare_wrap
Compress recent session episodes into continuity patterns at session boundaries. Identifies emerging patterns and stale information to maintain intelligent memory.
Instructions
Prepare a compression package for session wrap. Call this at session boundaries — when work is ending, the user says to wrap up, or the session is getting long. Returns all episodes since the last wrap, the current continuity file, stale pattern warnings, and compression instructions. Marks a wrap as in-progress. After calling, follow the returned instructions to compress episodes into an updated continuity file, then save with save_continuity. The compression step is where the real thinking happens — patterns emerge that weren't visible in the raw episodes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | Maximum size of the continuity file in characters. Default 20000. | |
| staleness_days | No | Days without validation before flagging patterns as stale. Default 7. |