Step-by-step answer
Stretch 30–45 min6 stepsRe-inject matter state after compaction in Claude Code
A SessionStart hook registered for the compact source that re-reads a synthetic matter.json after every compaction and adds it to Claude Code's context as a short, authoritative Markdown block. The facts live in a file the hook reads, never in the conversation, so a summary can't paraphrase them.
Back to the exercise