How rennerdo30/agent-bridge works
agent-bridge coordinates supported coding-agent CLIs through a local broker: agents exchange messages, delegate jobs, ask the owner questions, and retain searchable history. The main workflow runs from an agent’s MCP tools over a local pipe to the broker, which dispatches work and persists state; the dashboard presents that state, while paired PCs add TLS networking and file/job transfer. The repository also includes a mobile dashboard and storage-preservation workflows. Several subsystems are represented from README or index evidence; their internal links are omitted where source excerpts do not establish them.
Main entry points: node.ts Broker daemon · link.ts TLS pairing and links · server.ts MCP tools · main.ts CLI commands
Components 21
Agent interfaces
- MCP tools
src/mcp/server.ts - CLI plugins and hooks
plugins
Broker runtime
- Broker daemon
src/core/node.ts - Local pipe protocol
src/core/protocol.ts - Messaging and decisions
src/core/messages.ts - Delegated jobs
src/mcp/jobs.ts - Owner questions
src/core/owner-questions.ts - CLI commands
src/cli/main.ts
Paired networking
- TLS pairing and links
src/network/link.ts - Remote jobs
src/network/remote-jobs.ts - File transfers
src/network/transfers.ts
Dashboards
- Local dashboard
src/cli/dashboard.ts - Mobile gateway
src/mobile/gateway.ts - Mobile app
apps/mobile/App.tsx
State and history
- Searchable history
src/core/history-store.ts - Storage migration
src/core/history-migration.ts - Storage preservation
src/core/storage-preservation.ts - Storage audit
src/core/storage-audit.ts
Other components
- Developer
- Coding agent CLIs
- Paired PC
Connections 19
- Coding agent CLIs → MCP tools: uses tools
README.md - MCP tools → Local pipe protocol: communicates over
README.md - Local pipe protocol → Broker daemon: routes requests
README.md - CLI plugins and hooks → MCP tools: exposes tools
README.md - Broker daemon → Messaging and decisions: handles messages
- Broker daemon → Delegated jobs: dispatches jobs
src/core/node.ts - Broker daemon → Owner questions: routes questions
src/core/node.ts - Developer → Local dashboard: views status
README.md - Broker daemon → Local dashboard: serves dashboard
README.md - Developer → Mobile app: uses app
- Mobile app → Mobile gateway: requests data
- Paired PC → TLS pairing and links: pairs over TLS
README.md - TLS pairing and links → File transfers: dispatches streams
src/network/link.ts - TLS pairing and links → Remote jobs: supports remote jobs
README.md - Broker daemon → Searchable history: persists state
README.md - Searchable history → Storage migration: migrates data
src/core/history-store.ts - Storage migration → Storage preservation: preserves originals
src/core/finalize-proof.ts - CLI commands → Storage audit: runs audit
- CLI commands → Broker daemon: starts or manages
src/cli/main.ts