Swarm Board
Orchestrates OpenAI Codex workers via the local codex app-server, spawning persistent agent threads, hot-switching models, routing @mention wakeups, and coordinating peer-to-peer swarm collaboration.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
1. Why Codex Swarm?
Native Codex subagents use a strict parent-child hierarchy where siblings cannot talk to each other, active waits consume turn runtime, and every subagent shares the parent working directory by default. Codex Swarm bridges those gaps using codex app-server + a local Streamable HTTP MCP bus so you can orchestrate a full swarm right inside Codex Desktop App / CLI via $swarm.
Capability | Native Codex Subagents | Codex Swarm ( |
Peer-to-Peer | Parent ↔ child relay only | Direct P2P ( |
Idle Worker Cost | Active wait eats turn timeout | Zero-token parked threads — turns end cleanly and wake on |
Workspace Isolation | Shared parent CWD | Automatic |
Single-Window Experience | Terminal / thread tree only | Auto-opens in Codex Side Browser ( |
Live Swarm Visualization | No shared board or graph | 4-Tab Web UI with Hive & Mention Graph timeline playback ( |
Model Hot-Switching | Requires fresh spawn | Hot-switch |
Stall Detection & Approvals | Manual inspection | Built-in 180s stall watchdog + one-click Allow / Session / Decline UI cards |
Related MCP server: agent-bridge
2. Interface Showcase
Light-first, zero-CDN offline Web Dashboard (http://127.0.0.1:8765/) with one-click Dark mode toggle and responsive narrow-pane layout (≤640px) built specifically for Codex's side browser.
3. Architecture
Stay in your Codex chat: Your active Codex Desktop App / CLI thread acts as
Coordinatorvia the$swarmskill and connects tohttp://127.0.0.1:8765/mcp.Event-driven worker threads: The local Python Daemon manages a persistent
codex app-server --stdioprocess. Every worker runs in its ownthreadIdand ends its turn immediately after posting to the board — consuming zero tokens while parked.Instant wakeup & steer: When any worker or coordinator posts
@target, the daemon injects unread#seqcontext viaturn/start(ifwaiting) orturn/steer(ifworking).Single-window side browser: On Codex Desktop App,
$swarmautomatically reveals the built-in In-App Browser (iab) and pins the dashboard tab (markDeliverable) right beside your conversation.
4. Quick Start
Prerequisites
Windows 10 / 11 + PowerShell
Python 3.11+ (
pip install -r requirements.txt— onlyaiohttpis required)Git (for
workspace="share"worktree isolation)OpenAI Codex Desktop App or Codex CLI signed in (auto-discovers
CODEX_CLI_PATH,PATH, or bundledWindowsApps\OpenAI.Codex_*\...\codex.exe)
Install in 4 Commands
git clone https://github.com/moonrzz/codex-swarm.git
cd codex-swarm
pip install -r requirements.txt
.\install.ps1install.ps1 automatically:
Installs the
$swarmskill to%USERPROFILE%\.agents\skills\swarm\SKILL.md;Backs up
%USERPROFILE%\.codex\config.tomland registers[mcp_servers.swarm_board](default_tools_approval_mode = "approve");Creates a silent one-click 「Codex 蜂群看板」 shortcut on your Desktop (pass
-DesktopShortcut:$falseto skip).
Launch & Use
# Start background daemon manually (or let $swarm / Desktop shortcut start it automatically)
.\start-swarm-daemon.ps1 -Background
# Stop background daemon
.\stop-swarm-daemon.ps1Open a new conversation in Codex Desktop App / CLI and type:
$swarm Refactor the auth module into token and session layers, add unit tests, and run a peer review5. Try Peer-to-Peer Collaboration
Want to verify direct sibling-to-sibling communication without modifying any repository files? Paste this read-only prompt into Codex:
$swarm Verify direct peer-to-peer (P2P) collaboration between sibling workers without editing any files:
1. Spawn two read-only workers (`workspace="inherit"`, `sandbox="read-only"`):
- `proposer`: Draft a 3-point minimal code review checklist, then post directly to `@reviewer` for critique (do NOT `@coordinator` and do NOT write `[done]`), and end your turn immediately.
- `reviewer`: Wait for `@reviewer`, point out at least 1 vague rule, and post directly to `@proposer` requesting measurable criteria (do NOT `@coordinator` or `[done]`), then end your turn.
2. Have `proposer` revise the checklist and post v2 back to `@reviewer` (still without `@coordinator`).
3. Have `reviewer` verify v2 and post `@coordinator [done]` summarizing both rounds.
4. As Coordinator, do not relay between them; only report to me after receiving `@coordinator [done]`, listing the P2P `#seq` numbers.Then open the 关系图 → 提及图 tab to see direct bidirectional arrows (proposer ↔ reviewer) bypassing Coordinator!
6. MCP Tool Reference
Tool | Role | Description |
| Coordinator | Create a new active swarm bound to |
| Coordinator | Rename the active swarm |
| Coordinator | Publish |
| Coordinator | List available Codex models from |
| Coordinator | Spawn a persistent worker ( |
| All | Inspect roster states, head |
| Coordinator | Hot-switch a |
| Coordinator | Terminate a worker and optionally clean up its worktree/branch |
| All |
|
| All | Post to the board and auto-wake |
| All | Read incremental messages after |
| Coordinator | Block until |
7. Worktree Merge & Project Structure
When parallel authors run with workspace="share", each commits on swarm/<swarm_id>/<worker>:
Have a read-only
verifieraudit diffs and test results;Merge verified branches:
git merge --no-ff swarm/<swarm_id>/<worker>;Clean up:
swarm_kill(name="<worker>", remove_worktree=True, delete_branch=True).
python -m unittest discover -s tests -vcodex-swarm/
├─ codex_swarm/
│ ├─ app_server.py # codex app-server --stdio JSON-RPC 2.0 client
│ ├─ orchestrator.py # @mention wakeup router, model hot-swap, approvals, stall watchdog
│ ├─ mcp_http.py # Streamable HTTP MCP server (/mcp)
│ ├─ web_ui.py # Light-first 4-tab Web UI + Hive/Mention Graph & playback
│ ├─ store.py # SQLite WAL + append-only JSONL persistence
│ ├─ worktree.py # Git worktree isolation & cleanup
│ └─ config.py # Settings & automatic codex.exe discovery
├─ docs/assets/ # Vector banner, architecture diagram & UI showcase screenshots
├─ skills/swarm/SKILL.md
├─ assets/swarm-icon.ico
├─ tests/test_swarm_daemon.py
├─ install.ps1
├─ start-swarm-daemon.ps1
├─ stop-swarm-daemon.ps1
├─ launch-dashboard.ps1
└─ launch-dashboard-silent.vbsLicense
Released under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
Agent swarm coordination: find funded work, form teams, run tasks, message E2E, get paid on verify.
Multiplayer for the coding agents your team already uses: shared tasks, decisions, skills and tools.
The team layer for AI coding agents: shared contracts, collision alerts, E2EE sessions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceOrchestrates multiple Claude Code instances into a collaborative swarm for real-time task delegation, message exchange, and code snippet sharing. It features peer discovery, status tracking, and a centralized web dashboard to monitor coordinated activity across sessions.MIT
- AlicenseNot gradedqualityAmaintenanceEnables coordinating Claude Code and Codex across separate Git worktrees with shared issue ownership, file reservations, messages, and explicit handoffs.84 PyPI3MIT
- AlicenseNot gradedqualityCmaintenanceEnables local coding agents to track sessions, exchange isolated collaboration messages, and optionally delegate coding work to Codex with Git worktree isolation and task management.MIT
- AlicenseNot gradedqualityBmaintenanceEnables local multi-agent Codex collaboration through a SQLite task graph, atomic task claiming and leases, isolated Git worktrees, append-only events and messages, and a local web Kanban board.MIT