delegate

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

A command for sending a clearly defined coding or research subtask to Gemini through the Antigravity command-line tool. It can give Gemini access to a repository and, when authorized, let it write files or use tools.

In plain words
What is it for?
Use it for scoped tasks such as code changes, repository analysis, web research, or terminal work. Choose the Flash tier for routine jobs, Pro for harder reasoning, and provide a repository directory when the task needs project files.
Why use it?
It helps hand off bounded work while keeping the main agent responsible for the overall task and checking the result. It also makes the required permissions and model tier explicit.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents; mentions Claude Code.

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

Good fit Use it for scoped tasks such as code changes, repository analysis, web research, or terminal work. Choose the Flash tier for routine jobs, Pro for harder reasoning, and provide a repository directory when the task needs project files.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/yuting0624/antigravity-for-claude-code/delegate/github.svg)](https://agentmods.dev/commands/yuting0624/antigravity-for-claude-code/delegate)
Your own site
<a href="https://agentmods.dev/commands/yuting0624/antigravity-for-claude-code/delegate"><img src="https://agentmods.dev/badge/commands/yuting0624/antigravity-for-claude-code/delegate/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 delegate

Your own site · 80×15
<a href="https://agentmods.dev/commands/yuting0624/antigravity-for-claude-code/delegate"><img src="https://agentmods.dev/badge/commands/yuting0624/antigravity-for-claude-code/delegate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 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,243 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.00024 $0.01243
Opus 5.5 $0.00010 $0.00497
Sonnet 5.5 $0.00005 $0.00249
Haiku 4.5 $0.00002 $0.00124

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

Security

Grade A, and why

delegate 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/delegate.md · 45 lines

How it starts

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

Delegate the following task to Antigravity (agy / Gemini) via the plugin wrapper, following the antigravity skill's Cost discipline and Verification gates.

Task: $ARGUMENTS

Do this:

  1. Pick a tier (flash default = Gemini 4 Hydrogen High; flash-lo = Gemini 4 Hydrogen Low; pro = Gemini 4 Neon High, plus aliases neon/carbon/argon/flash-38; auto-falls-back on plans without Neon/Carbon/Hydrogen). If the task needs the repo, add --dir <repo-root> (or --dir . inside the antigravity-delegate subagent, whose gate confines -d/--dir/--add-dir to cwd) so agy reads the real files (don't paste them into context).
    • Read/analysis tasks: pass --read-only (and --allow-url if reading web URLs) so agy 1.5.7+ default Auto mode cannot edit files or run shell commands (--read-only / --allow-url conflicts with --yolo, --settings, and --mode accept-edits|auto — exit 1).
    • Workspace file-edit tasks (no terminal needed): on agy 1.5.7+, --mode accept-edits auto-approves write_file inside --dir / --add-dir while denying every shell command (run_command) — so prompts using --mode accept-edits without --yolo must instruct agy to edit files only and not run shell or test commands (or use a write_file(<dir>) entry in permissions.allow in ~/.gemini/antigravity-cli/settings.json).
    • Full agentic tasks (running tests/shell commands, Vertex AI Search): pass --yolo, which auto-approves all tools unless blocked by enterprise admin policy. Run write tasks on a dedicated branch — --sandbox is not containment, it was measured doing nothing under --yolo — and verify files actually changed with git status. Claude Code may prompt for or block --dangerously-skip-permissions — approve it or pre-allow it; non-interactive (claude -p) without that permission can't run --yolo via agy. (If the wrapper returns exit 1, you passed invalid or conflicting wrapper flags — fix the flags rather than retrying; exit 15 means agy denied a tool interaction — covering both the soft deny back since agy 1.1.20 and 1.1.13's hard error — and names the refused tool from denied_actions or stderr; exit 16 CLI_FLAG_ERROR means agy rejected a CLI flag or option value.)
  2. Run synchronously (you may be headless — do not background-and-wait): agy-delegate --tier <tier> [--read-only | --mode accept-edits | --yolo] [--dir .] [--digest] "<task>" For read/analysis tasks, add --digest — it appends a digest-only output contract so agy returns compact bullets instead of raw content.
  3. Ingest only the result/digest — do NOT re-read the files agy already handled (keeps your context lean; that's where the cost savings come from). If the wrapper prints a "looks like a raw dump" note on stderr, do NOT ingest the raw output — re-run with --digest or ask agy to summarize it first.
  4. Verify: actually run/check the output; never trust a self-reported "done". On any write delegation — including empty output (exit 3), timeout (exit 12), tool denial, or a summary from the antigravity-delegate subagent (which cannot run git) — always run git status and git diff yourself before concluding nothing changed. Report what you delegated and how you verified it.

Remember the break-even: only delegate if the offloaded volume clearly exceeds the spec + round-trip + verification overhead. Tiny tasks are cheaper to just do yourself.

Long task, interactive session? A sync delegation can hit Claude Code's ~2-min default / 10-min max Bash-tool limit (notably write runs now default --print-timeout to 25m) — start long interactive writes in the background via agy-job start (or raise Bash's timeout up to 600000 ms) and keep working (this also keeps the prompt cache warm and frees you to do other turns): ID=$(agy-job start --tier pro --dir . "<task>") then check /antigravity:status and collect with /antigravity:result <id> (check the exit code of agy-job start first: when AGY_BLOCK_CONSUMER_OAUTH=1 is active and high-confidence Consumer OAuth is detected, it exits 11 synchronously with an empty ID and AGY_SIGNAL CONSUMER_OAUTH_BLOCKED on stderr rather than creating a job). (Don't do this when YOU are headless claude -p — one-shot, no later turn to collect; delegate synchronously there.)

Read the full file on GitHub · 45 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. today Changed b1d8088f22a0
  2. yesterday Changed 4bf8a7110659
  3. 7d ago Changed 61cbe33a7181
  4. 8d ago Changed 4943f55396fa
  5. 16d ago Changed · -10 lines f97ea20f395f
  6. 2mo ago Changed · +1 lines b75f3640933f
  7. 3mo ago Changed · +1 lines dd49235009e3
  8. 3mo ago First seen · 53 lines · 24 tokens per session scan A 103bf629c50c

Subscribe to this mod's changes

delegate is a command published in the GitHub repository yuting0624/antigravity-for-claude-code (551 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 1,243 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

delegate compared with commands from other repositories

delegate next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
delegateyuting0624/antigravity-for-claude-codeCommand551yesterdayMITA24Claude Code
agydavdittrich/delegate-agyCommand202d agononeA26Claude Code
setup-video-visionjordanrendric/claude-video-visionCommand1.6k1mo agoMITA20Claude Code
reportMarcosNahuel/antigravity-plugin-ccCommand341mo agoMITA38Claude Code
notebook-queryMarcosNahuel/antigravity-plugin-ccCommand341mo agoMITA74Claude Code
modelMarcosNahuel/antigravity-plugin-ccCommand341mo agoMITA59Claude Code
recordMarcosNahuel/antigravity-plugin-ccCommand341mo agoMITA38Claude Code