Run the Antigravity CLI (Gemini) as a collaborating sub-agent, right inside Claude Code. Claude conducts the judgement; Gemini does the heavy lifting — intelligent model routing across the SDLC.
> /plugin marketplace add yuting0624/antigravity-for-claude-code> /plugin install antigravity@antigravity-for-claude-code
What's inside
Run the Antigravity CLI (Gemini) as a collaborating sub-agent, right inside Claude Code.
Claude conducts the judgement; Gemini does the heavy lifting — intelligent model routing across the SDLC.

Claude stays the conductor; the bulk, token-heavy read ran on cheaper Gemini, and Claude verified the result.
| Claude (conductor) | Gemini / agy (executor) | |
|---|---|---|
| Owns | requirements · architecture · the hard 20% · verification · review | scaffold · implementation · test generation · search |
| Strength | judgement | cheap, fast throughput |
you → Claude Code (conduct: design / verify / review)
└── agy → Gemini (execute: implement / test / search)
Generation is solved; verification, judgement, and direction are the craft.
AGENTS.md./antigravity:media delegates the perception to Gemini (natively multimodal, no local ffmpeg/Whisper stack): you get a timestamped digest while the full transcript is written to a file, so a 1-hour recording never lands in Claude's context.define_subagent on agy ≥ 1.0.16; TypeName "self" + Role on any version); each leaves a readable trajectory you audit with agy-trace.SessionStart hook injects the cost-aware
routing policy automatically (toggle in plugin settings), and the antigravity-delegate
subagent does file writing on Gemini, so Claude spends no tokens generating file contents.delegation_nudge).On a large ADK multi-agent build (+ adk eval), same task / same model, 3 ways:
| Claude solo @high | solo @max | hybrid | |
|---|---|---|---|
| frontier cost (COST-WEIGHTED) | 2.62M | 5.34M | 1.91M |
quality (adk eval) | ✅ 3/3 | ✅ 3/3 | ✅ 3/3 |
→ −27% vs solo@high, −64% vs solo@max, at equal quality — and the cheap Gemini work isn't even counted. Savings scale with task size; tiny one-off tasks are cheaper to just run on Claude. Full A/B: docs/AB-RESULTS.md.
Note on cost figures: numbers are estimates — token counts are approximated and rates live in
prices.json. Set your real Vertex rates there before quoting any figure.
In Claude Code:
/plugin marketplace add yuting0624/antigravity-for-claude-code
/plugin install antigravity@antigravity-for-claude-code
/antigravity:setup # verifies agy is installed + authenticated
Prerequisites: the Antigravity CLI (agy) installed & authenticated (agy models lists Gemini models), and Claude Code. For the same-bill cost benefit, run Claude Code on Vertex too.
Platform support: macOS, Linux, and WSL are the supported targets for headless delegation. Native Windows (Git Bash/MSYS) is not recommended — agy -p can hang with a 0-byte log when run without a real console (ConPTY); see issue #6. The wrapper now bounds this with a wall-clock guard (GNU timeout/gtimeout, returning a clean TIMEOUT instead of hanging), and doctor distinguishes a hang from an auth failure — but for reliable headless use, run from WSL/macOS/Linux.
The plugin's commands show up natively in Claude Code's / menu.
| command | what it does |
|---|---|
/antigravity:setup | health check — agy installed + authenticated, scripts ready |
/antigravity:delegate [--tier flash|pro] <task> | delegate a subtask to agy under cost discipline, then verify |
/antigravity:review [--adversarial] | independent cross-model review of the current diff; Claude reconciles |
/antigravity:research <topic> | Claude-orchestrated deep research — agy does grounded web legwork, Claude verifies citations across ≥2 sources |
/antigravity:media <file> [focus] [--convert] | understand audio / video / images — agy transcribes + analyzes, returns a timestamped digest; full transcript goes to a file, not your context |
/antigravity:cloud-run-debug [--service <s>] [--region <r>] [--project <id>] [--since 1h] [--apply] | diagnose a failing Cloud Run service — agy digests the error logs, Claude infers the root cause + fix; read-only by default (--apply writes to a branch) |
/antigravity:status [id] · :result <id> · :cancel <id> | manage background delegation jobs |
/antigravity:migrate [--apply] [--include-repos] | move an existing Claude Code setup onto agy — skills, CLAUDE.md, memory, MCP, plugins, permissions; dry-run by default, --uninstall reverses it |
Background jobs are for interactive sessions (fire-and-collect). In headless
claude -p(one-shot), delegate synchronously — there's no later turn to collect a result.
/antigravity:migrate moves an existing Claude Code configuration onto agy. Dry-run
by default; --apply backs up first and --uninstall --apply reverses it. Your
~/.claude is never written to.
/antigravity:migrate # see the plan
/antigravity:migrate --apply # global assets
/antigravity:migrate --apply --include-repos # also AGENTS.md + per-repo memory
| your Claude Code asset | becomes |
|---|---|
~/.claude/skills/ | read in place — a skills.json entry, not a copy, so one edit serves both tools |
| installed plugins | ~/.gemini/config/plugins/ via the native importer, with its output repaired |
CLAUDE.md | an AGENTS.md symlink beside it |
| auto-memory | always-on rules — global ones in a plugin, per-repo ones in <repo>/.agents/rules/ |
| MCP servers (project + desktop app) | merged into ~/.gemini/config/mcp_config.json |
| trusted projects | trustedWorkspaces |
permissions.allow | a proposal file — see below |
~/.claude/agents/ | nothing. A user subagent's model: names a Claude tier (opus / sonnet / haiku) and its tools: lists Claude tool names, so there is no honest mapping; subagents shipped inside a plugin come across with the plugin |
~/.claude/CLAUDE.md, ~/.claude/commands/, hooks in settings.json | nothing — only the copies that ship inside a plugin are carried across |
| session history | nothing. Antigravity stores conversations as protobuf blobs inside per-conversation SQLite files; there is no writer |
Two things are deliberately not automatic. Permissions widen when translated —
Claude's allow-list holds whole command lines, while agy's command() matches a
prefix — so the result is written out for review and merged only with
--apply-permissions. model / effortLevel / env are reported and never
written, because no honest mapping exists.
Worth knowing if you would rather do it by hand: an Antigravity rule without
trigger: always_on in its frontmatter is ignored with no error and no warning,
workspace .agents/ is ignored entirely unless the session is bound to an agy project,
and agy plugin import claude finds nothing on a current Claude Code because it only
looks one directory deep. docs/MIGRATION.md has the full layout
reference, the compatibility matrix, and how each of these was measured.
This plugin is one shape of Claude and Gemini working together: conductor and executor — judgement on one side, throughput on the other, one workflow. It is also the shape for people who live in a terminal.
gemini-studio-mcp is the same thesis on the other surface: Claude Desktop, for the colleagues who will never open one. An MCP server rather than a CLI delegation, and the verb flips from execute to ingest — Gemini reads the recording, the PDF corpus, the internal search index, and only the digest reaches Claude. The split is not cosmetic: you can hand a developer a --tier flag and an AGENTS.md, but a business user drags a PDF into a chat window, so the routing that is explicit here is automatic there, and the cost discipline that is a documented practice here is a number printed on every response there. They also fail differently — delegated writing can silently not happen and has to be checked against the filesystem; delegated reading can quietly summarise away the one paragraph that mattered and has to be checked against citations. Same author as this plugin.
quorum-review is the third shape: the two as peers. Both read the same pull request independently, neither sees the other's output, and where they agree independently that is the result — only the disagreements are worth a second opinion. Both run on one Google Cloud credential, so no vendor API keys live in the repository. Same author as this plugin.
This repo is its client zero. It runs on every pull request opened here, alongside a Claude review — including the ones that change this plugin. Keeping the habit of not quoting numbers we haven't measured, here is what that has actually been worth:
That last one is the useful lesson, and it cuts against the obvious pitch: two independent scans insure you against one model's blind spot. They do not insure you against a gap in what you handed both of them.
FAQ
antigravity is a Claude Code plugin with 2 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes antigravity, migrate-to-antigravity. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it