We built an MCP server that coordinates multiple Claude Code instances running in Docker containers. It follows a lead/workers pattern, and the MCP glues the agents together.
They get a full ubuntu with sudo (YOLO) and a way to spawn services with PM2 (so they are persisted and restarted on container restarts).
Also, they have persistent workspaces, both for personal and shared across the whole swarm, so the lead can micromanage the workers more easily :D
It's super easy to setup and deploy. You can run it locally, really the only thing required is running `claude setup-token` and good to go.
WIP:
- Only tested with Claude Code, though architecture should support other CLI agents (Gemini CLI, Codex, Opencode).
- Horizontal scaling works but coordination gets chatty with many workers (needs prompting)
Open to feedback on the architecture, or similar projects!
tarasyarema•2h ago
We built an MCP server that coordinates multiple Claude Code instances running in Docker containers. It follows a lead/workers pattern, and the MCP glues the agents together.
They get a full ubuntu with sudo (YOLO) and a way to spawn services with PM2 (so they are persisted and restarted on container restarts).
Also, they have persistent workspaces, both for personal and shared across the whole swarm, so the lead can micromanage the workers more easily :D
It's super easy to setup and deploy. You can run it locally, really the only thing required is running `claude setup-token` and good to go.
WIP:
- Only tested with Claude Code, though architecture should support other CLI agents (Gemini CLI, Codex, Opencode). - Horizontal scaling works but coordination gets chatty with many workers (needs prompting)
Open to feedback on the architecture, or similar projects!