A Claude Code plugin that integrates Google Gemini CLI as a subagent for code review, task delegation, and investigation.
Inspired by and modeled after openai/codex-plugin-cc. Credit to OpenAI for pioneering the Claude Code plugin pattern.
/gemini:review— Gemini code review against local git changes (read-only enforced)/gemini:adversarial-review— Pressure-test code by challenging design assumptions and finding failure modes/gemini:rescue— Delegate investigation, bug fix, or task to Gemini (foreground or background)/gemini:status— Show active and recent Gemini jobs/gemini:result— Retrieve completed job output/gemini:cancel— Cancel a running background job
- Claude Code CLI, desktop app, or web app
- Node.js 18.18 or later
- Google account — Gemini CLI uses Google OAuth (free tier: 60 req/min, 1000 req/day) or a Gemini API key
Add the marketplace in Claude Code:
/plugin marketplace add jiachengxu/gemini-plugin-ccInstall the plugin:
/plugin install gemini@gemini-plugin-ccReload plugins:
/reload-pluginsThen run:
/gemini:setup/gemini:setup will check if Gemini CLI is installed, probe authentication, and validate capabilities. If Gemini CLI is missing, it will offer to install it for you.
If you prefer to install Gemini CLI yourself:
npm install -g @google/gemini-cliIf Gemini CLI is installed but not authenticated yet, run it interactively once to complete OAuth:
!geminiAfter install, you should see:
- The slash commands listed above (
/gemini:review,/gemini:rescue, etc.) - The
gemini:gemini-rescuesubagent in/agents
Runs a Gemini review on your current git changes. Automatically detects staged, unstaged, and untracked files. Review mode is read-only enforced — Gemini cannot modify your workspace.
/gemini:review
/gemini:review --model flashSame as /gemini:review but with adversarial framing — challenges hidden assumptions, probes failure modes, and stress-tests edge cases.
/gemini:adversarial-reviewDelegate a task to Gemini. Runs in foreground by default, or in the background with --background.
/gemini:rescue investigate the auth bug in src/middleware.ts
/gemini:rescue --background refactor the error handling in lib/
/gemini:rescue --resume # continue previous sessionManage background jobs:
/gemini:status # list all jobs
/gemini:status <job-id> # detailed view
/gemini:result # latest completed result
/gemini:result <job-id> # specific job result
/gemini:cancel # cancel latest running job- openai/codex-plugin-cc — The reference implementation this project is modeled after. The plugin architecture, command structure, job tracking, and session lifecycle patterns are directly inspired by the Codex plugin.
- Google Gemini CLI — The underlying AI tool this plugin integrates.
Apache-2.0