handoff

handoff is a command for Claude Code from smrafiz/claude-supercharger. It costs 0 tokens per session (1,399 once invoked), scanned A, original, MIT.

A command that creates a structured summary for continuing work in a new coding session.

In plain words
What is it for?
Used to record Git status, recent commits, changed files, workflow context, and a deeper handoff with memory details when the exact --deep option is provided.
Why use it?
It preserves important project state and findings so another session can resume without reconstructing everything.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md.

Part of the supercharger plugin — 37 commands, 10 agents, 28 hooks shipped together

Good fit Used to record Git status, recent commits, changed files, workflow context, and a deeper handoff with memory details when the exact --deep option is provided.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/smrafiz/claude-supercharger/handoff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/smrafiz/claude-supercharger

Made for: Claude Code.

Or install supercharger, the plugin that ships this one along with the rest of its 37 commands, 10 agents, 28 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/smrafiz/claude-supercharger/handoff/github.svg)](https://agentmods.dev/commands/smrafiz/claude-supercharger/handoff)
Your own site
<a href="https://agentmods.dev/commands/smrafiz/claude-supercharger/handoff"><img src="https://agentmods.dev/badge/commands/smrafiz/claude-supercharger/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/smrafiz/claude-supercharger/handoff"><img src="https://agentmods.dev/badge/commands/smrafiz/claude-supercharger/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,399 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.00000 $0.01399
Opus 5 $0.00000 $0.00700
Sonnet 5 $0.00000 $0.00280
Haiku 4.5 $0.00000 $0.00140

Measured 9d ago against content hash c472ade17fb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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.

commands/handoff.md · 126 lines

How it starts

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

Generate a structured session handoff brief. Context: $ARGUMENTS

This produces a machine-readable resume that can be pasted into the next session or consumed by session-memory-inject.

Modes. Default is the terse brief below. If $ARGUMENTS contains --deep, ALSO do Step 4 (extended brief) and Step 5 (memory pass). That exact spelling — no aliases.

Deep mode is for the end of a long or expensive session — one that burned hours, changed direction, or produced findings that would cost real money to rediscover. It is not the default because most sessions do not earn it, and a brief nobody reads is worse than a short one somebody does.

Step 1 — Gather state Read git status, recent commits, modified files, and any .claude/supercharger-memory.md.

Step 2 — Compile brief Fill in every field. Leave nothing blank — write "none" if empty.

Redact before writing. This brief is assembled from git output, config, and command history — the places secrets actually live. Strip API keys, tokens, passwords, connection strings and personal data. Never paste a config dump verbatim to "capture state"; describe it instead. A handoff is read by a fresh agent that has no idea which strings are secret.

Reference, don't restate. If it is already in a commit message, CHANGELOG entry, ADR, issue, PR or diff, link the path or ref instead of copying it. The brief is for what is not recoverable from the repo: why a decision was made, what was tried and abandoned, what is half-finished. Anything git can already tell the next session is bloat.

Step 3 — Write to file Write a session-scoped file so concurrent sessions in the same project don't clobber each other's brief. Get this session's id from the CLAUDE_CODE_SESSION_ID environment variable and save to .claude/handoff-$CLAUDE_CODE_SESSION_ID.md in the project root (e.g. bash -c 'echo "$CLAUDE_CODE_SESSION_ID"' to read it). If that variable is empty, fall back to .claude/handoff.md. The auto-load hooks (session-memory-inject, post-compact-inject) prefer this session's own file, then the newest recent one, then the legacy unsuffixed path — so the suffixed name loads correctly on resume.

Output format:

## Handoff — [project name] — [date]

### Done
- [completed item with file paths]

### In Flight
- [started but incomplete, with current state]

### Decisions Made
- [decision]: [rationale]

### What Failed
- [approach]: [why it didn't work]

### Blockers
- [blocker]: [what's needed to unblock]

### Files Touched
- [file path]: [what changed and why]

### Resume With
[paste-ready prompt for next session — 2-3 sentences max]

### Start With
[the 1-2 Supercharger commands the next session should run first, and why —
 e.g. "/resolve-conflicts — the rebase is mid-flight" or "/why — a guard fired
 and the cause is unclear". Write "none" if nothing applies. Use /supercharger
 <situation> if you are unsure which command fits.]

Deep mode only (--deep)

Step 4 — Extended sections. Append these to the brief above. Every one is for something a fresh agent CANNOT reconstruct from the repo. If a section has nothing real in it, write "none" and move on — padding a section is how these files stop being read.

### Measurements
[Exact numbers with the fixture that produced them: "safety.sh 50ms at 43 bytes,
 1520ms at 41KB (scratchpad/safety-vs-len.py)". Never round, never paraphrase a
 quantitative result. A number without its method is a rumour.]

### Rejected — do not rebuild
[Each approach that was considered and dropped, WITH the evidence that killed it.
 "Structural injection slice: caught 4/4 injections, fired on 9/12 ordinary
 command outputs — rejected." Without the measurement the next session re-derives
 it and ships the thing that fails.]

### Dead ends
[Investigations that produced nothing, so they are not retried: paths searched,
 tools that could not answer, hypotheses that were disproved and how.]

### Open questions
[What is genuinely unknown, and what evidence would settle it. Distinguish
 "unverified" from "verified false" — they lead to different next moves.]

### Reproduce
[The exact commands to re-derive the session's key results: probe scripts, test
 invocations, CI queries. Paths to scratchpad probes worth keeping.]

Read the full file on GitHub · 126 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. 9d ago First seen · 126 lines · 0 tokens per session scan A c472ade17fb3

Subscribe to this mod's changes

handoff is a command published in the GitHub repository smrafiz/claude-supercharger (11 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,399 tokens. 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-30.