handoff

handoff is a command for Claude Code from Vit129/agy-plugin-cc. It costs 25 tokens per session (632 once invoked), scanned A, original, Apache-2.0.

A task handoff command for giving a large, test-defined coding change to agy. agy makes the change, and the calling agent verifies it using the specified tests, with one opportunity to fix failures.

In plain words
What is it for?
Use it for substantial coding tasks with a clear requirement and a test command. It is not intended for small edits or work whose result cannot be tested automatically.
Why use it?
It separates implementation from verification when success can be judged by tests, while preventing handoff when the repository is on the main branch or has uncommitted changes.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

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 agy plugin — 5 skills, 17 commands, 3 hooks shipped together

Good fit Use it for substantial coding tasks with a clear requirement and a test command. It is not intended for small edits or work whose result cannot be tested automatically.

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 Vit129/agy-plugin-cc
Claude Code
/plugin install agy

Made for: Claude Code.

Or install agy, the plugin that ships this one along with the rest of its 5 skills, 17 commands, 3 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/vit129/agy-plugin-cc/handoff/github.svg)](https://agentmods.dev/commands/vit129/agy-plugin-cc/handoff)
Your own site
<a href="https://agentmods.dev/commands/vit129/agy-plugin-cc/handoff"><img src="https://agentmods.dev/badge/commands/vit129/agy-plugin-cc/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/vit129/agy-plugin-cc/handoff"><img src="https://agentmods.dev/badge/commands/vit129/agy-plugin-cc/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 632 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.00025 $0.00632
Opus 5.5 $0.00010 $0.00253
Sonnet 5.5 $0.00005 $0.00126
Haiku 4.5 $0.00003 $0.00063

Measured 6d ago against content hash 4c47d7734ee1, 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 6d 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/agy/commands/handoff.md · 27 lines

What it actually says

Hand the task to agy as a whole and act as the verifier only.

Raw arguments: $ARGUMENTS

When to hand off. A coherent change of roughly 200+ lines whose "done" is defined by tests (existing ones that must pass, or tests written first). Measured elsewhere, hand-off costs about 0.6× doing it yourself on such tasks, and more than doing it yourself on small edits, and it takes 3–4× the wall-clock time. If the task is a small edit, a judgement call, or has no test command, say so and suggest /agy:rescue or doing it directly instead of handing off.

Steps:

  1. Write the requirement as observable behavior (10–30 lines): context, what must be true afterwards, constraints, which test files must pass unmodified. Do not open source files to write it; if you do not know the codebase, ask the user or run /agy:agy for a short digest first.
  2. The companion refuses to start on main/master or with uncommitted changes. If either applies, tell the user and stop; do not create branches or stash on your own.
  3. Run in the background unless the user passed --wait:
node "${CLAUDE_PLUGIN_ROOT}/scripts/agy-companion.mjs" handoff --background $ARGUMENTS

Then tell the user: "agy hand-off started in the background. Check /agy:status for progress." Use /agy:result <id> to collect it. 4. While it runs, do not read the diff or edit files in the repository. 5. Report the result in a few lines: status (PASS, FAIL, TEST FILES MODIFIED, AGY FAILED), rounds, the diff stat. Hand the diff to the user as a first draft for human review (look for dead code, duplicated helpers, options nobody asked for). On FAIL, offer one more hand-off with a sharper requirement or taking over; do not patch agy's work by hand and call it a hand-off.

The companion detects the test command from package.json, pyproject.toml, go.mod or Cargo.toml; pass --verify when the gate is something else. Each agy run has a 60-minute --print-timeout unless you pass one.

If agy is not installed, tell the user to run /agy:setup.

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. 6d ago First seen · 27 lines · 25 tokens per session scan A 4c47d7734ee1

Subscribe to this mod's changes

handoff is a command published in the GitHub repository Vit129/agy-plugin-cc (6 stars, last pushed 3d ago), licensed Apache-2.0. It adds 25 tokens to every session and 632 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-11-25.

Related

handoff compared with commands from other repositories

handoff next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handoffVit129/agy-plugin-ccCommand63d agoApache-2.0A25Claude Code
aidd-featuremagic5644/Graph-It-LiveCommand64yesterdayMITA78Claude Code
aidd-bugfixmagic5644/Graph-It-LiveCommand64yesterdayMITA67Claude Code
aidd-quick-winmagic5644/Graph-It-LiveCommand64yesterdayMITA52Claude Code
aidd-design-uxmagic5644/Graph-It-LiveCommand64yesterdayMITA56Claude Code
aidd-optimizemagic5644/Graph-It-LiveCommand64yesterdayMITA46Claude Code
aidd-plan-mvpmagic5644/Graph-It-LiveCommand64yesterdayMITA50Claude Code