Quick note on the cover image first: that 3D office is a separate Three.js viewer I'm building on top of the .company/ logs so it's easier to watch what all 13 agents are doing instead of tailing raw files. I plan to publish that viewer open-source soon; this post is about the CLI plugin running underneath it.
I wanted to see if I could run multiple coding agents on the same repository at the same time without babysitting every edit. My first few attempts were a mess. Agents overwrote each other on main, the architect agent kept writing half the app inside "starter files", and whenever a coder hit a stubborn TypeScript error it would burn through quota retrying the same build a dozen times in a row.
I ended up packaging the guardrails that actually fixed those problems into an open-source plugin for Google Antigravity called Virtual Tech Company (v2.5.1).
(Sped-up graph replay from a real run building a small Pomodoro app, not a scripted animation.)
What broke, and the rules I added
I kept the setup down to 10 role types across 13 worker slots (BA, UI designer, architect, tech lead, scrum master, 3 junior coders, 2 intern coders, 2 QA slots, and a tech writer).
Four changes made the biggest difference:
1. Separate git worktrees, never main
Every feature task runs in its own worktree (feat/<task-id>-<worker>), and every bug fix branches fresh off main (fix/<bug-id>-<worker>). As soon as one coder's branch passes typecheck, tests, and build, the tech lead agent reviews the diff and merges it right away. Waiting for all five coders to finish before merging was just asking for ugly conflicts.
2. Cap the architect at 20 lines per stub and lock the contracts
Early on, the architect agent would get carried away and write real business logic in every file, leaving nothing clean for the parallel coders to own. Now it only sets up the folder layout, shared interfaces (contracts.* / types.ts), and empty stubs capped at 20 lines each. Coders are not allowed to touch contracts.* or .company/RULES.md. If a type is missing, they have to stop and ask for a contract update.
3. Only one agent writes BACKLOG.json
Even with isolated worktrees, five parallel workers editing one shared backlog JSON file will corrupt it. Now only scrum-master has write access to BACKLOG.json. Everyone else appends a single JSON line to ACTIVITY_LOG.jsonl and posts a short update on the board.
4. Hard limits on local retries and QA loops
A coder can stay inside its assigned file and still waste half your quota cycling through "fix error A -> trigger error B -> break test C". Each coder now gets a max of 3 failed local verify runs (and --watch commands are banned so the shell doesn't hang). On fail #3, it has to stop and post [BLOCKED] with the raw error for the tech lead to step in.
On the QA side, I split testing into two slots: qa-lead runs the full suite and logs bugs without stopping, while qa-retester sits idle at zero quota and only wakes up to verify a specific merged fix. If a bug still fails after 2 fix cycles (max_retries: 2), the run stops for a human.
Numbers from a real run
Before writing app code, /discovery asks edge-case questions, lets you pick one UI skill and one motion skill (lazy-loaded so the context stays small), and serves a plain HTML mockup on localhost to check the layout first:
When I ran /company on a React + Vite + Tailwind Pomodoro app, here is what the timestamps in ACTIVITY_LOG.jsonl looked like:
- Intern tasks (
TASK-05,TASK-06): 117s and 174s - Junior tasks (
TASK-02toTASK-04): 247s to 377s - Tech lead rolling merges: 24s to 36s each
- Final result: 67/67 Vitest and Chromium E2E tests passed, 0 blocker/major bugs, and a clean security check before tagging
v1.0.0.
To be fair, a Pomodoro app is a pretty friendly test case: pure frontend SPA, localStorage, no database migrations or auth flows. I'm testing it on bigger full-stack and Flutter projects next, and I fully expect a few more edge cases to show up there.
Try it
If you use Google Antigravity (Node.js 18+ and Git):
npx --yes github:bqhkda/virtual-tech-company
Then run /discovery <idea> or /company <spec> inside a repo. It auto-detects Web (TS/JS), Flutter/Dart, Python, Go, and Rust.
Repo is Apache-2.0 on GitHub (English + Vietnamese docs): github.com/bqhkda/virtual-tech-company
Curious how other folks are handling parallel coding agents right now. Are you using git worktrees too, or keeping everything single-agent for sanity?




Top comments (0)