Colony
Game-like command center for teams of Claude Code agents, each in its own locked-down Docker container and git branch, with merges gated on human approval

Colony is a local command center for running teams of Claude Code agents across my projects. Each project is a "base" with an Orchestrator agent that turns a goal into quests and staffs workers for them: frontend, backend, QA, DevOps or research. Every agent runs in its own Docker container on its own git branch, and a game-style "Ops Deck" lets me watch them work live, message or take control of any agent, and approve merges from an Inbox.
Running one coding agent in a terminal works, but running several at once on real projects falls apart quickly. They step on each other's files, nobody can see what each one is doing, they can quietly burn through a subscription's usage limits, and giving an agent full permissions on my own machine is risky. I wanted agents with full freedom inside a sandbox, a clear chain of command between them, and a single screen where I stay in charge of what actually lands on main.
Colony is a TypeScript monorepo with three parts. A Fastify control plane stores projects, agents, quests and events in SQLite, drives Docker through dockerode and fans every event out over WebSockets. Inside each container a small agent runner drives the Claude Code CLI in headless stream-json mode on my Claude subscription, so it can inject messages mid-run, pause, resume, switch models and recover from crashes. The Ops Deck UI is React with Tailwind and a PixiJS map that draws live links and handoff pulses between agents. Containers run as non-root with all capabilities dropped and no host mounts or Docker socket; each project gets its own network, a git server container whose pre-receive hook rejects pushes to main, and an optional dev Supabase stack. Agents coordinate through an MCP server scoped by role: the Orchestrator can create quests, spawn workers and request a merge, but no agent has a merge tool, so nothing reaches main until I approve it in Merge Review. Guards watch plan usage and per-agent budgets, pause workers before limits run out and flag agents stuck in loops.


Still a work-in-progress but currently using it to build out other projects ;)

