By andytargino
Bridge between Claude Code and Google Gemini CLI — delegate heavy tasks to Gemini to save Claude tokens
Delegates heavy analysis, strategy, and research tasks to Gemini CLI to save Claude tokens
Delegates code generation to Gemini CLI, validates and applies the result
Uses Gemini CLI for thorough code review, bug detection, and quality analysis
Deep code analysis and architecture review via Gemini CLI. Token-efficient alternative to Claude analyzing large codebases. Triggers on: "analyze code", "review architecture", "deep analysis", "analyze this file", "codebase analysis"
Send any question or task to Gemini CLI. Saves Claude tokens by delegating work to Gemini. Triggers on: "ask gemini", "send to gemini", "delegate to gemini", "gemini help", "use gemini for"
Generate implementation plans via Gemini CLI. Saves Claude tokens for actual coding. Triggers on: "plan implementation", "create plan", "design feature", "plan this", "architecture plan", "implementation strategy"
Get refactoring suggestions from Gemini CLI before Claude implements. Triggers on: "refactor this", "suggest refactoring", "improve code quality", "clean up code", "code smells", "reduce complexity"
Code review via Gemini CLI — finds bugs, security issues, performance problems. Triggers on: "review code", "code review", "find bugs", "check for issues", "review this PR", "review diff", "security review"
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Claude Code plugin that integrates Google Gemini CLI for multi-model collaboration and token optimization.
Delegate heavy tasks (analysis, planning, code review, test generation) to Gemini CLI while Claude Code focuses on orchestration and applying changes. Save Claude tokens by letting Gemini handle the bulk of the work.
Claude Code tokens are expensive. Gemini CLI is free (with Google account) and has a massive 1M-2M token context window. This plugin lets you use the best of both:
| Claude Code | Gemini CLI |
|---|---|
| Orchestration & decisions | Heavy analysis & research |
| Applying code changes | Code generation drafts |
| User interaction | Architecture reviews |
| Quality control | Test generation |
| Final validation | Refactoring suggestions |
Result: Same quality, fraction of the Claude token cost.
npm install -g @google/gemini-cli
gemini # Run once to authenticate
claude plugin add AndyTargino/gemini-bridge
That's it. The plugin registers 6 skills, 3 agents, and lifecycle hooks automatically.
After installing the plugin, copy the bridge scripts so they're available globally:
cp ~/.claude/plugins/cache/gemini-bridge/gemini-bridge/1.0.0/lib/gemini-bridge.sh ~/.claude/gemini-bridge.sh
cp ~/.claude/plugins/cache/gemini-bridge/gemini-bridge/1.0.0/lib/gemini-session.sh ~/.claude/gemini-session.sh
chmod +x ~/.claude/gemini-bridge.sh ~/.claude/gemini-session.sh
Use these directly in Claude Code:
| Command | What it does |
|---|---|
/gemini-bridge:gemini-ask | Send any question/task to Gemini |
/gemini-bridge:gemini-analyze | Deep code & architecture analysis |
/gemini-bridge:gemini-review | Code review (bugs, security, performance) |
/gemini-bridge:gemini-plan | Implementation planning |
/gemini-bridge:gemini-test | Generate tests from source code |
/gemini-bridge:gemini-refactor | Refactoring suggestions with risk assessment |
# Ask Gemini anything
/gemini-bridge:gemini-ask explain the observer pattern in TypeScript
# Analyze a file
/gemini-bridge:gemini-analyze src/services/auth.ts
# Review your changes before committing
/gemini-bridge:gemini-review diff
# Plan a feature (Gemini plans, Claude implements)
/gemini-bridge:gemini-plan add push notification system
# Generate tests
/gemini-bridge:gemini-test src/utils/validators.ts
# Get refactoring ideas
/gemini-bridge:gemini-refactor src/controllers/userController.ts
Claude can spawn these agents to run Gemini tasks in background while continuing other work:
| Agent | Purpose |
|---|---|
gemini-analyst | Research, analysis, strategy |
gemini-coder | Code generation + validation + apply |
gemini-reviewer | Thorough code review |
1. /gemini-bridge:gemini-plan [feature] → Gemini creates the plan
2. Claude implements following the plan → Claude applies code
3. /gemini-bridge:gemini-review diff → Gemini reviews the result
4. /gemini-bridge:gemini-test [file] → Gemini generates tests
By default, Gemini runs in standard mode and asks for confirmation before executing actions (reading files, running commands, etc.). Enable YOLO mode to let Gemini auto-approve everything:
Create ~/.claude/gemini-bridge.conf:
# Let Gemini run freely without confirmation prompts
GEMINI_YOLO=true
# Optionally override the model
GEMINI_MODEL=gemini-2.5-pro
A template is included at lib/gemini-bridge.conf.example.
# Enable YOLO for one call
bash ~/.claude/gemini-bridge.sh --yolo "analyze this code for bugs"
# Disable YOLO even if config says true
bash ~/.claude/gemini-bridge.sh --no-yolo "review this carefully"
export GEMINI_YOLO=true
Override the default Gemini model:
# Via config file
GEMINI_MODEL=gemini-2.5-pro
# Via flag
bash ~/.claude/gemini-bridge.sh --model gemini-2.5-flash "quick question"
# Via environment
export GEMINI_MODEL=gemini-2.5-pro
| Setting | Default | Description |
|---|---|---|
GEMINI_YOLO | false | Auto-approve all Gemini actions |
GEMINI_MODEL | (CLI default) | Override Gemini model |
MAX_RETRIES | 2 | Retry count on transient failures |
RETRY_DELAY | 3 | Seconds between retries |
npx claudepluginhub andytargino/gemini-bridge --plugin gemini-bridgeUse Gemini CLI from Claude Code to review code or delegate tasks.
Integrate Gemini CLI for long-context code exploration from Claude Code and Codex
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Curate auto-memory, promote learnings to CLAUDE.md and rules, extract proven patterns into reusable skills.