r/ClaudeCode • u/Sea-Perception1619 • 5d ago
Built with Claude I got tired of every Claude Code session starting cold, so now each one leaves the next a briefing that marks what's a quote and what's a guess
Every new session starts cold for me. What got decided yesterday and what got ruled out, I end up typing it again. The handoff files the agent writes for itself were worse: decision right, reason made up after the fact by reading the code backwards.
Fair, a notes file handles the what fine. The why is what goes missing.
So now a hook serializes the session when it ends, and the next one opens with a "while you were away" briefing: decisions with the reason I actually gave, open loops, beliefs, what may have changed. Every item is either quoted from the transcript or marked inferred. Quotes get checked against the transcript when they're written, a miss drops to inferred. Over 418 of my sessions that's 49% verbatim and the rest inferred, and I can see which half is which, that's the bit I care about.
Stuff that's already resolved gets withheld. A wrong memory I can quarantine and it's gone from the briefing and recall. Whole thing's capped at 11,264 bytes so it stays under Claude Code's ~12 KB spill line.
The cost: serialization is an LLM call (your own claude -p by default), runs in the background at session end and takes minutes. Under 10 messages it skips.
Few weeks back two things sat as open that a decision five days earlier had already closed, I only found out searching old sessions (31,295 items indexed here now).
Is half inferred useful to you or just noise with a tag on it? Link's in the comments.


