--- id: c0d10ee1-07e1-4697-a6b6-ae7bb1edfcbc type: configuration title: "Auto-invoke /save-memories at 25% context remaining before compaction" tags: [cognitive-memory, claude-code, configuration, compaction, automation] importance: 0.6 confidence: 0.8 created: "2026-02-19T22:20:13.284077+00:00" updated: "2026-02-20T04:32:33.773548+00:00" relations: - target: 5cb26f44-8100-413d-8fa1-3668472a7672 type: REQUIRES direction: outgoing strength: 0.8 edge_id: 1876b305-57b5-4491-8b87-cb85ae5745f6 --- Updated project CLAUDE.md to automatically run /save-memories when context reaches 25% remaining, replacing the old "ask to update docs" instruction. This ensures session learnings are captured before compaction loses conversational detail. The /save-memories command analyzes the conversation since the last memory save, builds a structured summary, and dispatches a background memory-saver agent. Combined with the SessionEnd hook (session_memory.py) as a safety net, this creates two layers of automatic memory capture: proactive (pre-compaction via /save-memories) and reactive (post-session via hook). The instruction lives in the project CLAUDE.md at /mnt/NV2/Development/claude-home/CLAUDE.md under Core Instructions.