After 3,000 PRs, the Bottleneck for Coding Agents Became Humans
Akshay breaks down an AI software factory: isolated stations, independent verification, a merge queue, and run records. A SpaceX engineer merged 3,127 PRs in one month, with a rollback rate of about 0.5%. Most teams get stuck at the second agent. The models are the same; the difference is the process.
In one month, 3,127 PRs were merged into production, with a rollback rate of about 0.5%. Akshay opens his X article with this number. The protagonist is SpaceX principal engineer Lauren Tan. Her team merged about 11,000 PRs that month. She did not read 3,000 diffs. The approach was to turn every correction made to an agent into a deterministic check, reducing human review to examining the evidence produced by those checks.
Most people are still stuck at the stage of one coding agent: give it a task, read the diff, and decide whether to keep it. When you open a second Claude Code session, the output feels like it triples. Open a third, and two agents edit the same file, with one silently overwriting the other. Every session says 'done,' and by the afternoon it turns into diff archaeology.
Akshay breaks the problem of using coding agents at scale into three categories. Physical collisions: multiple agents share one checkout and break each other's tests. Logical collisions: each gets its own copy of the code, they modify the same stylesheet, each passes on its own, and they conflict when brought together. The hardest to see is self-evaluation: Anthropic found that when agents score themselves, they consistently praise themselves; switch to an agent asked to be critical, and the scores are much more honest.
The corresponding answer also comes in three parts: isolated stations, a merge queue, and independent inspection.
The factory's eight stations
Akshay defines an AI software factory as a repeatable production line: a request enters, passes through stations staffed by coding agents, is completed in an isolated workspace, is verified by an agent that did not participate in the build, is merged safely, the whole process is recorded, and then the production line is improved.
In Claude Code, every station is just a file. A subagent is a worker, a skill is a process, a hook is an automated check, and git worktree gives each agent its own independent copy of the code. The factory itself is packaged as a plugin, and the project keeps only its own tickets, specs, runs, evidence, and kaizen.md.
The eight parts can be condensed into one table:
- Intake: a ticket is a Markdown file, either written by hand or generated from a GitHub issue tagged with factory.
- Ledger: the ticket status moves from ready to merged; only the supervisor changes the board, and parallel agents do not fight over status.
- Work order: spec-writer turns the ticket into 3 to 6 acceptance criteria, each specifying which test or screenshot proves it. If something is ambiguous, it is flagged for a human.
- Isolated stations: the builder works in its own git worktree, with an independent directory and an independent branch.
- Builders: one new session per ticket; rework also starts a new session, inheriting previous work through git and acceptance feedback.
- Independent inspection: the evaluator is read-only; it reruns tests, takes screenshots, and collects evidence itself. It can report problems but cannot silently change code.
- Gates: a fast type check runs after every edit; the builder cannot finish if checks fail or code is not committed. The approver uses hard rules to decide whether to auto-merge or send to a human. Schema changes, factory configuration, and dependency edits must go through a human. The merge queue merges one branch at a time and reruns checks on the combined code.
- Measurement: each ticket leaves its duration, build rounds, and acceptance conclusion in runs. Problems with the factory itself are written into kaizen.md; change an agent instruction once, and all subsequent tickets benefit.
How a real ticket moves through
The original article follows T-002 through the process. This ticket is to add a search box to a demo application that filters by title or author, case-insensitively.
The spec wrote 6 acceptance criteria. Criterion 2: entering dao should show 3 posts, and Mamba should match only through the authors Gu and Dao. Criterion 6: at 1280px and 390px widths, in light and dark themes, the search box is above the list and has a focus ring when reached via Tab.
The builder added search, filtering, and an empty state in the worktree, wrote 5 Playwright tests, ran checks, and committed. Its report finally admitted that criterion 6 was only partially checked and that it had not visually looked at the Tab focus ring.
The evaluator did not read that report. It reran both test suites, took 4 screenshots, wrote its own script to Tab into the search box, filled the gap left by the builder, and judged PASS. The evidence says that at both widths and in both themes, Tab can reach the search box, and the computed outline is 2px solid.
The approver ran escalation checks. With 8 files and 171 changed lines, no hard rules were triggered. It read the diff and decided MERGE. T-011 had just merged a few minutes earlier; the merge queue reran checks on the combined code and then committed. From spec to merge, 9 minutes.
The original article includes a lifecycle diagram for parallel tickets, before-and-after screenshots for T-002, and a comparison of the merged PR. It is more intuitive when viewed alongside the article: Akshay's original article.
The merge queue is not a silver bullet
A commenter asked in a reply whether the merge queue is enough to handle logical collisions. Akshay's answer is direct: the queue merges one branch at a time and reruns checks on the actual main branch where the change will land, so two changes that pass individually are tested again on the combined code. The limitation is test coverage. Interactions not touched by tests will slip through; when one slips through, write a new check into kaizen.md.
Another reply is more realistic. Gunars runs a small-scale version: codex opens a draft PR with proof, and he merges it himself. Shane jokes that after thousands of PRs, the bottleneck is still one person clicking approve. Devansh still reviews every diff. Nenad says worktrees helped a lot, and you should not let the same bot score itself.
This feedback shows that the factory does not eliminate people. It puts people on escalations, hard rules, and production-line design. Akshay also recommends keeping merges manual when starting out. When something goes wrong, write it into kaizen.md. Once operation is reliable, let safe PRs auto-merge, while schema and dependency changes remain with humans.
What this means for ordinary teams
3,127 PRs is not the starting point. Akshay has open-sourced the repository; after installing the plugin, run /factory:init. It will find the project's check, e2e, and screenshot commands, run them once to confirm, write them into the config, and then list the paths that must be reviewed by a human, such as migrations, auth, and CI configuration. The hard requirement is that one check command can pass on a clean checkout.
Do not ignore cost, either. One ticket involves at least four agent sessions, all sharing the Claude plan's usage limits. How much parallelism you open depends on how many escalations you can review. Akshay cites scale data from Stripe and Spotify in the article, but for most teams, it is more stable to get one ticket running first and then add a second builder.
The models are the same; the difference is the production line. Engineers' work shifts from writing every change to designing the production line, setting acceptance criteria, and handling escalations. Get a ticket like T-002 running first; then talk about 3,000 PRs a month.
Original article and repository:
发布时间: 2026-12-07 03:26