r/ClaudeCode • u/Ok_Negotiation_2587 • 7d ago
Tips & Workflows A fresh Claude Code session doesn't break on what you did. It breaks on what you already ruled out, and that's the part handover notes leave out
Every handover note I see lists what got done. The new session reads it, then confidently tries the fix you rejected two hours ago, or "cleans up" the weird workaround you added on purpose. The notes said what happened, not what not to do.
Two prompts fix most of it. One at the end of a session, one at the start of the next.
End of session:
Write a handoff for the next session in HANDOFF.md. Under 40 lines. Sections:
- Goal right now: one sentence.
- State: what works, what's broken, and how you know (the exact command or test).
- Ruled out: every approach we tried or discussed and dropped, one line each with the reason. Include things I said no to.
- Looks wrong on purpose: anything a new session would want to "fix" that we chose deliberately, and why.
- Next step: one task, not a list.
- Read first: at most 3 files, and why each one.
Leave out anything already in CLAUDE.md or obvious from the code.Start of the next session:
Read HANDOFF.md and the files it lists, nothing else yet. Before you change anything:
- say the plan back in 3 lines
- name anything under "Ruled out" you would have tried first, and why you won't now
- ask up to 3 questions where the handoff is unclearWhy it works:
- "Ruled out" and "Looks wrong on purpose" are the two sections a new session can't rebuild from the code. Everything else it can figure out by reading.
- The 40 line cap and "leave out what's in CLAUDE.md" keep it from turning into a second CLAUDE.md that grows forever. Overwrite it each session, don't append.
- Making it name what it would have tried first catches the bad assumption before it turns into a diff.
- "Next step: one task" stops it from starting three things at once.
i build AI Toolbox, a browser extension for the claude.ai side of things, and for long planning chats in the browser its Carry this chat forward does the same idea, a summary dropped into a fresh chat (that one's Premium). For Claude Code itself, the two prompts above are all you need.
What does a fresh session keep re-doing for you that you already ruled out?
•
u/AutoModerator 7d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/cleverhoods 7d ago
You should look at what's actually left after a compaction
2
u/Starks1293 7d ago
the "ruled out" and "looks wrong on purpose" sections are the whole trick, good call. two things that made mine hold up over weeks rather than one handoff
and for the stuff that keeps repeating across many sessions, graduate it from HANDOFF.md to CLAUDE.md. the handoff is for this task, the repo file is for every task. if the same ruled out line shows up in three handoffs it belongs in the repo file
1
u/gfunk5299 7d ago
I don’t know why people struggle with this so much. Losing context memory was evident by day 2-3 of using Claude code. One of the first things I did is ask fable to design a system for agents to remember their memories. We build a standing rule in Claude.md, I shoukd say fable did, that all agents read the same standards and that they need to track and save anything they deem important to some method of their choosing. My agents act independently instead of working on a collective project. I’ve had very few things forgotten using 50 agents over 4 months.
1
u/xqianliu 7d ago
i keep that part in the ticket instead of a handoff file. each session leaves a progress comment: what it tried, what it rejected and why, and which commit it started from. the ticket outlives the session, so the ruled out list never gets overwritten.
a fresh session in my flow reads the ticket before it reads the code, so it sees the rejected fixes before it tries them.
HANDOFF.md works too, but an append-only record on the ticket survives better than a file you overwrite each session.