antigravity
Run the Antigravity CLI (Gemini) as a collaborating AI inside Claude Code, with intelligent model routing across the software development lifecycle. Claude is the conductor/orchestrator — requirements, architecture, the hard 20%, verification, and review — and routes deterministic, high-volume work (scaffolding, boilerplate, test generation, first-pass review, migrations, web/Vertex AI Search) to Antigravity (Gemini), the cheaper, faster model. Use when the user wants to "use Antigravity / agy", "vibe code / agentic engineering", "accelerate the SDLC", "delegate to Gemini", "scaffold / generate tests / migrate", "first-pass code review", "search web or internal/company data", "deep research / multi-source research report", "second-model cross-check", or "lower token cost on a big job". Claude always verifies Antigravity's output and re-checks itself if unsatisfied.
git clone --depth 1 https://github.com/yuting0624/antigravity-for-claude-code /tmp/antigravity && cp -r /tmp/antigravity/skills/antigravity ~/.claude/skills/antigravitySKILL.md
# 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.* ## 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. ## 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) · `flash-lo` (cheapest, trivial) · `pro` (harder reasoning / reviews / cross-checks). **agy is multi-model.** Tiers map to Gemini by default, but you can point delegation at any model `agy models` lists (Claude / GPT on plans that expose them) — via `--model <exact name>`, or persistently with the `default_model` / `tier_*` plugin options. 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. > > The `flash` tiers default to **Gemini 3.7 Flash (High)** / **(Low)** since 0.24.0. > 3.6 and 3.7 are priced identically and undercut 3.5 on every axis today: input > and cached-input are exactly half ($1.50 -> $0.75, $0.15 -> $0.075) and output > is cheaper still, $9.00 -> $3.75 — a 58% cut, not a halving. Under a > promotion that **ends 2026-12-31** and then settles at $1.50 / $7.50 / $0.15. > Price a run with `prices.json`'s `gemini_flash`, which mirrors whatever the flash > tier resolves to; `agy-cost-compare` picks that key by tier NAME, not by model. > > **The move is justified on price and currency, not on quality** — no comparison > has been run between these models on a build where `--model` actually applies. > If a plan does not serve 3.7, `doctor` says so and a delegation exits 14 naming > the fix; remap `tier_flash` to a name from `agy models` (3.6 costs the same). > > **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`); both slugs and > display names are accepted by `--model`, and `doctor` matches either. ## How to call it ```bash agy-delegate [options] "the task prompt" ``` Options: `--tier flash|f
|
Cancel a running background Antigravity (agy) delegation job.
Diagnose a failing Cloud Run service — Antigravity (agy/Gemini) digests the error logs cheaply, Claude infers the root cause and proposes a fix. Read-only by default; --apply writes the fix to a branch.
Delegate a well-scoped subtask to Antigravity (agy/Gemini) under cost discipline, then verify.
Understand an audio / video / image file — Antigravity (agy/Gemini) transcribes and analyzes it, returning a timestamped digest while the full transcript goes to a file.
Migrate an existing Claude Code setup (skills, memory, CLAUDE.md, MCP, plugins, permissions) to the Antigravity CLI.
Move an existing Claude Code setup onto the Antigravity CLI (agy) — user skills, CLAUDE.md, auto-memory, MCP servers, installed plugins, permissions and trusted workspaces. Use when the user says "migrate to Antigravity", "move my Claude Code config to agy", "bring my skills/memory/MCP over", "set up agy like my Claude Code", "agy plugin import claude found nothing", or asks what can and cannot be carried across. Also use to explain the two config layouts, or to reverse a migration.
Claude-orchestrated deep research — Antigravity (agy/Gemini) does the grounded web legwork; Claude plans, verifies the citations, and synthesizes.