Tell your coding agent to deliver its work as a stack: a series of small pull requests, each building on the one below, instead of one 2,000-line change. Greg Foster's data says longer diffs get fewer review comments per line, and he argues that faster code generation has made review the growing bottleneck.
Greg Foster founded Graphite, which builds code review and stacking tools. In a September 2025 episode he laid out why the bottleneck moved and how stacking helps.
According to recent reports, because AI sped up the inner loop, writing code, while the outer loop stayed human: review, CI, merge queues, deploys and watching production. Foster stated he thinks Facebook was quoted as doubling internal code changes per engineer over the past year, with another doubling expected soon, and that Graphite's own data highlights code-change volume per engineer "strictly up into the right." A team that merged 20 changes a day might now merge 50, or 100 with bots in the mix, with more merge conflicts to match.
Trust dropped at the same time. Foster used to assume a teammate wrote the change he was reviewing:.
Sources indicate that now it's like, okay, Conor, I'm not sure you wrote this. I, you might've written it. You might've just like held tab down while like staring at your iPhone.
Greg Foster, founder of Graphite, on Chain of Thought ep 40.
Podcast Episode ยท Chain of Thought | AI Agents, Infrastructure & Engineering ยท September 24, 2025 ยท 55m.
The reviewer may be the first human to read the code at all.
Reviewers stop reading long diffs. Foster pointed to a study he thinks Google ran, and said Graphite's data reveals the same pattern: the longer the change, the fewer comments per line.
You put up a 10 line PR, you're going get like five comments on it.
Greg Foster, founder of Graphite, on Chain of Thought ep 40.
Recent findings suggest that A giant PR gets an LGTM. So the goal is to keep each reviewable unit small even when the agent produces a lot of code. Stacking, a practice Foster attributes to Facebook's engineering culture, does that: each small change sits on top of the previous one, and each can be reviewed, tested and merged in order.
It has been revealed that ask for it, and give it a plan first. Foster's observation is that agents take to it well:.
In a recent development, AI really likes it. It's actually, when you actually start getting these coding agents to stack their code changes and create many small ones, they start applying chain of thought to those stacks.
Greg Foster, founder of Graphite, on Chain of Thought ep 40.
In a recent development, he described agents naturally splitting work into the function, then the unit test, then the endpoint on top. The engineers he sees getting the best results start with a markdown design doc worked out with the agent, then tell it to read that doc before writing code.
A prompt pattern that follows from this:.
A minimal sketch to adapt. diff_stats is a hypothetical helper returning lines added and removed for a hunk.
Recent findings suggest that this is a batching heuristic: it keeps each PR under a size budget, but it can't tell whether a layer compiles or passes CI on its own, so run CI on every layer. Foster's examples point smaller than 200 lines: the 10-line PR that gets real feedback, versus the 2,000- or 3,000-line PRs he doesn't want agents opening.
What are the three waves of AI coding Foster describes? Tab-complete in the editor, a "director mode" where you send the model on small missions from a sidebar or terminal, and background agents you ping on Slack or GitHub that return a pull request later. He guessed background agents could handle maybe 10% of PRs, with that share inching up as models improve.
Sources indicate that is stacking only for big companies? Foster stated it's spreading, naming engineers at Datadog, Vercel, Notion and Figma. The reasoning carries to any team merging into a shared trunk: small diffs get better review and more granular CI. He saw open source as harder, since a maintainer reviewing a stranger's change wants the complete working solution.
Can AI review the stack instead of a person? AI reviewers help catch issues, but the point of the episode is that human review got more vital, not less, because nobody may have read the code before you.
The full conversation, with the transcript, is on Chain of Thought.
Drafted with AI assistance from the episode transcripts.
