Gemini Bridge Plugin¶
Model-agnostic bridge to Google Gemini 2.5 Pro for Claude Code. Enables long-context codebase analysis (1M tokens), multimodal vision, and independent model validation within your existing Claude Code workflow.
Version 1.0.1¶
Gemini runs as an MCP tool — Claude calls it exactly like any other tool. No second terminal, no context switch, no workflow disruption.
Commands¶
/gemini-bridge:analyze¶
Delegate text or code analysis to Gemini's long-context model.
Features:
- 📝 Text prompts and second opinions
- 📦 Large codebase analysis (up to 1M tokens)
- 🔍 Security audits across entire repositories
- 🧠 Independent model validation
Usage:
| Bash | |
|---|---|
/gemini-bridge:compare¶
Compare two technical approaches with Gemini as a neutral reviewer.
Features:
- ⚖️ Neutral comparison of two options
- 📊 Structured evaluation with criteria
- 🎯 Independent assessment (no anchoring to Claude's preference)
Usage:
| Bash | |
|---|---|
/gemini-bridge:vision¶
Convert screenshots, diagrams, or PDFs into code or documentation.
Features:
- 🖼️ Screenshot to component conversion
- 📐 Diagram analysis and documentation
- 📄 PDF content extraction
- 🎨 UI mockup to React/Tailwind code
Usage:
| Bash | |
|---|---|
Agents¶
All agents activate automatically based on context. See Skills & Agents Activation Guide for details.
Gemini Analyst¶
Sub-agent for delegating analysis tasks to Gemini.
Activation: - Automatic: When tasks require long-context analysis or multimodal processing - Manual: "Use gemini-analyst to review this codebase"
Expertise: - 📦 Large codebase analysis - 🖼️ Multimodal vision tasks - 🔍 Security and architecture reviews - 📊 Structured report generation
Model Router¶
Orchestrator agent with capability-based routing logic.
Activation: - Automatic: When tasks benefit from multi-model collaboration - Manual: "Route this task to the best model"
Routing Logic:
Skills¶
Gemini Analyst Skill¶
Background knowledge for Claude on when and how to delegate to Gemini effectively.
MCP Tools¶
The following tools are available to all Claude agents when the plugin is installed:
| Tool | Purpose |
|---|---|
gemini_status | Check bridge connectivity and model info |
gemini_analyze_text | Text prompts and second opinions |
gemini_analyze_codebase | Large codebase analysis (up to 1M tokens) |
gemini_analyze_image | Screenshot, diagram, and PDF analysis |
gemini_compare_approaches | Neutral comparison of two technical options |
Installation¶
1. Enable the Plugin¶
2. Install Python Dependencies¶
3. Set API Key¶
| Bash | |
|---|---|
4. Verify Connection¶
| Bash | |
|---|---|
Configuration¶
Custom Model Version¶
| Bash | |
|---|---|
Temperature Tuning¶
| Python | |
|---|---|
Security and Privacy¶
- API key: Stored as environment variable, never committed to git
- Data: Code content is sent to Google's Gemini API — review your data policies
.gitignore: Ensure.envfiles with your API key are excluded
Use Cases¶
Large Codebase Security Review¶
| Bash | |
|---|---|
Claude collects all source files, delegates to Gemini's 1M-token context, and returns a structured security report.
Architecture Decision with Independent Review¶
| Bash | |
|---|---|
Claude prepares both approaches; Gemini evaluates them neutrally.
UI Screenshot to Component¶
| Bash | |
|---|---|
Teaching: Model-Agnostic AI Engineering¶
This plugin demonstrates the model-agnostic pattern in AI-Assisted Software Engineering courses:
- Separation of Concerns — Routing logic in config, not code
- Capability-Based Routing — Each model handles what it does best
- Multi-Model Validation — Claude proposes, Gemini validates, Claude synthesizes
Changelog¶
Version 1.0.0 (2026-03-13)¶
- Initial release with 3 commands, 2 agents, 1 skill, and 5 MCP tools
- Google Gemini 2.5 Pro integration via
google-genaiSDK - Multimodal vision support (images, PDFs)
- Configurable model via
GEMINI_MODELenvironment variable - Comprehensive test suite (29 tests)
License¶
MIT License - see LICENSE file for details.
Made with care by Talent Factory GmbH