agentwire-dev: Command for Claude Code

.claude/commands/handoff.md

handoff is a command for Claude Code from dotdevdotdev/agentwire-dev. It costs 22 tokens per session (1,548 once invoked), scanned A, original, Apache-2.0.

A command that packages the current AI conversation into a handoff file and a browser-viewable story page for another person or AI to continue.

In plain words
What is it for?
Use it when transferring work to a teammate or another AI, including the current repository state and a human-readable summary.
Why use it?
It saves the important discussion, project state, instructions, and changes in a shareable form instead of relying on memory or manually copying the conversation.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is dotdevdotdev/agentwire-dev's own configuration. It tells Claude Code how to work on agentwire-dev itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentwire-dev configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dotdevdotdev/agentwire-dev. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dotdevdotdev/agentwire-dev/main/.claude/commands/handoff.md
Clone the repo
git clone --depth 1 https://github.com/dotdevdotdev/agentwire-dev

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/dotdevdotdev/agentwire-dev/handoff/github.svg)](https://agentmods.dev/commands/dotdevdotdev/agentwire-dev/handoff)
Your own site
<a href="https://agentmods.dev/commands/dotdevdotdev/agentwire-dev/handoff"><img src="https://agentmods.dev/badge/commands/dotdevdotdev/agentwire-dev/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/dotdevdotdev/agentwire-dev/handoff"><img src="https://agentmods.dev/badge/commands/dotdevdotdev/agentwire-dev/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 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,548 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.00022 $0.01548
Opus 5.5 $0.00009 $0.00619
Sonnet 5.5 $0.00004 $0.00310
Haiku 4.5 $0.00002 $0.00155

Measured 2mo ago against content hash 1a8c9a8a62bf, 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 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.

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.

.claude/commands/handoff.md · 143 lines

How it starts

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

/handoff

You are about to compile this conversation into a shareable handoff bundle. The output is two artifacts:

  1. ai-handoff.md — XML-tagged markdown a teammate can paste into another LLM (Opus 4.7) to roughly continue the conversation.
  2. show-the-story.html — single-file presentation a human can open in a browser.

You are uniquely positioned to do this well: you already have full conversation context. Don't ask the user clarifying questions unless something is genuinely ambiguous — distill what you know.

Workflow

1. Initialize the bundle

Call the MCP tool to create the bundle dir and pre-fill the template with git state and the CLAUDE.md/rules/memory chain:

mcp__agentwire__handoff_init(title="<short slug>")

The tool returns a bundle_dir and an ai_handoff_path. The pre-filled template at ai_handoff_path already has:

  • <metadata> populated with cwd, branch, commit, repo url
  • <instructions> populated with the full CLAUDE.md chain (verbatim)
  • <project_state> populated with git status, git log, and uncommitted diff

You must not touch the <instructions> section unless redacting something sensitive — it's what makes the bundle portable across machines.

2. Read the pre-filled template

Use Read on ai_handoff_path to see exactly what got pre-filled.

3. Fill in the rest

Use Write (or Edit) on ai_handoff_path to replace every {{ ... }} placeholder with real content. Specifically:

<title>

One short line summarizing the session — what it was about, not what was decided. Roughly 4-8 words.

<metadata> extras

Fill started_at / ended_at if you can estimate them, user_identity (if mentioned), and mcp_servers (the ones actually used in this conversation).

<environment>

What the receiver can't see from cwd alone. Active panes, channels (Slack/Discord/email), scheduler state if relevant. If nothing notable, write a one-line "no special environment" note.

<conversation_summary>

This is the most load-bearing section. Be dense and structured.

Read the full file on GitHub · 143 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 First seen · 143 lines · 22 tokens per session scan A 1a8c9a8a62bf

Subscribe to this mod's changes

handoff is a command published in the GitHub repository dotdevdotdev/agentwire-dev (23 stars, last pushed yesterday), licensed Apache-2.0. It adds 22 tokens to every session and 1,548 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-30.

Related

handoff compared with commands from other repositories

handoff next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handoffdotdevdotdev/agentwire-devCommand23yesterdayApache-2.0A22Claude Code
inboxpchalasani/claude-code-toolsCommand2.0kyesterdayMITA7Claude Code
listfuxicodex/FuxiCommand3.2k17d agononeA6Claude Code
hookifyfuxicodex/FuxiCommand3.2k17d agononeC12Claude Code
configurefuxicodex/FuxiCommand3.2k17d agononeC8Claude Code
helpfuxicodex/FuxiCommand3.2k17d agononeD7Claude Code
dashboard-session-listBlackBeltTechnology/pi-agent-dashboardCommand3412d agoMITA20Claude Code