handoff

handoff is a command for Claude Code from longthread/claude-plugins. It costs 17 tokens per session (3,042 once invoked), scanned A, original, MIT.

A command for closing a work session by checking the actual project state and recording what was learned for the next session.

In plain words
What is it for?
Use it to inspect Git history and changes, run the project's quality checks, update the project ledger, and answer focused questions before handing work over.
Why use it?
It prevents handoff notes from becoming a simple changelog that misses test results, mistakes, open questions, and the real state of the code.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the programme plugin — 5 commands, 4 hooks shipped together

Good fit Use it to inspect Git history and changes, run the project's quality checks, update the project ledger, and answer focused questions before handing work over.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add longthread/claude-plugins
Claude Code
/plugin install programme

Made for: Claude Code.

Or install programme, the plugin that ships this one along with the rest of its 5 commands, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for handoff

README.md
[![agentmods](https://agentmods.dev/badge/commands/longthread/claude-plugins/handoff/github.svg)](https://agentmods.dev/commands/longthread/claude-plugins/handoff)
Your own site
<a href="https://agentmods.dev/commands/longthread/claude-plugins/handoff"><img src="https://agentmods.dev/badge/commands/longthread/claude-plugins/handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for handoff

Your own site · 80×15
<a href="https://agentmods.dev/commands/longthread/claude-plugins/handoff"><img src="https://agentmods.dev/badge/commands/longthread/claude-plugins/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,042 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.03042
Opus 5.5 $0.00007 $0.01217
Sonnet 5.5 $0.00003 $0.00608
Haiku 4.5 $0.00002 $0.00304

Measured 10d ago against content hash e3e24b564d48, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

handoff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/programme/commands/handoff.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Close out the current thread of work on programme $1 (resolve as /programme:resume does).

A handoff whose structure is right and whose content is a changelog is worthless. What makes one valuable is what got noticed during the work. Ask accordingly.

1. Measure the state yourself

Read .claude/session-continuity.json if it exists for docsRoot and compareBranch, as /programme:init does. Never accept a figure from this conversation — including one you stated earlier.

git fetch
git status --short
git log --oneline -10
git rev-list --count "<compareBranch>..HEAD"
git rev-parse HEAD

Run every gate in the ledger's Gates table and record the real output in last run and result. If the Gates table is empty, ask what this project's gates are and fill it, including the trust column and the flake rate for any gate that has one.

2. Interview — do not fill blanks

Draft all five answers before asking anything. Each cites its evidence — a commit sha, a command and its output, a file:line, a gate run. Questions 4 and 5 look forward; for them, evidence means the arc row, or the spec or plan at file:line, that the answer derives from. Then, by the programme's mode — INDEX.md's mode cell, read as INDEX.md's header comment states (the session-start Mode: line reports the same as of session start; if they differ, the cell wins):

  • assisted — show the whole draft; the user edits or approves each answer.
  • supervised — ask the user only the questions whose draft has no evidence; keep the rest.
  • autonomous — keep only the answers with evidence and leave the others out of the ledger entirely — no UNVERIFIED placeholder. The second ask on question 2, below, does not apply.

The questions are not interchangeable with "what did you do?", which produces a changelog.

  1. What did you measure? Not what you did — what number, output, or observation do you now have that you did not have before?
  2. What did you get wrong, and what would the next session repeat if you do not say so?
  3. Which claims already in the ledger are now false?
  4. What is the next terminal condition — a command, and the output that means it is done?
  5. Does the next phase still sit where ## The arc says — and is any later phase's work cheaper taken now? Ask it against the table, row by row, not from memory. Two shapes to name out loud: work this phase would build that a planned phase later deletes, and work scoped out as "a later phase's" that costs less inside this one than it will on its own. If the answer is "nothing to change", name which rows you read to conclude that — the failure this question exists to catch is answering it from memory.

Read the full file on GitHub · 209 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · +89 lines e3e24b564d48
  2. 1mo ago First seen · 120 lines · 17 tokens per session scan A 3629bf01cc38

Subscribe to this mod's changes

handoff is a command published in the GitHub repository longthread/claude-plugins (1 stars, last pushed 11d ago), licensed MIT. It adds 17 tokens to every session and 3,042 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.