Claude to Gemini

•
1
•

Enables Claude Code to offload demanding tasks to the Gemini CLI, preserving context window and tokens for critical operations.

This lightweight MCP bridge enhances Claude Code's capabilities by intelligently delegating computationally intensive tasks to the Gemini CLI. It registers a specialized MCP tool, allowing Claude to automatically use Gemini for processing large files, conducting multi-file analyses, performing deep searches, executing web lookups, and providing adversarial reviews. By outsourcing these tasks, the tool significantly saves Claude's context window and token usage, ensuring efficient and cost-effective AI interactions. It supports both Gemini's `pro` and `flash` models, with automatic retries and configurable timeouts, seamlessly integrating into Claude Code workflows via a CLAUDE.md file or a dedicated skill.

主要功能

01Preserves Claude's context window and tokens by offloading complex operations
02Automatic delegation of heavy tasks to Gemini (large files, multi-file analysis, deep searches, web lookups, adversarial review)
03Integrates seamlessly with Claude Code projects via CLAUDE.md or a reusable skill
04Configurable use of Gemini's `pro` and `flash` models with primary/fallback retry logic
05Customizable timeouts for Gemini process execution
061 GitHub stars

使用案例

01Analyzing large log files, code dumps, or generated code with Gemini
02Leveraging Gemini for adversarial review and plan critique within Claude Code workflows
03Delegating web lookups for documentation or external knowledge to Gemini
04Performing multi-file code reviews or deep searches across a codebase