Free guide
The handover guide
Clear long Claude Code sessions on purpose without losing the thread: the agent writes a handover note, the next session loads it by its ID, and a script checks it against your code first.
PDF · 21 pages · 912 KB
The setup needs it. It holds the helper script and the three Claude Code skills the prompts install, with their checksums, the prompts ready to copy, and the kit's tests. It runs on macOS or Linux. The optional hook edits ~/.claude/settings.json, after a backup, and every install shows its plan and waits for your OK.
The Production Gap · Episode 02 companion
The handover guide.
How I clear long AI coding sessions without losing the thread, and the exact prompts to set it up in yours.
Manish Kumar
Version 1.1, November 2026
What's inside
Ten short chapters, and the prompts to set it up.
Five copy-paste prompts and an uninstall prompt install the kit, check your setup and write a handover for a teammate. The guide also shows how to test it from the receiving side, and says how it was tested and what it can't do.
The cost
Why I clear sessions on purpose
A long session costs more and remembers worse.
The mistake
My agent picked up the wrong notes
My setup wrote a good note every time. Reading it back was the problem, and three rules came out of it.
The note
What a good handover note contains
Written for a smart colleague who has never seen the conversation, with every claim tagged.
The check
How the check works
A status is only worth what was actually compared, so the helper tells you exactly which one you got.
Set it up
Five prompts, in order
Open Claude Code in any folder, paste a whole prompt, and let it do the work.
Test it
Test it from the receiving side
That's the whole lesson, so don't skip it. It takes five minutes.
Moving work
Where a note can take you
Another clone, another machine or another person: where you can resume depends on who can read the note.
Cheat sheet
Every day
The commands, when to hand over, where things live and how long to keep notes.
Undo it
Uninstall and roll back
The uninstall prompt removes only what the kit installed, and keeps your notes.
For teams
None of this is specific to AI
Shift changes, on-call rotations, someone going on leave: the same three rules apply.
Who it's for
For anyone whose long Claude Code sessions get expensive and fuzzy.
- You want to clear a long session on purpose, without the next one working confidently from an old picture of your project.
- You work in worktrees or a second clone of the same repository, where picking up the newest note can load the wrong one.
- You hand work to teammates too, and want the same three rules for people as for agents.
What you need
- Claude Code on macOS or Linux, with python3 3.9 or newer and git
- The companion folder, downloaded and unzipped
- About five minutes to test it from the receiving side
Tested on macOS with Claude Code 2.1.327, and not yet on Linux. Windows isn't supported, and neither is a custom CLAUDE_CONFIG_DIR. On a work machine or a company repository, check your organisation's rules before you install hooks.
Before you start
A match means the code is where the note left it, not that the note is right.
A handover note is still a summary: it keeps the task state and decisions that matter, not every detail of the conversation. The helper checks the code against what the note recorded and says exactly what it could and couldn't compare.
Clearing a session is not always cheaper, and the guide says so: sometimes letting Claude Code compact is the cheaper option. Notes stay on your computer and the kit uploads and syncs nothing, but a note's text is part of your conversation with Claude.
Created by Manish Kumar.
Version 1.1, 18 November 2026. It replaces version 1.0 from earlier the same month, and its prompts upgrade an existing install in place.
PDF · 21 pages · 912 KB
The setup needs it. It holds the helper script and the three Claude Code skills the prompts install, with their checksums, the prompts ready to copy, and the kit's tests. It runs on macOS or Linux. The optional hook edits ~/.claude/settings.json, after a backup, and every install shows its plan and waits for your OK.