Save & compact ZipMem memory
zipmem_save_and_compactCompress and merge your session into long-term memory. Provide structured blueprints, file anchors, and lessons to preserve architectural facts and fixes without raw code.
Instructions
Compress the current session and merge it into long-term memory. CALL THIS when the user signals they are done (exit/quit/goodbye/wrap up) OR when you sense your context window is nearing capacity. Provide your work as structured sections: blueprints (verbatim architecture/schemas/decisions), anchors (file coordinates instead of raw code), and lessons (distilled bug fixes). Never include raw code blocks — use anchors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchors | No | File-coordinate anchors that replace raw code blocks. | |
| lessons | No | Bug resolutions and gotchas distilled into lessons learned. | |
| blueprints | No | New/updated architectural facts to preserve verbatim. | |
| project_dir | No | Absolute path to the project root. Defaults to CLAUDE_PROJECT_DIR, then the nearest .zipmem/ ancestor, then cwd. | |
| session_summary | Yes | One paragraph: what was accomplished this session. |