
Git Worktrees & Merge Queues
One Repo, N Coding Agents
Part 2 of the Dark Factory series. Two coding agents in one checkout
quietly destroy each other's work. git worktree gives each agent its own checkout, and with its
own ports and testcontainer, its own environment. Scale to 6+ agents and the bottleneck moves:
every branch is green against a main that has since moved. Enter the merge queue, until the
queue becomes the bottleneck too.










