Antigravity for Claude Code — hybrid SDLC
Run the Antigravity CLI (agy, Gemini) as a second AI working alongside Claude
Code. The organizing idea is intelligent model routing across the SDLC: keep
judgement-heavy work on Claude (the frontier model) and route deterministic,
high-volume work to Antigravity (cheaper, faster Gemini). Two AIs, one workflow.
- Claude = conductor / orchestrator — requirements, architecture, the hard 20%
(edge cases, integration, correctness), specs, tests/evals, final review.
- Antigravity = delegated agent — a full terminal agent (file edits, terminal,
subagents, MCP, web/Vertex AI Search) that executes well-specified work.
This is agentic engineering, not vibe coding: the value is the structure around
the model — routing, shared rules, verification gates — not raw generation.
Generation is solved; verification, judgement, and direction are the craft.
Authentication & Terms guidance
Per Antigravity Additional Terms §6 and the
Antigravity FAQ (retrieved 2026-12-01), "running
the unmodified Antigravity harness through its supported interfaces—such as wrapping it with
a third-party UI (e.g., via agent client protocol), calling it as a tool or subagent from
another harness, using the Antigravity CLI in headless mode, or configuring it through
supported customization and extension mechanisms...—is permitted."
Still prohibited: (a) using Antigravity entitlements/OAuth tokens directly inside third-party
software outside the official Antigravity runtime, (b) modifying/bypassing the runtime or
repurposing agy as a raw model proxy for an external agent loop or inference backend, and
(c) sharing, pooling, or reselling individual entitlements across multiple users. Per the
same Terms/FAQ, "Violations may result in suspension of your Antigravity access with an
appeal path for re-enablement. This will have no impact on your broader Google account."
- Supported auth routes: Consumer OAuth (works out of the box in
v0.32.2+ for personal plans; note Google Workspace accounts signed in via 1. Google OAuth receive starter quota without Gemini 4 and should switch to 2. Use a Google Cloud project or AGY_ADC_AUTH=true), Google Cloud project OAuth (agy → /logout → 2. Use a Google Cloud project, Pay As You Go or Gemini Enterprise), Vertex AI ADC (export AGY_ADC_AUTH=true GOOGLE_CLOUD_PROJECT=<id> GOOGLE_CLOUD_LOCATION=global — accepted values true|1|on, not yes), Gemini API key ({"modelProvider": "gemini"} in ~/.gemini/antigravity-cli/settings.json plus export GEMINI_API_KEY=...; per install docs, GEMINI_API_KEY alone has no effect), or an Enterprise LLM Gateway (admin_settings.json).
- Optional enterprise policy guard (
AGY_BLOCK_CONSUMER_OAUTH=1, v0.32.2+): Consumer OAuth is allowed by default. When a team or organization sets AGY_BLOCK_CONSUMER_OAUTH=1|true|on, agy-delegate, agy-handoff, and agy-job start inspect auth metadata without reading OS Keychain secrets (probing python3 / python / py -3 with a pure-POSIX shell/awk fallback when Python is unavailable — stub-tested on Linux and macOS CI; not live-tested on native Windows) and exit 11 synchronously (AGY_SIGNAL CONSUMER_OAUTH_BLOCKED, creating no background job) before invoking agy when Consumer OAuth is detected with high confidence; runtime HTTP 403 Terms of Service errors also classify as non-retryable exit 11 (TOS_BLOCKED).
- Hard rule for Claude / subagents: NEVER unset
AGY_BLOCK_CONSUMER_OAUTH or set AGY_ALLOW_CONSUMER_OAUTH on behalf of the user (both are strictly human-only shell env controls, never CLI flags, and hooks/validate-delegate-bash.sh blocks env prefixes/unsets for the delegate subagent). If exit 11 fires, stop and guide the user to sign in, switch to Google Cloud / Vertex ADC / Gemini API key, unset AGY_BLOCK_CONSUMER_OAUTH if personal Consumer OAuth is permitted by their policy, or check the Antigravity Terms appeal path on HTTP 403 — and mention official google-gemini/gemini-api-cli (gemini-api install-skill --agent claude-code) for lightweight stateless Gemini API-key calls without Google Cloud setup.
Two modes (pick per task)
- Conductor (sync, inline): you're shaping something in real time; delegate a
small, well-scoped chunk to agy mid-flow (e.g. "generate these tests"), use the
result immediately.
- Orchestrator (async, multi-unit): decompose a larger task into units, dispatch
to agy (often with
--dir, agentic, in parallel), then review and integrate.
Best for migrations, bulk implementation against patterns, test suites.
- Hand-off (whole task, tests as the gate): hand one coherent, test-covered task
to agy as a whole with
agy-handoff, read nothing, verify only by running the tests,
hand the diff to a human as a first draft. The only delegation shape measured cheaper
than Claude alone on implementation work — see Hand-off mode below.
Division of labor across the SDLC
Route each phase to the right model. This is the core policy.
| SDLC phase | Owner | Why |
|---|
| Requirements & planning | Claude | ambiguity, human-paced judgement |
| Design & architecture | Claude | trade-offs; most human-centric |
| Implementation — complex / architecture-bearing (the 20%) | Claude | correctness, deep context |
| Implementation — scaffolding / boilerplate / well-specified | agy | deterministic, high volume |
| Test & eval generation | agy (Claude defines the contract) | cheaper-model territory |
| First-pass code review | agy → Claude final | AI as first-pass reviewer |
| Cross-model verification (output + trajectory) | both | two model families ≠ same failure |
| Maintenance / migration / modernization | agy executes, Claude directs | tedious, systematic |
| Web / Vertex AI Search | agy → Claude re-checks | tools Claude lacks natively |
| Audio / video understanding | agy transcribes + digests · Claude verifies | Gemini is natively multimodal; no local ffmpeg/speech stack |
| Deep research (multi-source) | agy fans out search/fetch · Claude plans, verifies ≥2 sources, synthesizes | offload bulky pages to cheap Gemini; frontier model judges |
Routing tier within agy: flash (default, bulk: Gemini 4 Hydrogen (High)) · flash-lo / lite (cheapest, low-latency: Gemini 4 Hydrogen (Low)) ·
pro (harder coding / reasoning / reviews / cross-checks: Gemini 4 Neon (High)) · plus convenience aliases neon (Gemini 4 Neon (High)), carbon (Gemini 4 Carbon (High)), argon (Gemini 4 Argon (High)), and flash-38 (Gemini 3.8 Flash (High)).
agy is multi-model. Tiers map to Gemini 4 by default, but you can point delegation at any
model agy models lists (Claude / GPT on plans that expose them) — via --model <exact name> (and optional --effort low|medium|high|xhigh|max),
or persistently with the default_model / tier_* plugin options (in ~/.claude/settings.json
pluginConfigs or env CLAUDE_PLUGIN_OPTION_*). pro defaults to Gemini 4 Neon (High) (with Low/Medium/High/XHigh reasoning effort via --effort, and max capped to xhigh; when falling back to models without an (XHigh) variant such as Carbon, Argon, or 3.8 Flash, (XHigh) caps automatically to (High)), and flash / flash-lo (lite) default to Gemini 4 Hydrogen (High) / (Low) (~2.5× faster agentic throughput, with (XHigh) reasoning effort available via --effort xhigh). When tier_pro, tier_flash, or tier_flash_lo is unremapped and the active plan does not expose the primary Gemini 4 model (for example free/starter consumer plans or Google Workspace accounts signed in via 1. Google OAuth instead of 2. Use a Google Cloud project — see Authentication & Terms guidance above and docs/TROUBLESHOOTING.md), agy-delegate resolves an entitled fallback in two layers:
- Layer 1 (
Available models: 1-hop Cold-Miss Jump): when agy 1.5.x rejects a model with an Available models: list (measured on agy 1.5.9), agy-delegate intersects its ordered fallback chain (pro: Neon → Carbon → Argon → Gemini 3.1 Pro → Gemini 3.1 Pro (High) → Gemini 3.1 Pro (Low) → Hydrogen → Gemini 3.8 Flash (High); flash: Hydrogen → Gemini 3.8 Flash (High) → Gemini 3.7 Flash (High) → Gemini 3.6 Flash (High) → Gemini 3.5 Flash; flash-lo: Hydrogen Low → Gemini 3.8 Flash (Low) → Gemini 3.5 Flash Lite → Gemini 3.7 Flash (Low) → Gemini 3.1 Flash Lite) with that list and jumps directly to the first entitled candidate in a single retry (or exits 14 immediately with zero extra spawns if none match; on older agy without Available models:, it walks the chain sequentially).
- Layer 2 (
tier-models-v1.tsv 6h Warm Cache): resolved fallbacks (and agy-doctor pre-seeds) are cached for 6 hours in ~/.cache/antigravity-claude/tier-models-v1.tsv keyed on (agy binary path + stat, OAuth token presence bit, settings.json & onboarding.json POSIX cksum content signatures, auth env, tier) — immune to agy 1.5.9's per-invocation onboarding.json mtime rewrites (measured on 1.5.9) and OAuth token refreshes — so subsequent calls hit the entitled model on attempt #1 with zero cold-miss delay.
Check AGY_USAGE.model on stderr for the model that actually ran. The retry fires only on agy's model-unavailable error, never after a timeout (a timed-out attempt exits 12). Keep the executor a
different, cheaper model than the Claude conductor: that's what yields the cost saving and
the cross-model verification value (Claude executing Claude loses both).
Model availability moves fast, and --tier needs agy ≥ 1.1.10. Until 1.1.10, agy
ignored --model and --effort in headless -p — the flag was applied after model
configuration had initialised, so the run silently fell back to the persisted default.
This wrapper resolves every --tier to --model and always runs -p, so on an older
agy tier selection does nothing and looks like it works: the call succeeds, returns
sensible text, reports usage. doctor warns when it sees one — and on agy ≥ 1.1.11 it
stops inferring and asks: it requests a tier model via -p /model (a read-only slash
command that costs no tokens and starts no agent turn) and reports which model agy says
it would actually run. Below 1.1.11 it does not probe, because there the slash command
falls through as prompt text and the model answers as though it had run.
Gemini 4 & 3.8 Flash pricing in prices.json (and Consumer 3P sunset): Gemini 4 Hydrogen (flash / flash-lo default since 0.31.0) carries standard non-promotional list pricing of $1.50 in / $7.50 out / $0.075 cached-in per 1M (95% implicit prefix cache discount ≥ 4,096 tokens). Gemini 4 Neon (pro default and --tier neon) carries global list pricing of $3.00 in / $15.00 out / $0.15 cached-in per 1M. Gemini 4 Carbon (--tier carbon) and Gemini 4 Argon (--tier argon) carry introductory list pricing of $2.00 in / $10.00 out / $0.10 cached-in per 1M through 2026-11-30, and standard pricing of $4.00 / $20.00 / $0.20 from 2026-12-01 (gemini_carbon_post_2026_12 / gemini_argon_post_2026_12, effective_from: "2026-12-01"). Gemini 3.8 Flash (--tier flash-38, 0.26.0–0.30.x flash default) carries promotional pricing of $0.75 in / $3.75 out / $0.075 cached-in per 1M through 2026-12-31, moving to $1.50 / $7.50 / $0.15 on effective_from: "2027-01-01". prices.json's gemini_flash mirrors gemini_hydrogen, and agy-cost-compare automatically selects the matching prices.json deck from AGY_USAGE.model and UTC date (overridable via AGY_PRICING_DATE=YYYY-MM-DD). On Consumer OAuth, legacy 3P models (Claude Sonnet 4.6, Claude Opus 4.6 (Thinking), GPT-OSS 120B) sunset on 2026-11-30, with paid Google AI Pro / Ultra plans moving to Claude Sonnet 5.5 and Claude Opus 5.5.
Measured quirk on Gemini 3.8 Flash (High): under
--digest, a prompt with nothing to inspect (a bare "reply OK") makes 3.8 High run a
command to find something to report — 6 of 7 runs, exit 15 headless without a grant;
3.7 High 0 of 3. With a real task (a file behind --dir, pasted code) 3.8 High
answered 6 of 6. Give it a task, or drop --digest for a ping.
Retracted: earlier versions of this note quoted token-level comparisons between
3.5 / 3.6 / flash-medium (−23% input, cache_read +43%, and so on). Those runs were
made on agy 1.1.8–1.1.9, where --model was ignored — so every arm may have executed
the same persisted default. Independently, the numbers did not survive their own ranges:
3.5-high spanned [421k, 509k] input against 3.6-high's [305k, 412k] at n=2, and
flash-medium overlapped high outright. A mean-vs-mean claim over overlapping ranges
is exactly what this repo's own playbook tells you not to report. Pick a tier by what
your plan serves and by the published rates until this is re-measured on 1.1.10+.
Note: agy 1.1.5 changed agy models output to slugs (gemini-3.5-flash), and 1.2.x+ emits two columns (<slug> <display name>); both slugs and
display names are accepted by --model, and doctor matches either.
How to call it
agy-delegate [options] "the task prompt"
Options: --tier flash|flash-lo|lite|pro|neon|carbon|argon|flash-38 · --effort low|medium|high|xhigh|max (rewrites (Effort) on display names, or passes --effort for effortless slugs, custom models, and gemini-api://... URLs — agy ≥ 1.5.20 forwards xhigh/max for custom models and gemini-api://... directly) · --dir <path> / --add-dir <path> (workspace, repeatable) ·
--timeout <dur> (Go duration like 10m, 1h30m, 300s, unit-less seconds 900 → 900s, or 0 for unbounded; when --timeout, AGY_TIMEOUT, and the timeout option are unset, defaults to 5m for read/plan and 25m for write runs under --mode accept-edits, --mode auto, or --yolo — note 25m exceeds Claude Code's 10m synchronous Bash cap in interactive sessions, so detach long interactive write runs via agy-job start or pass --timeout 9m; on agy 1.5.10+, rate-limit backoff can wait up to 4m — while spend-cap and enterprise weekly-quota exhaustion fail immediately — and silent-thinking stream idle timeout is 10m, so pass --timeout 15m on read tasks when rate-limit retries or long thinking turns could clip the 5m default; on agy 1.5.15+, AGY_CLI_AUTO_COMPACT_OVERRIDE accepts a token count, K/M, or % of the context window to tune automatic context compaction) · --read-only (and --allow-url: on agy ≥ 1.4.10 synthesizes --settings with agentMode: "", allowNonWorkspaceAccess: false, request-review, permissions.allow: [] — or ["read_url(*)"] with --allow-url — and permissions.ask: ["write_file(*)", "command(*)"] so workspace read_file stays allowed while 1.5.7+–1.5.16+ default Auto mode, outside-workspace reads, writes, and shell commands are disabled across both consumer and Gemini Enterprise accounts without --yolo; rejects conflicting --yolo, --settings, or --mode accept-edits|auto, while --read-only --mode plan remains valid) · --settings <json|path> · --json-schema <json|path> (forwards --json-schema and serializes .structured_output when .response is empty) · --yolo (auto-approve ALL tools — the blunt grant; needed for Vertex AI Search / terminal / subagent spawning, and on agy < 1.4.10 for web search / URL reads (agy 1.1.28+; or a read_url(<target>) rule) and for writes not covered by a permissions.allow rule. For a
file write the narrower grant is usually a write_file(<dir>) entry in
~/.gemini/antigravity-cli/settings.json, which needs no flag — see below. Run write tasks
on a branch) · --mode accept-edits|plan|auto
(agy execution mode. --mode accept-edits is version-dependent: on agy ≥ 1.5.7, it grants in-workspace write_file/edit_file while denying every shell command (run_command) and outside-workspace access — so write prompts using --mode accept-edits without --yolo must instruct agy to edit files only and NOT run shell or test commands; on agy 1.1.13–1.5.6, --mode accept-edits was NOT a headless write grant and denied writes just like a plain call. Earlier notes here said "soft-denied on 1.1.3"; on a build before 1.1.12 where --mode was ignored in headless -p entirely, that observation could not tell a denial apart from the flag doing nothing. plan = strategize only; auto = dynamic plan/execute on agy ≥ 1.3.5, and default on agy 1.5.7+ when the OS terminal sandbox is active — approving workspace edits + vetted/sandboxed commands on 1.5.7+, outside-workspace read_file on 1.5.14+, and outside-workspace VCS-repo or additive writes on 1.5.16+) · -c/--continue or -r <id>/--resume <id>/--conversation <id> (resume the latest or a specific conversation ID; -r/--resume normalizes to --conversation <id> across all agy versions and cannot be combined with -c/--continue; on agy ≥ 1.5.20, an unknown ID fails fast with conversation "<id>" not found — wrapper exit 2, no tier fallback — instead of silently starting a fresh conversation) · --sandbox ·
--digest (append a digest-only output contract — use it for any
bulk read/analysis; the wrapper also warns on stderr when a reply comes back dump-sized,
because ingesting digests instead of dumps is the single biggest cost lever) ·
--print-command (dry run: show the resolved agy call without running or probing agy --help; capability-gated flags such as --output-format json and --disable-slash-commands are added on live runs) · --allow-slash-commands (re-enable leading /command or /skill expansion in print mode; by default --disable-slash-commands is passed when MODE != plan on agy builds that advertise it, measured on 1.5.9, so prompts starting with /clear or /credits are sent as literal prose) · pipe a long
prompt with a trailing -.
The wrapper handles agy's quirks (up to 64 KB, prompt is the value of -p with non-TTY stdin detached via < /dev/null; above 64 KB, prompt is passed via a rewindable temp file on stdin without -p to avoid Linux E2BIG — measured on agy 1.4.8 and 1.5.9 with --output-format json; --continue/-r/--resume/--conversation + > 64 KB combinations are stub-tested). On agy ≥ 1.1.8 it also runs agy with --output-format json
internally: stdout still gives you the model's text unchanged, but failures are
classified from the structured error instead of scraped prose, and the executor's real
token usage (input / output / thinking / cache_read) is reported as an AGY_USAGE {...} line on stderr — so the Gemini side of a delegation can finally be measured, not
estimated. The line also carries model and tier (the tier the model was derived from;
empty for an explicit --model) and agy's duration_seconds / num_turns (1.2.x; 0 on
older agy), so a log prices itself per tier without a join back to the command. Older agy (or no python3) transparently falls back to the plain-text path;
force it with the structured_output option.
Accounting semantics for AGY_USAGE (verified — get this wrong and your cost math
is wrong). total = input + output (and thinking is inside output).
cache_read is a separate counter: it is NOT part of total, and it is not a subset
of input — in an agentic delegation it routinely exceeds input (measured:
cache_read 1,356,694 vs input 243,117 in one delegation). So price the Gemini side
as input×in_rate + output×out_rate + cache_read×cached_rate, three separate terms.
This differs from the Claude/Harbor side, where cache-read tokens are an inner subset
of the reported input total — don't carry one convention over to the other.
If you are measuring, set AGY_USAGE_LOG=/path/to/log (or the usage_log option).
AGY_USAGE and AGY_SIGNAL go to stderr, and the advice two paragraphs down — keep
Claude's context lean — makes agy-delegate ... 2>&1 | tail -N the natural thing to
write. stdout (the digest) is emitted after the usage line, so tail keeps the digest
and silently drops the usage. Measured in the wild: a benchmark harness lost most of its
Gemini-side data exactly this way, which made the hybrid look cheaper than it was. A
named file cannot be truncated by a pipe.
Two ways to delegate. Call the wrapper directly (above), or — when you want file
generation to happen entirely on Gemini with zero Claude tokens spent writing — hand
the unit to the antigravity-delegate subagent (its only file-acting tool is the
wrapper; it returns a digest for you to verify). Either way, you still own verification.
Structured failures. The wrapper exits 10 quota (incl. agy 1.5.17+ Gemini Enterprise prepaid balance exhaustion / RESOURCE_EXHAUSTED) · 11 auth / policy blocked (AUTH_REQUIRED, opt-in AGY_BLOCK_CONSUMER_OAUTH=1 pre-flight CONSUMER_OAUTH_BLOCKED, or runtime HTTP 403 TOS_BLOCKED — non-retryable) · 12 timeout (incl. an expired --print-timeout, which returns a partial reply — rc 0 on agy 1.1.28–1.4.x, rc 3 with finished_reason / AGY_ERROR "print_timeout" on agy 1.5.0+ for both mid-turn and background-task timeouts — so the wrapper prints the partial reply and still exits 12; a complete JSON SUCCESS reply after which agy never exits, seen on agy 1.4.4, is printed and exits 0 with a stderr warning) · 13
agy-missing · 14 model-unavailable (a --model / tier_* / default_model name not in
agy models, or unavailable on this plan/project/location — agy ≥ 1.1.2 hard-fails instead of silently downgrading) · 15
permission-denied (a tool needed permission headless — BOTH the soft deny, agy 1.1.3+ and
again from 1.1.20, and 1.1.13's hard error — add a permissions.allow rule or pass --yolo, or if --yolo was already set, check Gemini Enterprise admin policy / permissions.deny rules (policy_blocked, agy 1.5.2+);
since 1.1.27 the wrapper names the refused tool from the envelope's denied_actions, with a diagnostic stderr/error fallback when denied_actions is empty) · 16
cli-flag-error (CLI_FLAG_ERROR: agy rejected a CLI flag or option value such as --settings / --json-schema, classified ahead of permission and timeout checks so Usage of agy: never misreports as exit 15 or 12)
(besides 1 wrapper usage / 2 failed / 3 empty). On agy ≥ 1.1.8 these are derived from the structured
status/error envelope rather than stderr pattern-matching, so the classification is
reliable. It prints a AGY_SIGNAL {...} line on stderr;
agy-job status/result surface it, so you can react (e.g. retry quota with --continue,
fix the model name, or add --yolo) instead of scraping prose. (Note: agy-job result <id>
itself exits 2 only while the job is still running and exits 0 once output can be read —
check agy-job status or stderr's [exit rc=...] vs [cancelled] trailer for the job's
outcome.)
If Claude itself is running headless (claude -p, one-shot): run delegations
synchronously — let agy-delegate BLOCK and return before you continue. Do NOT
background a delegation expecting a later turn / "harness re-invocation": there is none in
-p mode, so you'd exit before the work finishes. (Backgrounding is only valid in an
interactive session that will be re-invoked; there agy-job cancel <id> stops the job's
descendant process tree — measured live on Linux with agy 1.5.9, CI-tested with stubs on
macOS /bin/bash 3.2, and stub-tested for Windows Git Bash ps -e + taskkill /T /F from
the #117 report, where SIGSTOP parent-freeze against hand-off respawn is POSIX-only — and
marks state=cancelled.)
Shared harness: one AGENTS.md for both AIs
agy reads AGENTS.md from the workspace (verified). Keep a single shared
AGENTS.md at the repo root (stack, conventions, hard rules, workflow) so Claude and
Antigravity operate under the same rules — this raises agy's first-pass success
rate and keeps output consistent (lower OpEx).
Rule: when delegating any repo work, always pass --dir <repo-root> (inside the antigravity-delegate subagent, pass --dir . or a literal subdirectory inside cwd — its PreToolUse gate blocks paths outside cwd) so agy loads
AGENTS.md and the real code, instead of pasting files into the prompt (cheaper, denser
context).
Verification gates (non-negotiable)
Claude owns correctness. For anything that ships:
- Define the contract first — Claude writes/owns the tests and evals; they tell
agy what "correct" means more precisely than prose.
- Output eval = actually run it, don't stop at reading the code. Reading the diff
is necessary but NOT sufficient — a static review that "looks right" is still vibe
coding. Execute it: run the tests, launch the app, hit the real API/endpoints, and
check each acceptance criterion against observed behavior. Verify external
assumptions empirically (e.g. does the API actually accept that input?) rather than
trusting the spec's claims. If you cannot run it, say so explicitly — do not mark
the gate passed.
- Trajectory check — did it take a sane path? (Limit: print mode returns only the
final text. The per-conversation logs under
~/.gemini/antigravity-cli/conversations
are SQLite .db files with opaque blob columns, not human-readable, and agy 1.5.15+
no longer prunes past 500 conversations — don't rely
on reading .db files directly. To inspect or reclaim disk space on agy ≥ 1.5.19–1.5.20,
use agy conversations list, agy conversations clean (--dry-run, --older-than,
--keep-recent, --min-size, or specific IDs), and agy conversations compact (--dry-run,
--yes, --undo <id>, --delete-backups; rewrites SQLite .db files and moves originals to
conversations_precompact/): both compact and clean preserve
brain/<id>/.system_generated/logs/transcript.jsonl read by agy-trace (note that cleaned
IDs fail fast under -r <id> on agy ≥ 1.5.20). Instead, have agy summarize its own steps as part of its output,
or keep a session with --continue / -r / --resume / --conversation and ask it to recap.
But every run leaves a readable trajectory: transcript.jsonl under
~/.gemini/antigravity-cli/brain/<conversationId>/ — for plain delegations too, not
just internal-fan-out subagents (agy-trace scans via os.scandir, so >500 conversations
never hit shell glob ARG_MAX). agy-delegate prints the conversationId in its
AGY_USAGE line, so cost and trajectory join 1:1. Audit with
agy-trace --audit <conversationId> (or --audit --last): step-type counts plus
every non-zero exit. A delegation can report SUCCESS while commands inside it failed —
measured: 6 failed commands inside one overall-"SUCCESS" run. agy-trace <id> prints
the full steps; --list finds recent ones.
What is NOT recorded: the command strings. Not in transcript.jsonl, not in
transcript_full.jsonl, not in ~/.gemini/antigravity-cli/log/cli-*.log. You get
that a command ran, its exit code and its output. To attribute a filesystem change,
diff the tree — the trajectory cannot tell you.)
- Review every shipping line — be skeptical of clever code; check imports are real
packages (hallucinated deps), error handling, edge cases, and that the contract
itself is internally consistent (examples/placeholders match the verified behavior).
- Never trust agy's "GREEN" — re-run the gate yourself in a clean state. Measured:
agy will, to make a check pass, modify the environment itself — e.g. patch the
installed package in site-packages, or
MagicMock-stub a missing dependency — and then
report success. Before believing a passing test/eval: diff any touched tooling against a
pristine reference, restore it, and re-run the gate under Claude's own control. agy's
self-reported pass is a claim, not evidence.
If wrong: retry on --tier pro, sharpen the spec, or do that piece yourself.
Safety for write tasks
For read-only work (search, review, analysis), pass --read-only (and --allow-url when fetching URLs): per upstream agy release notes, on agy 1.5.7+ with an active OS terminal sandbox, unflagged agy defaults to Auto mode, which auto-approves workspace edits + vetted/sandboxed commands (1.5.7+), outside-workspace read_file (1.5.14+), and outside-workspace VCS-repository or additive write_file/edit_file (1.5.16+); --read-only sets agentMode: "" and allowNonWorkspaceAccess: false alongside ask: ["write_file(*)","command(*)"] (measured on Linux with agy 1.5.16: denies external-Git write_file and non-workspace host read_file with exit 15 even when settings.json sets "allowNonWorkspaceAccess": true, though agy still allows read_file under /tmp). When agy writes files or runs
commands (--yolo grants write + terminal):
- Write grants,
Auto mode, and request-review. Prior to agy 1.5.7 (and whenever Auto mode is off or request-review / --read-only is active), headless agy's no-permission behavior shifted
every few releases — describe-only (pre-1.1.0), scratch-divert (1.1.0–1.1.2), soft-deny
with a stderr notice (1.1.3+), hard error by 1.1.13, soft again from 1.1.20
(measured on 1.1.25; since 1.1.27 also named in the envelope's denied_actions, 1.2.0) — and without Auto mode your workspace stays
untouched; what varies is whether the run admits it (issue #10). The
wrapper maps the soft deny and the hard error alike to exit 15. Explicit grants beyond Auto mode's vetted scope (permissions.allow, --mode accept-edits, or --yolo): A write_file(<dir>) entry under permissions.allow in
~/.gemini/antigravity-cli/settings.json allows writes recursively beneath <dir>
with no flag at all — confirmed on agy 1.1.9 by a controlled A/B (#37): covered target
wrote, uncovered target returned PERMISSION_DENIED, rule the only variable. agy's own
denial text names the rule and offers --yolo as the alternative. --yolo auto-approves
all tools and is what you need when no rule covers the target, or for web search / URL
reads (agy 1.1.28 made those ask first; the narrow rule is read_url(<target>)) / Vertex AI
Search / terminal. Not verified below 1.1.9; a glob form (write_file(/path/**)) was
reported not to match. <dir> is a placeholder: left as written the rule grants nothing
on any version — exit 15 with the rule visibly present in the file. Separately, and only
for command(...), an entry naming no command (command(time), comment-only, ())
matched EVERY command before 1.1.11; do not attach that history to a mistyped
write_file(). If a user reports a rule that "should" work, have them run agy-doctor
before changing anything else.
Run write tasks on a branch and verify with git status.
prompt for or block --dangerously-skip-permissions — approve it or pre-allow
Bash(agy-delegate*). Always verify files actually changed in the workspace with
git status (the wrapper maps BOTH denial shapes — the soft deny, 1.1.3+ and again from
1.1.20, and 1.1.13's hard error — to exit 15, so you're not left guessing).
- Run it on a dedicated git branch or worktree so changes are isolated.
--sandbox is NOT execution containment. Measured on macOS with agy 1.1.19: with --yolo, --sandbox changed nothing — a write to an absolute path OUTSIDE --dir succeeded (rc 0), id ran and returned a real uid, and curl https://example.com returned 200. agy's own help says "terminal restrictions"; whatever it restricts, it is not those, and not in this combination. Not tested on Linux. Contain by what you check
out and by permissions.allow, not by the flag.
- Claude reviews the diff before merging — never auto-merge agy's writes.
Hand-off mode — whole task to agy, tests as the gate (measured)
The measurement that shaped this section: eight merged pull requests from public Go
repositories (caddy, cli/cli, k6, zoekt; 52–2,242 lines), replayed from the parent commit
with the PR's tests restored before scoring, Claude Opus 5 as the conductor in every arm,
n = 2–3 per cell, blinded two-family review (2026-09, measured on agy 1.2.2 only; PR #91).
| configuration | cost per passing task vs solo Opus 5 | tests | blinded review (5 = best) |
|---|
| Claude reads, specifies, agy writes file by file | 1.33–1.68× | equal | 3.7–3.8 vs 4.0 |
Claude reads nothing; whole task to agy; tests decide (agy-handoff) | 0.58× (large ≥700 lines 0.43×; small <100 lines 1.20×) | 16/16 | 3.4 vs 4.0 (human-merged PR: 3.7) |
| same, plus agy reviewing its own diff against a checklist | 0.67× | 15/16 | 3.5 |
| Sonnet 5 alone | 0.58× | 17/20 | 3.7 |
Why it works: a solo run's spend is 54% cache reads and 21% cache writes; half of what
the conductor reads it never edits. Delegation only saves money when the conductor stops
reading. Why it is not free: the executor writes more than asked (dead code, duplicated
helpers, extra options) and nobody reads it before the tests, so the result is a first
draft for human review, and the wall-clock is 3–4× a solo run. Prices matter too: at
the Gemini 3.8 Flash unit price this project was actually billed (2× the promotional
prices.json rate) the overall saving vanishes and only large tasks keep 0.77×; on an
Antigravity plan where the Gemini side is not metered, the Claude side alone is 0.16×.
Rules (1–5 measured on agy 1.2.2 in the #91 benchmark; 6–7 are wrapper design; the
agy-handoff wrapper itself is verified against the test suite's agy stub in CI):
- Hand off whole, or not at all. One delegation carrying the entire requirement,
verbatim, plus the contract
agy-handoff appends (tests exist and must pass unmodified,
no additions beyond the requirement, leave changes uncommitted, run the gate before
finishing). Median 1–2 delegations per task; a second one only to quote a failing test.
- Size gate. Roughly 200 changed lines and up, with tests that define "done". Below
that the fixed price of one long executor conversation (about $1.5–2.5 at the deck)
exceeds what a solo run would have cost. Small tasks lost money in every delegation arm.
- Read nothing. Not the files before (ask for a digest if you must), not the diff
after. The moment you read to verify, you are back in the 1.3–1.7× regime.
- Tests are the only gate you apply.
agy-handoff runs the repository's verification
command, sends at most one fix-up quoting the failing output (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 touched (exit 6 if
any --tests file was modified, whether uncommitted or committed). No test command, no
hand-off (--no-verify exists for experiments, not for work).
- Human review after green. Hand the diff over as a first draft and say what the
reviewer found in the measurement: dead code and unused fields, helpers re-implemented
beside a library already in
go.mod, options nobody asked for, mismatched import
grouping. Asking the executor to review its own diff for these did not help (+0.07).
- Clean tree, dedicated branch,
--yolo implied. The executor edits with all tools
auto-approved and may search the web; the wrapper refuses a dirty tree unless told
otherwise. It registers the repository with agy first (agy --new-project; in an
unseen directory agy otherwise works in its last project root — 450 s vs 119 s).
- Interactive sessions:
--background. A real feature takes 20–120 minutes; Claude
Code's Bash tool cuts a call off after its timeout. Detach, poll with agy-job status,
collect with agy-job result (or stop the full job process tree with agy-job cancel), and leave the repository alone meanwhile. Headless
claude -p: synchronous, with the Bash timeout raised.
Cost discipline — where the savings actually come from
Delegation does not save money by itself. Measured reality: on a small task the
hybrid cost more than Claude-only, because the dominant cost was Claude's own
cache_read — re-reading a large, growing context across many orchestration turns.
The savings the "Gemini sub-agent" concept promises are real, but only when you keep
Claude's context lean and the round-trips few. Apply these as hard rules:
- Delegate above the break-even, not below. Hand work to agy only when the offloaded
volume clearly exceeds the spec-writing + round-trip + verification overhead it
adds. Bulk/parallel/repetitive (mass migration, exhaustive tests, fan-out research,
long-context reads that return a small digest) = delegate. Small, self-contained, or
judgement-heavy = just do it yourself. (Delegating a tiny task is a net loss.)
- Keep Claude's context lean (the biggest lever). Do not pull the files agy
already handled (
--dir) back into Claude's context, and do not paste agy's raw
bulky output into the thread. Claude ingests a digest, not raw content — this is
what collapses the per-turn cache_read that made the hybrid expensive.
- Make agy return a digest, not a dump. End every delegation prompt with an explicit
trailer instruction, e.g.:
"...End with a fenced block ===DIGEST=== listing: files changed, key decisions, and a 1-paragraph 'context for next step'. Put bulky detail ONLY in files, not in your reply."
Claude reads the DIGEST; the bulky work stays on cheap Gemini tokens.
- Batch, don't chatter. One large, fully-specified delegation beats many small
round-trips (each round-trip re-reads context =
cache_read tax).
- Review the diff, not the whole tree.
git diff is compact; reading every file is
not.
- Do not hold state on the executor to save money — measured, it costs more. It is
tempting to keep one agy session alive with
--continue / --conversation <id> so the
working context "lives on the cheap side". It does not work: resuming carries the whole
prior conversation forward and agy re-reads the material anyway, and agy's prompt
cache covers only ~2/3 of its context re-reads. Measured on a repeated-corpus digest,
the continued call cost +82% / +277% vs a fresh one (n=2). Use --continue for what
it is good at — resuming after a quota or timeout failure — and get multi-step
savings from rule 4 instead (one large delegation, not many small ones).
- Asymmetric effort. The conductor doesn't need max reasoning effort to coordinate +
verify; run Claude at a moderate effort and let the cheap workers do the volume.
- Don't fight the prompt-cache TTL on small tasks (measured trap). The 5-min cache
expires while you wait on a long agy delegation, so the next turn pays
cache_create
(1.25× input) instead of cache_read (0.1×). It's tempting to "keep the cache warm"
with busy turns — measured: that backfires, because every warming turn generates
frontier output (5× input), the most expensive class, and net cost goes up. Do NOT
manufacture work to stay warm. Backgrounding a long delegation (Bash run_in_background)
is fine to avoid blocking, but it does not make a small task cheaper. The only real
fix is scale: make each delegation big enough that the displaced Claude output
dwarfs the one-time re-cache cost. Below the break-even, the hybrid loses on cost — three
optimization variants were tested on a small task and none beat solo Claude (see
docs/AB-RESULTS.md). Delegate for cost reasons only at scale.
Honest framing for any cost claim: there is no flat 8×/46%. Below the break-even the
hybrid costs more; above it, lean-context routing cuts frontier-model spend by a
measured margin. Quote the measured number and the break-even, never a headline ratio.
Use agy-cost-compare for the per-token gap (estimate; set real Vertex rates first).
The number of delegations is the lever — batch them (measured)
Rule 4 above ("batch, don't chatter") is the one that actually moves the needle, and
here is why, from a benchmark of this plugin
(Opus 5 conductor · Gemini 3.6 Flash High executor · agy 1.1.8 · n=3/arm, cold cache):
Per delegation the economics are fine. Repeated ingestion is what breaks them.
Offloading a large corpus works exactly as designed — the conductor's cache_read fell
61%, it never opened the corpus itself, and each digest came back at ~4k tokens. But
each agy-delegate call is an independent session that shares no cache with the last
one, so a conductor that delegated 7.3 times against the same corpus paid to ingest it
7.3 times. Two-thirds of the executor's cost was re-reading material it had already
read. Break-even on that task was ~5.7 delegations; the one trial that stayed at 5 came
in cheaper than solo Claude, the ones at 9 did not.
So when several delegations work over the same material:
- Fold related units into ONE fully-specified delegation. This is the only lever that
actually removes a re-ingestion. Two questions about one corpus = one delegation asking
for both, not two delegations.
Only fold units that genuinely belong together. If combining them muddies the spec,
don't — a vague mega-prompt returns worse work, and re-running it costs far more than
the re-ingestion you saved. Quality of the spec beats the token arithmetic every time.
- Scope
--dir to the smallest subtree that contains the work, and expect the executor's
read cost — not its writing — to dominate.
- Do NOT reach for
--continue to avoid re-ingestion — measured, it makes things
worse. Resuming a session carries the whole prior conversation forward and agy
re-reads the material anyway, so you pay both: on a repeated-corpus digest the continued
second call cost +82% and +277% vs a fresh one (n=2), with cache_read 3–14× higher.
--continue is for resuming after a failure (quota, timeout) — not a cost lever.
Two supporting facts, both measured: delegation moves work rather than removing it
(the hybrid ran ~2.8× the normalized token volume for the same result — it stays
affordable because the executor is cheaper per token, not because it does less), and
agy's own prompt cache covers only ~2/3 of its context re-reads, so the executor is
worse than Claude at carrying context. Both push the same way: fewer, larger, session-
reusing delegations.
These are single-configuration measurements from 2026-07 on two task families, not
constants. Treat them as direction, and re-measure on your own workload before quoting
any figure.
SDLC recipes
ROOT=agy-delegate
# Scaffold from a spec (Claude wrote the spec/architecture)
"$ROOT" --tier pro --yolo --dir ./app \
"Scaffold per ARCHITECTURE.md: dirs, configs, stub modules. Follow AGENTS.md."
# Generate tests for a contract Claude defined
"$ROOT" --tier flash --yolo --dir ./app \
"Write unit + edge-case tests for src/payments.py covering the cases in SPEC.md."
# First-pass review (Claude does the final pass)
"$ROOT" --tier pro "Review for bugs/security/perf, be skeptical. List file:line: <diff>"
# Implement-until-tests-pass (feedback loop; isolate on a branch)
"$ROOT" --tier pro --yolo --dir ./app \
"Implement feature X to satisfy AGENTS.md and make 'pytest -q' pass. Iterate until green."
# Migration / modernization
"$ROOT" --tier pro --yolo --dir ./svc \
"Migrate all callers from APIv1 to APIv2 per MIGRATION.md. List every file changed."
# Web search → Claude re-checks
"$ROOT" --tier pro --yolo "Use web search for <X>. Give URLs + dates."
# Audio / video / image understanding (Claude can't hear or watch; Gemini can)
# agy-media writes the full transcript to a FILE and returns a timestamped digest —
# never ingest a whole transcript (a 1-hour recording is ~10k words of cache_read).
agy-media ./meeting.wav "decisions and owners" # digest -> you; transcript -> ./meeting.transcript.md
agy-media ./demo.mp4 --timeout 20m # video: adds timestamped VISUALS/OCR
agy-media ./memo.m4a --convert # agy mishandles m4a/aiff; converts to wav first
# Verify before relying on it: the digest flags unclear audio + uncertain names/numbers —
# grep that timestamp out of the transcript file rather than trusting the summary.
# Vertex AI Search over internal data (discover engines, then query)
"$ROOT" --tier pro --yolo "List Vertex AI Search engines (list_engines)."
"$ROOT" --tier pro --yolo "Search engine <ENGINE_ID> for: <question>. Cite the hits."
Internal fan-out recipe (agy spawns its own subagents)
agy has built-in define_subagent / invoke_subagent tools. Which pattern works is
version-dependent — this surface is moving fast upstream (4 releases in one week
while we tracked it), so re-verify after any agy upgrade:
- agy ≥ 1.0.16 — dynamic custom subagents (preferred): have agy
define_subagent a
named specialist in-session (name / description / system_prompt), then
invoke_subagent it by that TypeName. Verified headless on 1.0.16 and re-verified
on 1.1.0: define → invoke → result round-trips cleanly, real thread spawned.
(1.0.13–1.0.15 shipped this broken — defined agents failed to invoke, upstream #521;
fixed in 1.0.16. Subagents are officially documented as of 1.1.0 —
antigravity.google/docs/cli/subagents — with static config at
<workspace>/.agents/agents/*.md and global ~/.gemini/config/agents/.)
- Any version — role delegation (fallback): the sandbox pre-approves TypeNames
self and research; an undefined custom TypeName is rejected with
CORTEX_STEP_TYPE_INVOKE_SUBAGENT: ... not found or not allowed to be invoked
(upstream #105). Invoke TypeName self and inject the specialty via Role +
Prompt — verified on 1.0.12 and re-verified on 1.0.16.
Use it for orchestrator-mode work pushed down a level: instead of Claude dispatching
N parallel agy-job runs (N round-trips, coordination spend on the frontier side), send
ONE delegation and let agy fan out internally — the coordination tokens land on the
cheap side, and you ingest a single digest.
# Preferred form (agy >= 1.0.16). --yolo (the wrapper's flag; it reaches agy as
# --dangerously-skip-permissions) is required so the subagent tools aren't
# soft-denied headless (see below). Verified live on agy 1.1.5.
agy-delegate --dir . --yolo --digest --timeout 10m \
"ACTUALLY use your define_subagent and invoke_subagent tools (do NOT simulate).
Decompose <task> into up to 3 units. For each unit: define_subagent a named specialist
(name + system_prompt for its role, following this repo's conventions / AGENTS.md if
present), then invoke_subagent it by TypeName with the unit's work. Wait for ALL, then
report per-unit results, EACH subagent's conversationId, and end with a DIGEST line."
# Any-version fallback: replace define/invoke with TypeName "self" + a specialist Role.
Verified behaviors (1.0.12 → 1.1.5):
-
Pass --yolo. On 1.1.3+ the subagent tools need permission that headless mode
can't prompt for, so without --yolo the spawn is denied (wrapper exit 15). Whether
it is a soft deny or the hard error 1.1.13 introduced for writes (and 1.1.20 took
back) has not been measured for this tool — the grant and the exit code are the same either way.
(On 1.0.x spawning was ungated, but --yolo is the durable choice here: a
permissions.allow write_file(...) rule covers file writes only, not
define_subagent/invoke_subagent, and not web search, URL reads (agy 1.1.28+) or Vertex AI Search.)
-
Each spawn's tool result includes a logAbsoluteUri → a readable step-by-step
transcript.jsonl under ~/.gemini/antigravity-cli/brain/<conversationId>/ —
better trajectory visibility than a plain delegation. Location unchanged across
1.0.12→1.1.5, for both define_subagent and self spawns. Have the parent report
each conversationId, then audit with agy-trace <id> (agy-trace --list finds
recent ones). Note: the parent may also create a coordination thread of its own, so
--list can show one more conversation than the units you asked for.
-
Spawns are real and observable (new conversation threads appear) — but still run the
verification gates on the merged result; more autonomy = more surface for error.
-
agy ≥ 1.5.9 — dynamic Python workflow orchestration (run_workflow) & /swarm:
agy 1.5.9 bundles run_workflow (a Python orchestrator script inside agy with agent, parallel, pipeline, and phase primitives for fanning out over files/modules and aggregating results in code), and agy 1.5.6+ ships /swarm (multi-agent worktree board coordination; since 1.5.13, agy never enters swarm mode autonomously without /swarm). Invoke run_workflow inside a single --yolo delegation when the fan-out logic itself is code; if starting a prompt with a literal /swarm slash command, pass --allow-slash-commands (since agy-delegate passes --disable-slash-commands by default on 1.5.4+).
Caveats: neither pattern is a documented contract yet — self+Role works around the
sandbox allowlist, and even the official docs' static agent-config paths don't match
observed behavior (upstream #527) — so re-verify after agy upgrades (1.0.16 changed
this area within a day of our first verification). Bound the fan-out width in the
prompt (agy chooses parallelism otherwise). A wide fan-out takes longer wall-clock —
raise --timeout, and in an interactive session prefer a background job (agy-job).
Deep-research recipe (multi-source)
agy has no built-in "Deep Research" mode — that product lives in the Gemini app
and the Gemini API's managed Deep Research Agent, not the CLI (verified). But agy
can do genuine multi-step, cited web research via its agentic loop. So deep research
is a Claude-orchestrated recipe, not a single agy call. Pair it with Claude's own
deep-research skill as planner/verifier; agy is the cheap, grounded legwork worker.
Caveat that shapes the recipe (verified empirically): in --print mode agy uses
search-summary tools and does NOT reliably fetch full pages, so its citations are
coarse (often domain-level) and may not actually support the claim. It can also leak
parametric "knowledge" disguised as a sourced fact. Never ship its citations
unverified.
- Plan (Claude). Decompose into sub-questions + an explicit list of load-bearing
claims to verify. Claude owns scope and final synthesis.
- Fan-out fetch (agy, cheap, parallel). One call per sub-question; force compact
stdout so bulky pages stay in Gemini's context, not Claude's (on
agy < 1.4.10 where --settings is absent, replace --read-only --allow-url with --yolo or a read_url(<target>) rule so URL reads don't hit exit 15):
"$ROOT" --tier flash --timeout 15m --read-only --allow-url \
"Use web search for <sub-question>. Return 5-8 bullet findings, each with the
exact source URL and publication date. Output ONLY findings+URLs+dates."
- Deepen on key sources (agy). For each load-bearing claim, name the URL and make
agy quote the supporting text (turns domain-level citations into verifiable quotes):
"$ROOT" --tier pro --timeout 10m --read-only --allow-url \
"Open <URL> and quote the exact sentence(s) supporting: '<claim>'.
If the page does not support it, reply NOT SUPPORTED."
- Adversarial verify (Claude). Corroborate each key claim across ≥2 independent
domains; treat any single/vague/domain-only citation as unverified; sanity-check
dates; watch for Gemini parametric knowledge masquerading as a sourced fact.
- Synthesize (Claude). Write the final cited report from verified findings only;
mark anything uncorroborated as "unverified."
Iteration is Claude's job: --print does one agentic pass per call (no auto re-query
when evidence is thin), so Claude must re-dispatch follow-up agy calls to close gaps.
Token economics: bulky searched/fetched text is paid in cheap Gemini tokens and
distilled to bullets+URLs before reaching Claude — use agy-cost-compare to show it.
What Antigravity brings that Claude lacks natively
Built-in Google tools (MCP), verified working in headless --print mode:
- Google / web search — current, grounded info.
- Vertex AI Search — search internal/company data stores (
list_engines,
search, conversational_search).
- Google Cloud Logging, Notebooks (Colab/Jupyter), Visualization (charts).
Read-only web/URL tools work with --read-only --allow-url on agy ≥ 1.4.10; Vertex AI Search and terminal-backed tools in headless mode require --yolo (or specific permissions.allow rules, since print mode can't show approval prompts).
Economics (a financial lever, not the headline)
Routing deterministic, high-volume work to Gemini 4 Hydrogen (flash tier, ≪ Claude per token) is
intelligent model routing: higher CapEx (this harness) for lower OpEx (cheap model
does the bulk). Use the cost demo as observability:
agy-cost-compare --tier flash "the task prompt"
Uses exact AGY_USAGE token counts (input, output, and additive cache_read) on agy ≥ 1.1.8, falling back to chars/4 estimates on older plain-text runs. Set real Vertex rates in prices.json or
via CLAUDE_IN_PER_M, CLAUDE_OUT_PER_M, GEMINI_IN_PER_M, GEMINI_OUT_PER_M.
Prerequisites & limits
agy installed and authenticated — Consumer OAuth (works out of the box in v0.32.2+ under the 2026-12-01 Antigravity Terms §6 update permitting unmodified agy -p as a tool/subagent; set AGY_BLOCK_CONSUMER_OAUTH=1 for enterprise Google Cloud / API-key-only enforcement), Google Cloud project OAuth (2. Use a Google Cloud project, PayGo or Gemini Enterprise — recommended for Google Workspace), Vertex AI ADC (AGY_ADC_AUTH=true), Gemini API key ({"modelProvider": "gemini"} in ~/.gemini/antigravity-cli/settings.json + GEMINI_API_KEY), or Enterprise LLM Gateway.
- Scripts executable (
chmod +x scripts/*.sh).
- agy v1.0.x:
-p takes the prompt as its value (wrapper handles); no JSON output;
print mode returns final text only (no trajectory); no timeout(1) on macOS (use
--timeout).
- WSL:
--add-dir on a Windows mount (/mnt/c/...) reads over a slow 9p bridge —
calls can take 20s+. Keep the repo on the Linux filesystem (~); the wrapper warns.