Architecture
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 reviewTests
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
| Layer | Protocol | Scope | State |
|---|---|---|---|
| ACP | Agent Client Protocol | JSON-RPC 2.0 over stdio | built |
| MCP | Model Context Protocol | Agent to external tools | planned |
| A2A | Agent-to-Agent | Task transfer between peer agents | planned |
Status
- Phase 0
Mapped how the coding agents run, store sessions and communicate. Built the type system, event bus, adapters, WorkTransfer and AgentRouter.
- Phase 1
EXP-005: a 10-scenario benchmark of conflicting agent instructions.
- 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 thesisQuickstart
git clone https://github.com/aryankori/bridge.gitcd bridgepnpm installpnpm test