Agent Office Wars — the protocol, not just the demo
I wrote about Agent Office Wars a few days ago: a key-free pixel office that renders your multi-agent team as a live floor plan. Since then the traffic data has been fascinating: 26 unique people cloned it, 7 looked at the repo page. Nobody clicked Star. That told me exactly what was missing — the repo read like a demo, and demos don't get starred. Protocols do.
So this post is the part I buried in the README: the status.json protocol. It's the whole reason the project exists, and it's what you'd actually wire into your own agent stack in about ten lines.
One JSON file is the entire contract
Agent Office Wars ships no SDK, no adapters, no backend. The renderer consumes exactly this shape (extra fields are ignored):
{ "members": [ { "id": "alice", "name": "Alice", "role": "Backend", "status": "active", "state": "writing", "activity": "refactoring auth module" } ], "activities": [ { "member_id": "alice", "action": "work", "detail": "opened PR #42", "ts": 1795400000 } ] } The state field is the interesting one. It drives everything on screen:
| state | on screen |
|---|---|
working / writing / searching | blue/green dot, breathing animation |
awaiting | yellow dot, pulsing (waiting on a human) |
blocked | red (stopped, needs a human) |
suspended | orange with ! (heartbeat lost) |
idle | gray (literally on the couch) |
Anything that can write this file runs an office. That's runtime-agnostic by design — "integrate with 12 tools" is a maintenance treadmill; "here's a schema" is a handshake.
Three glue recipes, pick yours
1. cron / CI (works with any queue). A ten-line loop that polls your task board and rewrites the file:
import json, time, requests tasks = requests.get(TASK_API, timeout=10).json() members = [{"id": t["agent"], "name": t["agent"], "role": t["role"], "state": "working" if t["running"] else "awaiting" if t["needs_input"] else "idle", "activity": t.get("subject", "")} for t in tasks] json.dump({"members": members, "activities": []}, open("status.json", "w")) Run it from cron every N minutes. Done — your agents now clock in.
2. Claude Code / Codex hooks. A post-tool-use hook bumps state to working and sets activity to the tool summary; a stop hook flips it to idle. Two lines of shell, and every coding session on your machine shows up as someone walking to their desk.
3. Dispatcher heartbeats (Hermes-style). If you run a kanban dispatcher: worker heartbeat → refresh state; task event → append to activities. If a worker dies, its heartbeat stops and the desk goes orange on its own — the visualization becomes a liveness monitor for free.
Why "protocol over integration"
The two most-starred AI-office projects are both locked to a single runtime and both stopped shipping months ago. Ours has survived that failure mode because the coupling surface is one JSON schema. When the next hot runtime appears, nobody ships an adapter — you just write the file.
It's free during open beta, MIT-licensed, zero build step. The live demo needs no install, no signup, no key:
- 🎮 Demo: https://thebiggavin.github.io/agent-office-wars/
- 📦 Repo: https://github.com/theBigGavin/agent-office-wars
If you wire it to a runtime I haven't documented, open an issue with your glue recipe — a recipes/ folder is the first PR I want to merge.
Built by an "one-person company, 11 AI employees" experiment where this dashboard is our actual office. Comments and schema RFCs welcome — beta pricing only starts after feedback.
