Turn Claude Code sub-agents into a pixel-art town with an orchestrator

Sayantan Sanyal had Claude Code build Agent City, a local web app that shows his Claude Code sub-agents as townsfolk, runs each job as a real CLI session and adds a Mayor agent to delegate.

Done withClaude Code· Oct 25, 2026

What they did

Sanyal keeps a growing set of specialised Claude Code sub-agents, among them a market sizing agent and trading agents that study stocks, spread across project folders. He lost track of them in the desktop app, so he built Agent City, an isometric pixel town that runs on his Claude Pro plan. The app scans his project folders for sub-agent markdown files, draws each folder as a fenced lot and each agent as a character. Clicking one and typing a task starts a real Claude Code session through the CLI with streaming JSON output, and a meter shows tokens in and out. A Mayor agent, a Claude Code session with a small MCP server that can list agents and ask any of them a question, coordinates multi-agent jobs. Claude Code wrote most of the Node, Express and React code from his written design and a step-by-step plan, with tests for each step.

How it went

He says it now replaces the Claude desktop app for him at work and at home, and released it as open source under MIT. New agents can be hired from the town, with Claude drafting the instructions from a short description. He also added a chat that can switch to local Llama and Qwen models when session limits run out. He gives no numbers on build time, cost or how much the orchestrator helps.

Worth knowing

It is Mac only and needs Node 20 and a signed-in Claude Code install. Every agent job is a full Claude Code session, so jobs draw on the same plan limits as using the CLI directly; the token meter exists for that reason. The server binds only to localhost, but prompts still go to Anthropic.

Try it

With Claude Code· 3 parts to fill in

Build me a local web app that gives my Claude Code sub-agents a visual home. Scan [my project folders] for sub-agent definition files and show each folder as [a lot on a map or a card] with its agents inside. When I click an agent and type a task, run a real Claude Code session in that folder through the CLI with streaming JSON output, render the reply, and show input and output tokens. Add one orchestrator agent with a small MCP server exposing two tools: list agents, and ask an agent a question. Store data as plain JSON in [a folder] and listen only on localhost. Work from a written plan, add tests for each step, and stop after each step for my review.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related