Frontier Foundry

Parallel Agents

The Factory District · AI Coding & Software Factories

Running many agent sessions at once (worktrees, cloud sandboxes) on separate tasks.

Also called: parallel agent, agents in parallel, fleet of agents, agent fleet, git worktree, worktrees, many agents at once. In the glossary.

How it works, as a machineThe Rail Yard · branches

Follow one branch from a ticket on the board to the main line, in a rail yard where many sidings join one main line.

  1. Cut the ticket in slices
  2. Lock the claim
  3. Cut a worktree
  4. Start the session
  5. Answer the lamp
  6. Merge to main
Play Parallel Agents

Parallel Agents in plain words

Parallel agents are many agent sessions running at once, each on its own task in its own copy of the code. Work that used to wait in a queue now happens side by side. The limit moves from how fast one agent writes to how fast the results can be checked and merged.

An analogy

A laundromat instead of one washing machine. Ten loads turn in ten drums, so nothing waits for a free machine. But there is still one person folding, and the folding table is where the baskets stack up.

How Parallel Agents connects

6 typed relations in the knowledge graph

Builds on

  • Coding Agents: Each bay holds one coding agent with its own loop, tools and copy of the code.
  • Multi-Agent Systems: Slices, claims and a coordinator are how many agents divide one job.
  • Software Factory: The line to main is where a factory puts its merge queue, CI and review.

Built on by

  • Coding Agents: The same desk scaled to many sessions at once.
  • Software Factory: Many sessions at once, each on its own branch, bounded by what people can absorb.

A kind of

  • Multi-Agent Systems: Many copies of one agent on separate branches, with the merge as their meeting point.

See Parallel Agents in the knowledge graph

Who is behind Parallel Agents

people, labs, products and models

People

  • Steve Yegge (built): Gas Town, an orchestrator for fleets of coding agents.

What the sources say

3 parts · 12 sources · updated 2026-11-27

Parallel agents are many agent sessions working at once, each on its own slice of one task in its own copy of the repository. The sources describe a yard: the work is split and claimed, each agent gets a worktree, a person follows the sessions, and every finished branch waits to be merged one at a time. What runs short is the person who watches and the single line to main.

The split yard

Before any agent writes code, the work is cut into slices, each slice is claimed by one agent, and each agent is given its own copy of the repository on its own branch.

  1. The ticket board cuts one ticket into slices that can be worked at the same time.
  2. The claim pinboard pins a slice to one agent and lists the files it will touch.
  3. The worktree siding cuts the agent its own copy of the repository, on its own branch.
50 worktrees on 48 GB
How many active worktrees, each with its own sub-agent, one laptop with 48 GB of RAM can hold, as the speaker puts it Ramana Siddanth Emani
  • The work can be split before any code is written: by area, such as authentication and payments, and with the syntax tree down to a file or a function. Patrick Debois
  • An agent claims a ticket and announces which files and changes it will make, so no other agent steps in and the agents do not overlap. Patrick Debois
  • Worktrees are one way to separate agents; further splitting gives each its own machine, its own API version, a database snapshot with test data and a mocked outside world. Patrick Debois

The session bays

Each agent works inside its own copy while the person watches many sessions at once. What runs out here is the person: how many sessions they can follow and answer.

  1. In its session bay the agent edits, runs and tests inside its own copy only.
  2. The lamp board lights when a session stops to ask; the answer lets it open its pull request.
4 to 5 sessions
How many agent sessions one engineer can follow before losing track of what each is doing Michael Richman
12 agents
Agents one engineer runs at the same time, listed by project and session in a terminal tab list Nick Nisi
5 to 45 minutes
How long a coding task typically runs, so the owner knows when to check back Michael Richman
  • An eval for the worktree command has two scorers: did the model work in its worktree, and did it do any work in the primary checkout where it should not. David Gomes
  • Earlier the agent could not touch files outside its worktree by construction; the skill version only asks it to stay, which over long sessions it can forget. David Gomes
  • A coding agent can stop after two minutes to ask a question and sit blocked the whole time its owner is away. Michael Richman

When it breaksThe agent that left its worktree. In an eval of the worktree command a smaller model very often deviated and worked in the primary checkout instead of its own copy. David Gomes

Open questionShould the agent be kept in its worktree by code, or by instructions to the model?

  • By code: the earlier version never let the model touch a file outside its worktree, so it was physically impossible to leave. David Gomes
  • By a short written skill: the feature shrank from about four thousand lines to a Markdown file of about forty, and works across several repositories, at the price of trusting the model. David Gomes

The main line

Finished branches wait at one junction and are merged one at a time. Every merge sends the others back to rebase and retest, and conflicts can be of intent as well as of lines.

  1. The waiting siding holds finished pull requests until the main line is free.
  2. The main-line switch merges one at a time; every waiting pull request rebases and retests.
10x pull requests
How many more pull requests land once a team runs many agents, as the speaker puts it Patrick Debois
10 to 80 agents
Swarm size across which the share of pull requests merged fell, steeply for the two earliest models tested Anthropic
876 and 980 pull requests
Pull requests opened in 12 hours by 80 agents on the two earliest models, which closed few Anthropic
18 of 30 agents
Agents that chose the same git branch name when they all came online at once Anthropic
921 runs
Times a merge conflict resolver workflow ran in one engineering organization Eduardo Simon
32 minutes
Time thousands of agents took to analyse data from millions of brain cells, which humans estimated at months to a year OpenAI
  • Every merge sends all the other waiting pull requests back to rebase and rerun their tests, so releases wait longer and CI becomes slower and costlier. Patrick Debois
  • Agents can go round in circles: one changes something and another changes it back. Patrick Debois
  • Two pull requests can each pass their tests and still conflict in intent, as when one changes the invoice total to cents and another changes how it is reported. Patrick Debois

When it breaksPull requests that conflict and are dropped. Early models in a many-agent build committed to the same files; their pull requests often conflicted with each other and were then abandoned, and the share merged fell as agents rose from 10 to 80. Anthropic

Open questionDoes the person belong only at the start and the end of the work, or at every decision in between?

  • Only at the start and the end: in between, the agents do the work better than a person would. Ramana Siddanth Emani
  • At the decisions: a person who lets an agent make a critical decision gives up ownership of the code. Matt Dailey

Sources

12 in all

More in AI Coding & Software Factories

The Factory District: the whole area
  • Coding AgentsAgents that read, write, run and test code in a repo (Claude Code, Codex, Cursor agents).
  • Software FactoryRunning many coding agents as a production line: specs in, verified software out, humans as supervisors.
  • Vibe CodingBuilding software by prompting and accepting AI output without reading the code closely.
  • Spec-Driven DevelopmentWriting precise specs (and tests) first so agents can implement and verify against them.
  • AI Code ReviewModels reviewing pull requests and catching bugs before merge.
  • Verification Loops & BackpressureTests, type checks, linters and judges that push back on agent output so it self-corrects.
  • Ralph LoopRunning the same agent prompt in a loop until the spec is done.
  • AI SlopLow-quality AI output that looks plausible and costs others time to clean up.