Skip to main content

Local SQLite-backed MCP bus for peer coding agents

Project description

Hand-drawn storybook-style hero illustration of small robot agents boarding a shuttle bus while carrying message cards.

Hero image rendered locally with z-image-turbo from a handcrafted prompt.

Agent Bus MCP

Agent Bus is a local coordination layer for multiple coding agents on the same machine.

It gives MCP-capable tools such as Codex, Claude Code, Gemini CLI, OpenCode, and Cursor a shared, durable message bus backed by SQLite. Instead of copying summaries between tools or losing context when a process restarts, agents can join the same topic, exchange messages, replay history, and pick work back up from server-side cursors.

Why use Agent Bus?

Use Agent Bus when you want agent collaboration to feel more like a shared inbox than a fragile copy-paste workflow.

  • Keep coordination local. One stdio MCP server and one SQLite file are enough to let multiple agents collaborate on the same machine.
  • Preserve state between turns. Topics, messages, cursors, and peer identities live in the DB, not in one client process's memory.
  • Support real workflows. Reviewer/implementer loops, handoffs, sidecar helpers, and replayable audit trails all fit naturally into topic-based messaging.
  • Add observability without extra infrastructure. Search, export, and the optional web UI make it easier to inspect conversations after the fact.

When Agent Bus is a good fit

Agent Bus is a strong fit when:

  • two or more local coding agents need to collaborate on the same task
  • an agent should be able to disconnect and later reclaim its identity
  • you want durable replay instead of "read everything again" polling
  • you want a searchable local log of agent-to-agent coordination

It is a weaker fit when:

  • you only need a single agent with no handoffs
  • you need networked multi-host messaging
  • you need auth, tenancy, or cloud-hosted coordination out of the box

Quickstart

The fastest path is to install Agent Bus as an MCP server in your client and start using it from natural-language prompts.

npx install-mcp "uvx --from agent-bus-mcp==<version> agent-bus" --name agent-bus --client claude-code

Replace <version> with the release you want to run. For direct setup:

# Codex
codex mcp add agent-bus -- uvx --from agent-bus-mcp==<version> agent-bus

# Claude Code
claude mcp add agent-bus -- uvx --from agent-bus-mcp==<version> agent-bus

Then ask an agent to:

  1. create or reuse a topic
  2. join the topic with a stable agent_name
  3. send or read messages through sync()

For a fuller walkthrough, start with First topic between two peers.

Web UI

Agent Bus also ships with a local Web UI for browsing topics, reading threads, exporting logs, and searching the bus without leaving the browser.

From a source checkout:

uv sync --extra web
pnpm --dir frontend install
pnpm --dir frontend build
uv run agent-bus serve

Or launch the published package directly with the web extra:

uvx --from "agent-bus-mcp[web]==<version>" agent-bus serve

Agent Bus Web UI overview showing the topic sidebar and activity-sorted workbench.

The overview keeps recent topics in the sidebar and leaves the main workbench focused on navigation and search.

For the full walkthrough, including thread navigation, export, and troubleshooting, see How to use the Agent Bus Web UI.

Documentation

This repo now has a lightweight Diataxis-style docs layout under docs/:

Need Start here
Learn by doing Tutorials
Complete a setup task How-to guides
Look up tools, commands, and config Reference
Understand the design and tradeoffs Explanation

Recommended starting points:

Upgrading from an older release? See CHANGELOG.md.

Optional workflow skill

This repo also includes a reusable workflow skill asset at ./.agents/skills/agent-bus-workflows/.

It is useful when you want ready-made reviewer/implementer loops, handoffs, duplicate-name recovery, and reclaim-token reconnect behavior in a Codex-style skill package. See Install and configure Agent Bus for the install path.

Architecture at a glance

diagram

The Python package provides the MCP server, CLI, Web UI, and embedding worker. The Rust core owns the SQLite schema, reads/writes, search, and embedding-job coordination, which keeps the data model single-sourced.

For the rationale behind this shape, see Why use Agent Bus?.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_bus_mcp-0.4.3.tar.gz (4.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

agent_bus_mcp-0.4.3-cp312-abi3-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.12+Windows x86-64

agent_bus_mcp-0.4.3-cp312-abi3-manylinux_2_28_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

agent_bus_mcp-0.4.3-cp312-abi3-manylinux_2_28_aarch64.whl (14.0 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ ARM64

agent_bus_mcp-0.4.3-cp312-abi3-macosx_11_0_arm64.whl (11.6 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file agent_bus_mcp-0.4.3.tar.gz.

File metadata

  • Download URL: agent_bus_mcp-0.4.3.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agent_bus_mcp-0.4.3.tar.gz
Algorithm Hash digest
SHA256 6e445e93f2011a4a567587af77d7e8e9bbdf44d4ebef0b1da39e1f554a6dce43
MD5 0f10fd60d92ee71a0a2b3ec8f2c7b709
BLAKE2b-256 7895d4049c65b6a0a3ba58bb94517fe43976de3ed6c89740e8801974de9a891f

See more details on using hashes here.

File details

Details for the file agent_bus_mcp-0.4.3-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: agent_bus_mcp-0.4.3-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agent_bus_mcp-0.4.3-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a637eb0e5979b4205dd9a9ec2b6ffc232e95ac69ceb77fd855ca5cbc188a740b
MD5 9fdd141a35975bb33baf5de0d8af52b3
BLAKE2b-256 ff3d2967a9beec2940564aced9f18e9eb0cd430ae079988b72042f8365fc25bf

See more details on using hashes here.

File details

Details for the file agent_bus_mcp-0.4.3-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: agent_bus_mcp-0.4.3-cp312-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 13.0 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agent_bus_mcp-0.4.3-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 261d032ea632a925619044ae128d4713fed04e2e60c8c419b870a710fd6af43b
MD5 45e23059082a763bb733f5237b8b0303
BLAKE2b-256 322ff44090f9151f1d8920897b42d932dc329fa7de48de7fd8a2f890661218f6

See more details on using hashes here.

File details

Details for the file agent_bus_mcp-0.4.3-cp312-abi3-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: agent_bus_mcp-0.4.3-cp312-abi3-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 14.0 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agent_bus_mcp-0.4.3-cp312-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 037957542d7f4643c57aec270051ffec7138755d1a633bbfe1ae9afca15f2676
MD5 da64c97946657612e415c857d9b6a5b5
BLAKE2b-256 53b3b20b396e96ff3d8807fffe1c56ac75eab71ceb2d44490aafe280c5e68722

See more details on using hashes here.

File details

Details for the file agent_bus_mcp-0.4.3-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: agent_bus_mcp-0.4.3-cp312-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 11.6 MB
  • Tags: CPython 3.12+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agent_bus_mcp-0.4.3-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b98d59b63fe925ce43536f62824ee3980c482298fa6d714d8f5d2b0a4f8c1945
MD5 90dd85b533d3f5ff8e751edae4230009
BLAKE2b-256 1e930e8b149f34c6c00d15870f637aa3c8a1ea796fc1e0724e5973237f3d192e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page