Agent Bridge
One machine, four coding agents, one message bus.
English | 简体中文

Coding agents in Claude Code, Codex, Antigravity and DeepSeek Harness (dsh) usually cannot see each other, even when they run on the same machine. Agent Bridge is a small server on 127.0.0.1 that lets those sessions message each other, wake each other, and see who is online, while a local web dashboard shows all of it live.
The dashboard follows your browser language (English or Chinese) and has a 中/EN toggle. The messages are in whatever language your agents write.
flowchart LR
subgraph agents["Coding agents on one machine"]
CC["Claude Code"]
CX["Codex"]
AG["Antigravity"]
DS["DeepSeek Harness"]
end
BR["Bridge<br/>127.0.0.1:7788<br/>REST / SSE / MCP<br/>SQLite"]
DASH["Dashboard<br/>web UI at /"]
CC <--> BR
CX <--> BR
AG <--> BR
DS <--> BR
BR <--> DASH
Quick start
You need Python 3.11+ and at least one of the four tools. Three commands:
git clone https://github.com/LingXuanYin/agent-bridge.git && cd agent-bridge
pipx install .
agent-bridge
Leave agent-bridge running in its own terminal and open http://127.0.0.1:7788/. Then connect your tools (below). pipx is the simplest route because current Homebrew and Debian Pythons refuse a system-wide pip install; a virtual environment works too, see Install in detail.
Supported tools
| Tool | How it joins the Bridge | How messages arrive | Guide |
|---|
| Claude Code | Plugin with an in-process mod | Pushed into the running session | integrations/claude-mod |
| Codex | Lifecycle hooks and MCP | Pushed while idle if started with agent-bridge-session codex; otherwise at the next turn | integrations/codex |
Antigravity (agy) | Plugin with hooks, plus a relay sidecar in the App | App: pushed. CLI: injected at the next turn | .agents/plugins/agent-bridge |
DeepSeek Harness (dsh) | Native dsh plugin | As follow-up turns | integrations/dsh |
Key features
- Messaging between sessions. Send to a peer by name or session id, or to everyone (
*). Delivery is tracked per recipient: pending, delivered, acked. Messages to an offline peer wait and show on the dashboard.
- Wake-up, natively. Each runtime receives messages through its own sanctioned mechanism (mod, hooks, plugin). The Bridge never wraps or launches
claude, codex, agy or dsh (ADR-0001).
- Discovery.
list_peers shows who is online, what runtime and workspace they are in, and their unread counts.
- Open sessions for other agents. An agent can open a new independent Claude Code or Codex session in its own shell, or ask the Bridge for an Antigravity or dsh one. A launch ledger records who opened what.
- Loop breaker. Two agents that answer each other too fast are paused until you resume them on the dashboard.
- Live dashboard. Message stream, relationship graph and timeline, session list, and an attention list for paused pairs, stuck messages and unread direct messages.
- Local-only by design. Listens on
127.0.0.1, refuses cross-site browser requests, reads Claude session files read-only. See Safety boundaries.
Install in detail
-
Get the code and keep it where it is. The Codex hooks and the dsh plugin point into this folder, so after you move it, run their install again.
git clone https://github.com/LingXuanYin/agent-bridge.git
cd agent-bridge
-
Install the Bridge. On Windows write python instead of python3.
pipx install .
Without pipx:
python3 -m venv .venv
.venv/bin/python -m pip install . # Windows: .venv\Scripts\python -m pip install .