Handoff for Claude Code
github.com/salmanzafar949/claude-code-handoff- Category
- Developer Tools
- Rank
- No. 4459Tools index
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Coding
- Interfaces
- Agent Skill / Plugin
- GitHub
- 1 stars
- Date
About
A Claude Code plugin that changes who writes the summary when a long session nears auto-compaction. At 90% of the compaction point, the agent that did the work writes a Markdown handoff (goal, decisions, done, in progress, next step), the context is cleared, and a takeoff continues from that file. If no handoff can be made, normal compaction runs. The author reports benchmark gains from 118 clears, which have not been independently verified.
At a glance
Handoff is an MIT-licensed plugin for Claude Code. It changes who writes the summary when a long session runs out of context. At 90% of Claude Code's auto-compaction point, it asks the agent doing the work to write a Markdown handoff file with fixed sections: goal, decisions, done, in progress and next step. It then clears the conversation to that file. Try it if long sessions lose decisions after compaction. It is a one-person project at version 0.1.2, built on an early-access hooks interface.
Good fit
Developers whose Claude Code sessions regularly fill the context window, and whose agent, after /compact, asks again about settled decisions, rereads the same files or repeats finished steps. It also suits anyone who wants a readable copy of a session's state on disk and wants to pick up in a fresh session with /takeoff instead of resuming a long transcript.
Consider something else when
Skip it if your sessions rarely reach compaction. The README says it does not shrink any turn while the context is still below the trigger. Skip it if you use a coding agent other than Claude Code, or if you need tooling that will not break when Claude Code updates, since the plugin relies on an interface the author calls early access.
Start here
In Claude Code 2.1.275 or later, run /plugin install handoff --marketplace salmanzafar949/claude-code-handoff. You can also copy the repository's handoff folder to ~/.claude/skills/handoff/ and restart Claude Code. Running claude plugin list should then show handoff@skills-dir. After that it runs automatically. To check it straight away, run /handoff and look for a new file in ~/.claude/handoffs/ under your project's folder. Run /takeoff to continue from the newest handoff, including in a new session.
Cost and requirements
The plugin is free under the MIT licence and needs Claude Code 2.1.275 or later. The README says writing a handoff costs about one normal agent answer. When the fallback has to write one, it makes one call to the model your session already uses, as a fork of the same conversation, so most of that input is billed at the prompt-cache rate. According to PRIVACY.md and the README, the plugin makes no network calls of its own and keeps its handoff files in ~/.claude/handoffs/ on your machine.
Limits to know
The headline "86% less context" comes from one developer's transcripts, all with a 1M-token window. Only 8 of the 118 measured clears used a handoff, and the README says this was not a controlled test. The plugin depends on Claude Code's early-access hooks interface. If an update breaks it, Claude Code falls back to its normal compaction. The trigger is only checked when a turn ends, so one very long turn can reach compaction first, and then the fallback writes the handoff. The plugin also turns off Claude Code's pre-written summary for the main conversation and leaves subagents alone. A takeoff loads at most 24,000 characters of the handoff. In versions up to 0.1.1, the agent's handoff was saved but never used, so update older installs. The author asks users to treat it as a trial.
Related work
- Claude Code (complement)
- Anthropic (context)
Still unclear
- Are the context savings similar with smaller context windows, such as 200K tokens? The published benchmarks only cover a 1M-token window.
Sources checked 2026-12-01. Source-based assessment.
Similar tools
Tags
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.