Architecture

Bridge sits between the engineer and four coding agents and talks to each over ACP. MCP and A2A are planned.engineerbridgeAgent registryAgentRouterWorkTransferDirective resolverMCP plannedACP / JSON-RPC 2.0A2A plannedClaude CodeCodexGemini CLIOpenCode

01

Agent registry

Discovers the agents installed on the machine and manages their lifecycle through one adapter per agent.

02

AgentRouter

Matches each task against the capabilities of the discovered agents and routes it to one that can do the work.

03

WorkTransfer

A typed handoff between agents: objective, files, diffs and test results, with secrets scrubbed and paths confined to the project.

04

Directive resolver

When instructions from different sources disagree, decides which one applies by precedence, authority and evidence. Read-only.

EXP-005

10/10

In pre-verification the resolver matched the expected outcome in all 10 scenarios: 5 unambiguous, 3 ambiguous, 2 unsolvable.

Pilot review

Tests

113

Vitest cases across 13 files, all passing as of September 2026.

Adapters

4

Claude Code, Codex, Gemini CLI and OpenCode, each driven through its own CLI.

Protocols

LayerProtocolScopeState
ACPAgent Client ProtocolJSON-RPC 2.0 over stdiobuilt
MCPModel Context ProtocolAgent to external toolsplanned
A2AAgent-to-AgentTask transfer between peer agentsplanned

Status

  1. Phase 0

    Mapped how the coding agents run, store sessions and communicate. Built the type system, event bus, adapters, WorkTransfer and AgentRouter.

  2. Phase 1

    EXP-005: a 10-scenario benchmark of conflicting agent instructions.

  3. Next

    bridge resolve: a CLI that settles branch divergence and agent collisions at the git worktree level.

Idea

Project Truth, not vector memory.

Vector memory keeps dead ends next to valid code, and agents sharing a repository drift apart. Bridge checks every agent against the code, its invariants and its test results instead.

The Bridge thesis

Quickstart

Node 20 or newer, pnpm
git clone https://github.com/aryankori/bridge.gitcd bridgepnpm installpnpm test