handoff

handoff is a command for Claude Code from rjwalters/kicad-tools. It costs 34 tokens per session (3,569 once invoked), scanned B, original, MIT.

A command for safely ending a coding session and preparing the next one. It records unfinished work, returns the repository to a clean Git state, checks for a command-line update, and writes restart notes.

In plain words
What is it for?
Use it before restarting a session, upgrading the command-line tool, or deliberately moving work into a fresh session.
Why use it?
Important decisions and pending tasks can be lost when a session ends or the coding tool is restarted. This gives the next session the context it needs.

Command for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it before restarting a session, upgrading the command-line tool, or deliberately moving work into a fresh session.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rjwalters/kicad-tools/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/rjwalters/kicad-tools

Made for: Claude Code.

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/rjwalters/kicad-tools/handoff/github.svg)](https://agentmods.dev/commands/rjwalters/kicad-tools/handoff)
Your own site
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/handoff"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/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/rjwalters/kicad-tools/handoff"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 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,569 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00034 $0.03569
Opus 5.5 $0.00014 $0.01428
Sonnet 5.5 $0.00007 $0.00714
Haiku 4.5 $0.00003 $0.00357

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

Security

Grade B, and why

handoff scanned grade B with 1 finding 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

# After relaunching, read it yourself: cat .claude/handoff.md
.claude/commands/repo/handoff.md · 297 lines

How it starts

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

/repo:handoff — Roll the Session Safely

Rolling a Claude Code session — quitting the CLI and starting fresh — is the moment a session's most valuable output is most likely to be lost, because what is worth carrying forward is exactly what exists only in the session's context: in-flight state, settled decisions, and empirically-discovered traps. This command makes the roll a repeatable ritual instead of an ad-hoc scramble.

It composes the existing commands rather than reimplementing them — [[followups]] to capture deferred work, [[reset]] to reach a clean git baseline — and adds only what does not exist yet: the CLI version check, the handoff note, and exact restart instructions.

Relationship to /compact: compaction handles the soft boundary — context pressure within a continuous session. /repo:handoff handles the hard boundary: process restart, CLI upgrade, or a deliberate fresh start. If the version check below finds no update and the only pressure is context size, say so — a /compact may be all that's needed.

Usage

/repo:handoff                  # Run the ritual end-to-end, confirmations as usual
/repo:handoff --dry-run        # Preview the note and proposed actions; file, prune, and write nothing
/repo:handoff --prune          # Pass --prune through to the reset stage
/repo:handoff --force          # Proceed even when the step-0 preflight fails

Steps — ordering is load-bearing

Run the stages in exactly this order. Each later stage depends on the earlier ones having actually happened.

0. Preflight — confirm something will actually read the note

Run before followups and reset, and stop on a blocking failure. Everything below produces a note; this step proves the note has a reader first. That reader is a session-start-handoff.sh SessionStart hook in two halves — a script, and its wiring in .claude/settings.json — which install.sh writes to paths with different git dispositions, so neither check substitutes for the other.

Read the full file on GitHub · 297 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. 2mo ago Changed · +147 lines scan A → B aa00c4537960
  2. 3mo ago First seen · 150 lines · 34 tokens per session scan A 85abde2338cf

Subscribe to this mod's changes

handoff is a command published in the GitHub repository rjwalters/kicad-tools (77 stars, last pushed 15d ago), licensed MIT. It adds 34 tokens to every session and 3,569 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

handoff compared with commands from other repositories

handoff next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handoffrjwalters/kicad-toolsCommand7715d agoMITB34Claude Code
red-teammohitagw15856/pm-claude-skillsCommand1.6ktodayMITB23Claude Code
instinct-importmycelium-hq/ai-brain-starterCommand612d agoMITA16Claude Code
acos-checkpointfrankxai/agentic-creator-osCommand14yesterdayApache-2.0A0Claude Code
monomind-statusmonoes/monomindCommand23yesterdayApache-2.0A21Claude Code
hygiene-statusMSApps-Mobile/claude-pluginsCommand14yesterdayMITA19Claude Code
release-flowcoo1white/cool-workflowCommand27d agoBSD-2-ClauseA20Claude Code