by yuting0624
Claude Code plugin: run the Antigravity CLI (Gemini) as a collaborating sub-agent with intelligent model routing across the SDLC. Community project; not affiliated with Google/Anthropic.
# Add to your Claude Code skills
git clone https://github.com/yuting0624/antigravity-for-claude-codeGuides for using ai agents skills like antigravity-for-claude-code.
antigravity-for-claude-code is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by yuting0624. Claude Code plugin: run the Antigravity CLI (Gemini) as a collaborating sub-agent with intelligent model routing across the SDLC. Community project; not affiliated with Google/Anthropic. It has 139 GitHub stars.
antigravity-for-claude-code's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/yuting0624/antigravity-for-claude-code" and add it to your Claude Code skills directory (see the Installation section above).
antigravity-for-claude-code is primarily written in Shell. It is open-source under yuting0624 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh antigravity-for-claude-code against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
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.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: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 |
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.
# one-shot delegation (plain text on stdout)
scripts/agy-delegate.sh --tier flash "Summarize this changelog in 3 bullets: ..."
# give Antigravity a workspace for multi-file agentic work
scripts/agy-delegate.sh --tier pro --dir ./src "List every TODO with file:line"
# bulk read -> digest-only reply (the biggest cost lever; wrapper warns on dump-sized replies)
scripts/agy-delegate.sh --digest --dir . "Map the auth flow end to end"
# write task: auto-apply FILE edits without granting terminal/tools (agy >= 1.1.0)
scripts/agy-delegate.sh --mode accept-edits --dir ./app "Implement X per SPEC.md"
# live web / Google search (tools need --yolo in headless mode)
scripts/agy-delegate.sh --tier pro --yolo "Web-search <X>. Give URLs + dates."
# Vertex AI Search over internal data
scripts/agy-delegate.sh --tier pro --yolo "List Vertex AI Search engines (list_engines)."
# cross-model review / stdin / background job
scripts/agy-delegate.sh --tier pro "Review for bugs, be skeptical: <paste>"
cat big-prompt.txt | scripts/agy-delegate.sh -
ID=$(scripts/agy-job.sh start --tier pro --dir . "big task"); scripts/agy-job.sh result "$ID"
| tier | model | use for |
|---|---|---|
flash (default) |
Gemini 3.5 Flash (High) | most bulk work |
flash-lo |
Gemini 3.5 Flash (Low) | cheapest, trivial tasks |
pro |
Gemini 3.1 Pro (High) | harder reasoning / cross-checks |
agy is multi-model. Tiers default to Gemini, but you can use any model agy models lists
(Claude / GPT on plans that expose them): pass --model "<exact name>", or set it persistently
via plugin options โ default_model, or per-tier tier_flash / tier_flash_lo / tier_pro
(env CLAUDE_PLUGIN_OPTION_*). Keep the executor a different, cheaper model than the Claude
conductor โ that's what gives both the cost saving and the cross-model verification.
Delegation doesn't save money by itself โ these do (also in the skill):
cache_read.) Enforced in code: --digest appends a digest-only output contract, and the wrapper warns when a reply comes back dump-sized (tune via the digest_warn_chars plugin option).scripts/measure-session.py <session-id> prints the COST-WEIGHTED + est. USD breakdown for a session (Claude side; Gemini side priced separately). scripts/agy-cost-compare.sh shows the per-token gap for a task โ estimates from char-count, so verify prices.json first.
Something broken? See docs/TROUBLESHOOTING.md โ symptom-first fixes for Windows/WSL, writes that silently don't happen, quota/auth/timeout codes, and updating.
Guardrails
--yolo auto-approves every tool call โ use with --sandbox or in a throwaway dir.Known limits (agy v1.0.x)
-p/--print takes the prompt as its value and must come last โ the wrapper handles this.--output-format json (plain text); --print drops stdout on a non-TTY unless stdin is detached (handled via < /dev/null).