Show HN: AgentBridge – Let one AI think while another AI writes the code AgentBridge, a new open-source tool released on GitHub and crates.io, lets developers split AI coding work by using one AI for reasoning and another for code execution, connected via the Model Context Protocol (MCP). The tool, which currently uses OpenCode as its local executor, aims to reduce subscription quota usage by separating planning from implementation, with a workflow of PLAN β†’ EXECUTE β†’ REVIEW β†’ DONE. Use one AI to think and another AI to code. AgentBridge connects AI reasoning environments to local coding agents through MCP , allowing a web-based AI to understand and plan changes while a local coding agent executes them in your workspace. Let the AI with the best reasoning access think. Let the coding agent you already use execute. πŸ‡¨πŸ‡³ δΈ­ζ–‡ /IndexFlowing/AgentBridge/blob/main/README zh.md Β· πŸ“¦ crates.io https://crates.io/crates/agentbridge Β· πŸ™ GitHub https://github.com/IndexFlowing/AgentBridge AI coding tools increasingly combine two different jobs: Reasoning β€” understanding a codebase, investigating problems, designing solutions, and reviewing changes. Execution β€” editing files, running commands, running tests, and applying changes. These two jobs do not necessarily need to be performed by the same AI. You may have a web AI with generous usage and strong reasoning capabilities, while your coding CLI has a more limited subscription quota. Without a bridge, the coding agent has to spend its quota on everything: Understand β†’ Explore β†’ Reason β†’ Plan β†’ Code β†’ Test β†’ Review AgentBridge separates the workflow: BRAIN Web-based AI Gemini / Claude / ... β”‚ Reason / Plan β”‚ MCP β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ AgentBridge β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ C2C PLAN β”‚ β–Ό EXECUTOR Local coding agent OpenCode β”‚ Edit / Run / Test β”‚ β–Ό Local Workspace The result is simple: Use the AI that is best at thinking, and the coding agent that is best at doing. AgentBridge introduces two explicit roles. The Brain is the AI responsible for reasoning. It can: - inspect the project; - search the codebase; - understand architecture; - investigate bugs; - design implementation strategies; - create implementation plans; - inspect Git diffs; - review the Executor's work. The Brain interacts with the workspace through AgentBridge's read-only MCP interface . It does not directly modify files or execute shell commands. The Executor is the local coding agent responsible for execution. It can: - modify files; - run commands; - run tests; - implement the Brain's plan; - report execution results. AgentBridge currently uses OpenCode as its Executor. The architecture is designed so additional coding agents can be supported in the future. AgentBridge connects the two. It provides: - MCP-based workspace access; - read-only project inspection; - structured task delegation; - task lifecycle management; - execution status; - Git diff inspection; - test status; - result reporting. A typical workflow looks like this: User β”‚ β–Ό Brain β”‚ β”œβ”€β”€ Inspect workspace β”œβ”€β”€ Understand architecture β”œβ”€β”€ Investigate problem └── Create PLAN β”‚ β–Ό AgentBridge β”‚ C2C PLAN β”‚ β–Ό Executor β”‚ β”œβ”€β”€ Edit files β”œβ”€β”€ Run commands └── Run tests β”‚ β–Ό Git Diff / Result β”‚ β–Ό Brain β”‚ Review β”‚ β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β” β”‚ β”‚ DONE PLAN AGAIN This creates a feedback loop: PLAN β†’ EXECUTE β†’ REVIEW β†’ DONE ↑ β”‚ └── PLAN β”€β”€β”€β”€β”˜ The Brain can therefore focus on high-value reasoning while the Executor focuses on actually changing the codebase. AI coding subscriptions are often metered differently from normal web or chat usage. A coding agent may consume its allowance while: - exploring the repository; - reading files; - searching for definitions; - understanding architecture; - reasoning about an implementation; - generating a plan; - implementing changes; - running tests; - retrying failed implementations. That means a significant amount of coding-agent usage can happen before the first useful code change . AgentBridge lets you move much of the exploratory and reasoning-heavy work to another AI interface. For example: Gemini Web β”‚ β”‚ understand / reason / plan β–Ό AgentBridge β”‚ β”‚ compact implementation plan β–Ό OpenCode CLI β”‚ β”‚ implement / test β–Ό Your repository The goal is not to bypass quotas. AgentBridge: - does not provide additional model credits; - does not bypass provider limits; - does not access paid models without authorization; - does not proxy model APIs. It simply allows you to use the AI services and coding agents you already have more efficiently . AgentBridge uses the Model Context Protocol MCP to expose your local project to the Brain. The Brain can use tools such as: | Tool | Purpose | |---|---| workspace info | Inspect workspace information and Git state | list directory | Explore the project structure | read file | Read files | search workspace | Search source code | git status | Inspect repository status | git diff | Review changes | test status | Read the latest test result | execution summary | Read the latest Executor result | The Brain does not receive a generic shell interface. It also cannot directly write files. This separation is intentional. AgentBridge uses a small structured protocol called C2C Context-to-Context to communicate between the Brain and Executor. Instead of passing an entire repository or a huge conversation to the coding agent, the Brain creates a compact implementation plan: C2C STATE: PLAN TASK ID: c2c 12345 ITERATION: 1 GOAL: Add URL inspection support to the GSC client. ACTIONS: 1. Inspect the existing GSC client. 2. Add URL inspection support. 3. Add tests for indexed and non-indexed URLs. TESTS: cargo test SUCCESS CRITERIA: Tests pass and the API correctly reports indexed / non-indexed. The source code remains in the local workspace. Only the task intent and implementation contract cross the Brain β†’ Executor boundary. This keeps the communication focused and avoids unnecessarily duplicating the entire project context. One of the most important design decisions in AgentBridge is the trust boundary. The Brain can inspect: workspace β”œβ”€β”€ source files β”œβ”€β”€ project structure β”œβ”€β”€ Git status β”œβ”€β”€ Git diff └── test results But it cannot: βœ— write files βœ— delete files βœ— execute shell commands βœ— commit βœ— push The Executor is the component that performs those actions. Read-only β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Brain β”‚ β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β”‚ PLAN β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Executor β”‚ β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β”‚ Write / Execute β”‚ β–Ό Local Project The Brain decides what should happen . The Executor performs the implementation inside the local coding environment . The easiest way to install AgentBridge is through Cargo: cargo install agentbridge Verify the installation: agentbridge --version You can also download pre-built binaries from GitHub Releases https://github.com/IndexFlowing/AgentBridge/releases . git clone https://github.com/IndexFlowing/AgentBridge.git cd AgentBridge cargo install --path . Start the MCP server: agentbridge serve By default, AgentBridge listens on: http://127.0.0.1:8787/mcp The default configuration is intentionally localhost-only. You can check your environment with: agentbridge doctor Connect an MCP-capable AI client to AgentBridge. Your Brain can then inspect the local workspace through the MCP tools. The Brain instructions are provided in: skill/SKILL.md The skill teaches the Brain how to: - inspect the workspace; - understand the task; - create a C2C PLAN; - delegate the task; - monitor execution; - inspect the result; - review the changes; - finish or create another iteration. For example: Add Google Search Console URL inspection support to this project. First understand the existing architecture. Then create an implementation plan and delegate it to the Executor. After implementation, review the diff and test results. The Brain can inspect the actual repository instead of relying on files pasted into the conversation. If your Brain runs in a web environment and cannot directly access localhost, you can expose AgentBridge through a tunnel. For example, with Cloudflare Tunnel: agentbridge serve --allow-any-host Then: cloudflared tunnel --url http://127.0.0.1:8787 Your MCP endpoint will be available at: https://