handoff

handoff is a command for Claude Code from baek-labs/hames. It costs 17 tokens per session (556 once invoked), scanned A, original, MIT.

A command that creates and validates one handoff document for another AI model. The document records the task, current state, next step, source model, workspace, and a unique handoff ID.

In plain words
What is it for?
Use /handoff with claude, gemini, or codex as the target model. It asks for the target when omitted, then creates the handoff file and validates it.
Why use it?
It gives another model a consistent summary of the work so the session can continue without relying on scattered conversation context or an unrelated workspace path.

Command for Claude Code

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.

agentmods
npx agentmods add commands/baek-labs/hames/handoff
Clone the repo
git clone --depth 1 https://github.com/baek-labs/hames

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/baek-labs/hames/handoff.svg)](https://agentmods.dev/commands/baek-labs/hames/handoff)
Your own site
<a href="https://agentmods.dev/commands/baek-labs/hames/handoff"><img src="https://agentmods.dev/badge/commands/baek-labs/hames/handoff.svg" alt="Measured on agentmods" 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 556 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.00556
Opus 5 $0.00009 $0.00278
Sonnet 5 $0.00003 $0.00111
Haiku 4.5 $0.00002 $0.00056

Measured 3d ago against content hash 09de6645411a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 72 lines

How it starts

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

/handoff

Usage: /handoff <target_model>

Examples:

  • /handoff gemini
  • /handoff codex

Flow

Step 1 — Confirm target model

  • Read $ARGUMENTS and extract the target model (claude, gemini, or codex).
  • If no target model is given, ask which model should receive the handoff.

Step 2 — Summarize the current session From the active conversation and working context, prepare:

  • task_summary
  • current_state
  • next_step
  • source_model
  • source_workspace
  • handoff_id in the format HAMES-{YYYYMMDD}-{KEYWORD}

source_workspace must be the real workspace where the work happened. Do not use AI_COMM as the source workspace.

Step 3 — Create the handoff file

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/create_handoff.ps1 `
  -HandoffId "<handoff_id>" `
  -TargetModel "<target_model>" `
  -SourceModel "<source_model>" `
  -SourceWorkspace "<source_workspace>" `
  -TaskSummary "<task_summary>" `
  -CurrentState "<current_state>" `
  -NextStep "<next_step>"

create_handoff.ps1 builds the handoff document directly from these arguments. Do not depend on .hames_context.json.

Step 4 — Refresh target bootstrap only if needed For gemini:

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/start_hames_gemini.ps1 `
  -Task "<task_summary>" `
  -TargetPath "<source_workspace>" `
  -Handoff

For codex:

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/start_hames_codex.ps1 `
  -Task "<task_summary>" `
  -TargetPath "<source_workspace>" `
  -Handoff

For claude, skip bootstrap generation.

Step 5 — Validate

powershell -NoProfile -ExecutionPolicy Bypass -File arsenal/validate_handoff.ps1 `
  -HandoffFile "ai_comm/_Inbox/Handoff_<handoff_id>.md"

Step 6 — Report

  • PASS: report the handoff file path, bootstrap file path if one was generated, and the handoff id.
  • FAIL: report the missing fields or validation failures and request manual correction.

Read the full file on GitHub · 72 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. 3d ago First seen · 72 lines · 17 tokens per session scan A 09de6645411a

Subscribe to this mod's changes

handoff is a command published in the GitHub repository baek-labs/hames (5 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 556 once invoked, about $0.0001 per session on Opus 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.