peer-bus
A shared message bus and live roster for coding agents (omp, Claude Code, Codex, Antigravity, T3 Code, OpenCode) over SQLite, Markdown, or Postgres.
Overview
A message bus and live session roster with zero runtime npm dependencies. Built first for my own omp sessions over a local unix-socket daemon, then expanded over stdio MCP so other coding-agent clients share the same roster and message log without a human relaying messages between windows.
Two client paths sit over one BusStore interface (src/store/types.ts). For omp, a thin extension connects over ~/.peer-bus/daemon.sock to a per-machine singleton daemon that delivers live pushes into idle turns. For Claude Code, Codex, Antigravity (agy), T3 Code, OpenCode, and any other stdio MCP client, a 351-line JSON-RPC 2.0 server (bin/mcp.ts) exposes peer_sessions, peer_send, peer_ask, peer_receive, and peer_label.
In omp, delivery splits by message kind so peer traffic does not inflate the conversation transcript. Notes are clipped to 180 characters and queued for the next turn; asks and steers travel whole up to 2,000 characters and trigger a turn immediately. MCP tool calls remain pull-based.
Single-machine setups default to local SQLite (~/.peer-bus/peer-bus.sqlite, WAL mode, 0600) or human-readable Markdown files (messages.md, sessions.md, cursors.md) guarded by lockfiles and atomic renames. Across multiple machines, daemons and MCP servers share Postgres via Bun.SQL - Neon’s free tier fits well because its compute suspends after inactivity, keeping every workstation client-only with no listening TCP port.
peer-bus is built for a single trusted user on personal machines, with no per-session authentication or message signing and plaintext local files at 0600. Source and client setup snippets are at github.com/danieljohnmorris/peer-bus.