Use Gemini CLI from Claude Code to review code or delegate tasks.
Inspired by codex-plugin-cc — this plugin brings the same cross-model workflow to Gemini.
- Code review — Get Gemini's perspective on your code with
/gemini:review - Adversarial review — Stress-test specific assumptions with
/gemini:adversarial-review - Task delegation — Hand off work to Gemini in the background with
/gemini:delegate - Job management — Track and retrieve results with
/gemini:status,/gemini:result,/gemini:cancel
- Claude Code installed
- Gemini CLI installed and authenticated:
npm install -g @google/gemini-cli gemini auth login
- Node.js 18.18 or later
/plugin marketplace add Szetty/gemini-cli-plugin-cc
/plugin install gemini@gemini-cli-plugin-cc
git clone https://github.com/Szetty/gemini-cli-plugin-cc.git
cd gemini-cli-plugin-cc
npm install
claude --plugin-dir ./gemini:setup
/gemini:review
/gemini:review security
/gemini:review performance src/server.js
/gemini:adversarial-review find race conditions
/gemini:adversarial-review break the auth flow src/auth/
/gemini:delegate investigate why the tests are failing
/gemini:status
/gemini:result 1
/gemini:cancel 1
The plugin exposes 7 tools via MCP:
| Tool | Description |
|---|---|
gemini_setup |
Verify Gemini CLI installation and authentication |
gemini_review |
Run a code review (model: pro/flash/flash-lite) |
gemini_adversarial_review |
Steerable adversarial review |
gemini_delegate |
Delegate a task to run in the background |
gemini_status |
Check background job status |
gemini_result |
Retrieve completed job output |
gemini_cancel |
Cancel a running background job |
The plugin wraps the gemini CLI in an MCP server. Synchronous tools (review, adversarial review) run gemini -p <prompt> --output-format json and return the result. The delegation tools spawn gemini as a detached background process and track jobs via a local registry in the system temp directory.
The plugin respects standard Gemini CLI configuration:
- Model selection:
pro,flash,flash-lite— omit to use Gemini's default - Approval mode:
default,auto_edit, oryolo(for delegation)
Vertex AI users: the model aliases
pro,flash, andflash-liteare resolved by the Gemini CLI and may not be available in all Vertex AI projects. If you see aModelNotFoundError, pass an explicit model ID instead, e.g./gemini:reviewwith modelgemini-2.5-flash.
Apache-2.0