Hi Jake and everyone,
I run my work through an ICM setup using Claude in VS Code (the Claude Code extension): numbered stages, CONTEXT.md contracts, outputs as the handoff. Some of my sessions get long enough that the chat autocompacts, and I'm trying to make sure nothing gets lost when that happens. Right now I rely on the ICM way: every decision gets written to its file at each checkpoint (stage outputs, run logs, a "start here" note for open items), so compaction only shortens the chat, not the record.
I'm considering adding two hooks (Claude Code's hook settings, which also work in the VS Code extension):
- PreCompact: saves a copy of the full transcript to a private local folder before compaction (auto-deleted after 14 days).
- SessionStart (after compact): automatically reloads the "start here" note so the agent picks up where it left off.
My questions:
- Do you use hooks like these with ICM, or do they go against the "files carry state, load only what the stage needs" idea?
- If you'd skip them, how do you handle details that come up mid-conversation, before they reach a stage output?
- Is a single "start here" handoff file at the root a good pattern, or should handoff notes live inside each workspace?
Thanks!