[!IMPORTANT]
Use agy-subagent instead.
It is the preferred successor to this plugin. It runs agy as a warm,
multi-turn subagent behind one MCP tool (agy_run), with slash commands for
delegation, search, and review, and no shell wrapper.
claude plugin marketplace add davdittrich/agy-subagent
claude plugin install agy-subagent@agy-subagent
A Claude Code plugin that routes tasks to agy (Google Antigravity CLI), giving your Claude sessions access to Gemini and grounded web search with source citations. For general web search prefer your WebSearch tool; reach for agy when you need cited sources or a second model.
Why
Independent review. A model reviewing its own output anchors on the reasoning it used to produce it. Gemini — a different company, different training — catches different things. Not because Claude can't review code, but because it tends to miss what it already decided was right.
Current information with sources. Claude's training has a cutoff. When you need today's release notes, a pricing page, or a changelog with actual URLs, you need live web search — not a model's best guess.
A migration path off the Gemini CLI. On June 18, 2026, Google stops serving Gemini CLI requests for consumer tiers (AI Pro, Ultra, free Code Assist) and names the Antigravity CLI as the replacement. Frameworks like Claude Octopus and Metaswarm that shell out to a gemini binary break on that date. The included shim answers to the gemini name and routes the call through agy, so those tools keep working with no config changes.
How it works
The plugin has two parts.
agy-bridge is a shell script that wraps agy with type routing, reasoning --effort selection, --json-schema structured output, per-type tool restrictions, prompt sanitization, and consistent exit codes. Each --type gets its own GEMINI.md written to a temporary working directory; agy reads it via --add-dir; the GEMINI.md tool restrictions are prompt-advisory (guarding edit_file/create_file, start_subagent/swarm/run_workflow, and non-read MCP tools on agy 1.5.x), while --sandbox is the API-level filesystem floor that confines agy to the granted directories. A search call can only use web tools. A review or code call can only read files. An implement call can read and write files but can't run shell commands. The prompt itself is embedded in the per-run 0600 GEMINI.md (the same file that carries the tool restrictions, auto-loaded via --add-dir); only a short static pointer is passed as the --print value, so the prompt still doesn't appear in ps or /proc/cmdline.
agy-delegate is a Claude Code skill that tells Claude when to reach for the bridge and how to invoke agy-bridge inline via Bash with pointer-first --add-dir grants and --digest (skipping ~18k–50k subagent overhead and avoiding foreground ctx_shell auto-detach past ~110s). Thin Haiku tools: [Bash] subagents (agy-delegate-code, agy-delegate-search) remain available only when subagent isolation is explicitly needed.
A SubagentStart delegation hook (opt-in, default off) injects a one-line advisory into allowlisted Task subagents pointing them to agy-bridge via Bash with --add-dir and --digest (and warning off foreground ctx_shell >100s). It is advisory-only and never changes routing; see Configuration for the toggle, allowlist, and preconditions.
# How Claude calls it internally (you can run these directly too)
agy-bridge --type search -- "dplyr release notes"
agy-bridge --type review --digest --add-dir ./src -- "Review src/api.py for correctness"
Type routing
--type | Model class (fallback ladder) | What it can do |
|---|
search | hydrogen-high (flash-high) | Web search only; prepends search_web instruction automatically |
code | neon-high (carbon-high -> pro-high -> hydrogen-high) | Read files; returns generated code as text, no writes |
analysis | neon-high (carbon-high -> pro-high -> hydrogen-high) | Read files; handles large codebases |
review | carbon-high (neon-high -> pro-high -> hydrogen-high) | Read files; adversarial framing |
implement | neon-high (carbon-high -> pro-high -> hydrogen-high) | Read and write files (edit_file, create_file, write_file); no shell execution |