handoff

handoff is a command for Claude Code from yuting0624/antigravity-for-claude-code. It costs 37 tokens per session (1,080 once invoked), scanned A, original, MIT.

A command that hands a complete coding task to Antigravity, an external coding agent, and then checks the result by running tests.

In plain words
What is it for?
Use it to delegate a coherent, test-covered implementation task through the plugin's handoff wrapper, then verify the returned changes with tests.
Why use it?
It provides a defined delegation process for suitable tasks instead of splitting implementation between agents. The command's guidance also explains when delegation may be unsuitable and what verification is expected.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument; mentions Claude Code.

Part of the antigravity plugin — 2 skills, 11 commands, 1 agent, 2 hooks shipped together

Good fit Use it to delegate a coherent, test-covered implementation task through the plugin's handoff wrapper, then verify the returned changes with tests.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yuting0624/antigravity-for-claude-code/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/yuting0624/antigravity-for-claude-code

Made for: Claude Code.

Or install antigravity, the plugin that ships this one along with the rest of its 2 skills, 11 commands, 1 agent, 2 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/yuting0624/antigravity-for-claude-code/handoff/github.svg)](https://agentmods.dev/commands/yuting0624/antigravity-for-claude-code/handoff)
Your own site
<a href="https://agentmods.dev/commands/yuting0624/antigravity-for-claude-code/handoff"><img src="https://agentmods.dev/badge/commands/yuting0624/antigravity-for-claude-code/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/yuting0624/antigravity-for-claude-code/handoff"><img src="https://agentmods.dev/badge/commands/yuting0624/antigravity-for-claude-code/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 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,080 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.00037 $0.01080
Opus 5.5 $0.00015 $0.00432
Sonnet 5.5 $0.00007 $0.00216
Haiku 4.5 $0.00004 $0.00108

Measured today against content hash 88c7fabe864f, 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 today.

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 · 62 lines

What it actually says

Hand the following task to Antigravity as a whole, through the plugin's agy-handoff wrapper, and act as the verifier only.

Requirement: $ARGUMENTS

Why this shape and not the usual delegation (measured on 8 merged pull requests from public Go repositories, 2 runs each, 2026-09; details in PR #91): delegating implementation file by file while you read the code and write specifications cost 1.3–1.7× a solo run. Handing the whole task over and verifying only by running the tests cost 0.58× a solo Opus 5 run per passing task (0.43× on large tasks, ≥700 changed lines; more than solo on small ones), 16/16 tests passed, and the Claude side alone was 0.16×. The cost you avoid is your reading: every file you open to "check" comes back as cache-read tokens on every later turn. A blinded reviewer rated hand-off code 0.6 of 5 below a solo run (dead code, duplicated helpers, unasked-for options) and about 0.2 below the human-merged PR — so the result gets the human review a first draft would get, after the tests are green, not from you.

Do this:

  1. Decide whether to hand off at all. Hand off when the task is a coherent feature or change of roughly 200+ lines with tests that define "done" (existing tests that must pass, or tests you write first). Do not hand off a small edit, a judgement call, or work without a verification command — those cost more this way, measured.
  2. Write the requirement as observable behaviour, 10–30 lines: context, what must be true afterwards, constraints (language, no new dependencies, conventions), which test files exist and must pass unmodified, and the deliverable ("leave changes uncommitted"). Do not name the files or identifiers the executor should create unless the tests do. Do not read the repository to write it — if you do not know the codebase, ask agy for a digest first (agy-delegate --digest --dir . "…"), or write the tests, but do not open source files yourself.
  3. Run it from a clean tree, on a branch, synchronously if you are headless:
    agy-handoff --dir . --tests <test files> - <<'REQ'
    <the requirement>
    REQ
    
    --verify is detected from go.mod / package.json / Cargo.toml / pyproject.toml / Makefile; pass it explicitly when the repository's gate is something else. Expect 20–120 minutes for a real feature. In an interactive session, Claude Code's Bash tool cuts a call off after its timeout — add --background, then poll with agy-job status <id> and collect with agy-job result <id>; do not touch the repository meanwhile. (Headless claude -p: run it synchronously and raise the Bash timeout.)
  4. Do not read the diff while it runs, and do not edit files afterwards. The wrapper runs the verification command itself, sends at most one fix-up delegation quoting the failing output verbatim, runs it again (exit 4 if verification is still red after the allowed fix-ups; exit 12 if an executor call timed out and verification failed), and checks that the named test files were not modified (exit 6 if they were, uncommitted or committed). Your job is to read its report: PASS / FAIL / TEST FILES MODIFIED, the delegation count, the change summary, what the executor said.
  5. Report the outcome in a few lines and hand the diff to the human as a first draft: what to look for is dead code, helpers duplicated beside an existing library, options nobody asked for, mismatched import grouping. If it failed, decide between one more hand-off with a sharper requirement (say what the failure told you) and taking over — do not patch the executor's work by hand and call it a hand-off.

Remember the measured boundaries: small tasks lose money here; the arm took 3–4× the wall-clock of a solo run; and asking the executor to review its own diff afterwards changed the review score by 0.07 for about $1 a run — skip that.

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. today First seen · 62 lines · 37 tokens per session scan A 88c7fabe864f

Subscribe to this mod's changes

handoff is a command published in the GitHub repository yuting0624/antigravity-for-claude-code (416 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 1,080 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-10-20.