How does one team merge 11,000 agent pull requests a month without drowning in slop?
How does one team merge 11,000 agent pull requests a month without drowning in slop?
Most teams that try to let coding agents run on their own hit the same wall. The agents produce a flood of pull requests, the code gets worse, and humans end up reviewing more than they did before. Lauren Tan, who goes by poteto (@poteto on X) and works on Grok Bot at SpaceXAI, says her team got past that wall. In her talk at the AI Engineer CODE Summit in November 2026, titled "All Code Is Slop (Except Mine)", she said the team shipped 11,000 pull requests to production in the previous month (at 13:37 in the video), with reverts holding steady at about half a percent (at 14:21).
Those figures are her team's own, given on stage, and have not been independently checked. What makes the talk worth studying is less the numbers than her claim about how to get there: fix the inner loop before you automate the outer loop. This post walks through that setup. For the vocabulary, see the glossary for this series.
Inner loop and outer loop
Two terms carry the talk:
- The inner loop is the work of one agent on one change: read the code, edit it, run the checks, try again. It is the agent loop plus everything the codebase gives the agent to check itself with.
- The outer loop is the system that decides what work happens at all: finding bugs, starting agents, merging results, releasing. This is the layer loop engineering is about.
Tan's warning, in her words: "if your inner coding loop produces slop, then automating that loop just produces more slop". It also costs more tokens. So most of her talk is about the inner loop.
Animation: a small inner loop (edit, check, fix) nested inside an outer loop (find work, start agents, merge, release), with the warning that automating a sloppy inner loop multiplies the slop.
It is about trust, not a factory
People call this kind of setup a "software factory". Tan says she thinks of it as trust instead: investing in the agent's environment until you can trust what comes out. She says it took her about six months to get to thousands of pull requests, many shipped while she slept, and that she personally shipped 3,000 to production the month before the talk.
Her thesis is that the engineer's job is now to keep code quality the same or better while increasing output massively.
The inverse pyramid: where to spend your time
The core of the talk is an upside-down pyramid of where to invest in the agent's environment, widest layer first:
- The codebase itself. API design, architecture, refactoring.
- Static analysis. Lint rules, type systems, compilers, tests. Tan groups this with the codebase as the deterministic layers that steer agents toward the right thing by default.
- Verification. Letting agents run the code and check it, at runtime and sometimes formally.
- A little bit of prose. Rules files, skills, agents.md. Only for things that genuinely need judgment.
Her reasoning: agents turn inputs into outputs, and the codebase is one of the biggest inputs. So when you correct an agent, she says, do not add another line to a rules file. Turn the correction into a deterministic check, because code is more reproducible than prose.
Animation: Lauren Tan's inverse pyramid, filling from the widest layer (codebase) down to the thinnest (prose).
Layer 1 and 2: a codebase agents cannot misuse
Tan compares a codebase to a garden. In 2024 she reviewed about 3 pull requests a day from colleagues; now, she says, it is closer to 300. Every engineer is effectively a team of hundreds of agents, and agents copy whatever they see. A workaround or anti-pattern spreads like a weed because the next agent treats it as the house style.
Her team's examples:
- Ban the risky API. Their client framework, Dune, which she describes as kind of like Next.js for Electron apps, bans React's
useEffectin product code and allows it only inside a few framework APIs. She says that class of problem was categorically eliminated. - Put the rules in the folder structure. Code for the Electron renderer and the main process live in separate top-level folders, and a dependency analyzer plus lint rules ban imports between them. The rule exists because a past mistake, importing main-process code into the renderer, caused jank.
- Ban most comments. Tan argues agents use markdown, including comments, to justify not doing the right thing. Her example: timers added as quick fixes, each with a comment explaining why, which then spread and caused performance problems. Grok Bot bans 99% of comments and uses lint rules whose error messages tell the agent to fix the root cause.
The principle she states: every agent correction should become a deterministic check, or the problem should be designed away. Do that long enough, she says, and there is little left to review, which is when you can let agents merge most of their own pull requests.
Layer 3: review the evidence, not the diff
Tan says code review on her team has largely become looking at verification artifacts: videos, screenshots, diagrams and formal proofs.
- Runtime verification. Give the agent a way to run the app itself, for example through the Chrome DevTools protocol.
- A feature map. A map of the product's features from the user's point of view, so humans and agents share the same names for things.
- Custom CLIs inside skills. She says these save tokens and can be tested.
- Formal methods. TLA+ to model-check major user flows such as notifications across devices, and the Lean proof assistant for parts of a custom virtualization library. She says this found quite a few bugs, while calling it not a silver bullet. A property-based UI testing library, Bombadil, has caught UI bugs too.
She also says most of her own token use now goes to verification, and calls this a golden age for software testing because agents make these techniques cheap.
The outer loop, once the inner loop is solid
Only after all that does the outer loop come in. Tan describes Grok Bot as a great way to build that outer loop: connectors and routines that start Cursor cloud agents and projects, orchestrating hundreds or thousands of agents. On each release, she says, Grok Bot spins up a project that uses the app like a real user, finds problems, opens fix pull requests and merges them. Most product code, she says, no longer needs deep human review.
The results she gave for the month before the talk: 11,000 pull requests to production, a new stable release about once a day, roughly 227 people contributing at least one pull request in October, and reverts steady at about half a percent.
What I would take from it
You do not need thousands of agents for this to be useful. The order is the lesson. Before adding a scheduled loop, ask whether a single agent working on your codebase reliably produces code you would merge. If not, the fix is a lint rule, a type, a test or a better API, not a longer prompt. Tan's own advice is the same: add a rule that stops new instances of an anti-pattern, clean up the old ones, and make verification strong before building the factory.
The loop vs graph post has small runnable examples of both patterns, and the Build an AI Agent in Python course builds the inner loop step by step, including an eval harness.
Sources
- Lauren Tan, "All Code Is Slop (Except Mine)", AI Engineer CODE Summit, San Francisco, November 2026. Video: https://www.youtube.com/watch?v=O_zcc6Xl12g
- Talk page: https://ai.engineer/code/2026/talks/lauren-tan
- For more on the outer loop: Matt Pocock's October 2026 livestream with Lauren Tan, summarized at https://hughqlee.com/knowledge/en/inner-outer-loop/
