← ClaudeAtlas

gemini-as-toollisted

Use Google Gemini (3.x Pro and Flash) as a headless tool from Claude Code — a second opinion, a builder, or a judge — via a Google AI Pro OAuth subscription with no API key. Use when the user says "use Gemini", "ask Gemini", "get a second opinion", "have Gemini review/judge this", "cross-check with another model", or "orchestrate Gemini"; asks the literal question "how do I use Gemini from Claude Code?"; mentions Gemini 3 Pro/Flash, Antigravity, agy, or the Gemini CLI; or when you want to run Gemini headlessly or fan out prompts in parallel.
MarioMagdy/gemini-as-tool · ★ 1 · AI & Automation · score 77
Install: claude install-skill MarioMagdy/gemini-as-tool
# Gemini as a Tool (Google AI Pro subscription, no API key) ## Overview A tested harness ships with this skill for calling subscription Gemini models headlessly: ``` python "$CLAUDE_PLUGIN_ROOT/skills/gemini-as-tool/gemini_tool.py" <ask|pipeline|parallel> ... ``` Use it. Do not rediscover the plumbing — the raw CLIs have traps (below). ## Quick reference > **Locating the script.** When installed as a plugin, Claude Code sets `$CLAUDE_PLUGIN_ROOT`, so > the harness is `$CLAUDE_PLUGIN_ROOT/skills/gemini-as-tool/gemini_tool.py`. If that variable is > not set (e.g. a plain clone), the script is in this skill's own directory — run `python > gemini_tool.py ...` from there. The commands below use the short form for brevity. | Goal | Command | |---|---| | One answer (3.5 Flash) | `python gemini_tool.py ask "prompt"` | | One answer (3.1 Pro) | `python gemini_tool.py ask "prompt" --model pro` | | Builder→judge (Pro builds, Flash judges) | `python gemini_tool.py pipeline "build task"` | | N prompts concurrently | `python gemini_tool.py parallel "p1" "p2" "p3"` | (Python API: `from gemini_tool import ask`.) Calls take 10–60s (agy startup ≈10s). Verified working 2026-06-04. ## Running a BUILD with Gemini (proven recipe, 2026-06-06) A proven pattern for delegating a full build to Gemini: 1. **Brief as a FILE, not a prompt.** Write a detailed `BUILD_BRIEF_<name>.md` in the target repo/worktree (read-these-files-first list, file ownership + do-not-touch, blocking tsc/test g