All workAndrew Cates.

Project 72 of 84

Session Bus

A tailnet-only MCP message bus that lets Claude Code sessions on different machines send each other durable, addressed messages (register a name, send/broadcast, read inbox, ack), with an optional push shim that wakes an idle session.

Status
Shipped
Area
Infra & Platform Ops
Last activity
2026
Stack
  • Node.js
  • TypeScript
  • node:sqlite
  • zod
  • Vitest
  • Bash ops scripts
  • Tailscale
  • launchd / systemd unit templates

Highlights

  1. Designed and built session-bus, a tailnet-only MCP message bus that lets Claude Code sessions on different machines exchange durable, addressed messages (7 Streamable-HTTP tools over a node:sqlite WAL store, at-least-once delivery), taking it from a 5-revision Planner/Architect/Critic consensus plan to a merged v0 in one day.
  2. Secured the bus with principal-owned, scoped bearer tokens (@cogs/auth), a fail-closed bind guard that refuses anything but loopback or the host's Tailscale address, and a headersHelper flow that reads tokens from 1Password at run time so no secret is written to client config, enforced by a leak check in the one-command client setup script.
  3. Built an optional stdio push shim that polls the bus and injects allowlisted messages into an idle interactive Claude Code session as a channel event, and proved it live along with a two-machine round trip through a 13-item human-gated verification checklist (11 items ticked with recorded evidence, the rest open or optional).
  4. Diagnosed why Claude Code's development-channels flag was silently ignored (it is ignored while both DISABLE_TELEMETRY and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC are set in any settings layer; the underlying cause of the gating is inferred, not confirmed) and documented the workaround in the session lessons.
  5. Packaged a session-bus agent skill distributed as a Claude Code plugin (sb prefix), added Changesets versioning, and derived CODING_STANDARDS.md and GLOSSARY.md from the codebase, with gate scripts that pin test-tag counts and ban skipped tests.
  6. Shipped a Docusaurus documentation site (session-bus.catesworks.dev) and a static Next.js 16 marketing site whose per-tool pages are checked by a drift test against the MCP server and CLI source, both deployed only through manual workflows on self-hosted runners to avoid automatic build and runner-minute costs.