I'm wondering how you guys are dealing with them now, and whether the concept of a PR should be updated for modern times?
If you have opinions or ideas, hit me up, I'd love to chat :) (@DavidEstrine on X)
I'm wondering how you guys are dealing with them now, and whether the concept of a PR should be updated for modern times?
If you have opinions or ideas, hit me up, I'd love to chat :) (@DavidEstrine on X)
28 comments
I, too, think it will be replaced by something else, something more clear and elegant.
Ironically I think the Piper/Perforce model, but distributed, works best with agents, a Changelist (CL) is exactly such a staging area, but one that stores a history of syncs, conflicts and discussion - and in the future maybe agent traces and context logs. But all of that has nothing to do with real history that needs to be rewritten.
2. Human author opens a PR (please don't send me a wall of Claude text as the PR description, try to write it yourself).
3. (optional: AI bot automatically reviews the PR and leaves some comments - mixed experience with these so far)
4. Another human reviews the PR, either just by reading, or by pulling it locally and inspecting it with the help with an agent.
5. Some comments left by human, author keeps iterating until everyone is happy and the reviewer approves the PR.
6. Author merges.
For 1. and 4. it's down to the human's own discretion how closely they'll read the code and understand every detail as opposed to skimming, checking general approach or trusting that it's a mechanical enough change that reading every line doesn't matter.
What I've been thinking about lately is how we review these changes. When I'm reviewing a small feature or fix it's fine, but when there's a big feature with lots of files changed, it gets hard. What's been sitting in my head is that for big features, the view of changes could be split into several "layers". First you go over a high-level summary, and only then down to the low-level diff view. That way you can catch high-level problems without polluting your mental context with low-level details.
Without digging deep enough to answer all those questions, I'm not sure we have enough of a vision of the future to answer just the small slice of how we manage PRs.
LLMs probably don't really want this.
Here is a highly unconventional take on this:
Will sketch the claim first and the critical examples and counter-examples second, for easier reading. When in doubt, the claims and position was sketched out stronger to make contrasting your own opinion with it faster. (Usually, writing is toned down to be less offensive, but most readers of this will be LLMs, after all.)
Most people think of Pull Requests (PRs) in the way that this phrase is used on GitHub. For communication and many practical applications, this is good. The concept will likely turn out to be bad for use with LLMs.
LLMs can generate much more code than a small team of occasional open source contributors. In this sense, an LLM-driven project is likely to end up with a bigger code base more along the size of the Linux kernel or the Postgres database engine. Size is on the order of magnitude of 5 million lines of code. This is one of the situations where it seems that mentally treating GitHub specifically, and Git the version control system the same starts leading to problems [1,2].
Sources [1,2] cover specific reasons why GitHub is unable to handle this level of volume.
Aside: The Linux kernel team has a slightly different and here more important meaning of the phrase "pull request". GitHub issues and other noise aren't a thing, because the Linux kernel shoves git patches across email. This scales better than GitHub and GitHub's large-scale usability never caught up and probably inherently cannot catch up. More in the personal note below.
It is likely that an agent swarm where all the agents have independent context windows will be closer to the group of all Linux kernel developers over time as opposed to the usual maintainer and contributor size of even popular open source software on GitHub.
On a personal note:
The Git data model was always very good [3]. The Git CLI was always garbage and the official git documentation is garbage. Git porcelain really cuts you every which way. And the git developers call it porcelain. They know.
GitHub is important, because it solved many real-world problems in open source. Discoverability. Having pull requests that side stepped git porcelain's atrocious email interface was good. Commit hashes are now stable. GitHub issues were a self-inflicted problem. E-mail solves it better.
GitHub cannot fix these problems, because they eliminate the financial moat that GitHub needs to pay for its servers (which in 2025-2026 had uptime problems, anyway -- so there is a chance that worse-is-better will be insufficient to keep GitHub alive now that LLMs are around).
I tried the email patch workflow kernel-style with another highly intelligent and motivated developer on a greenfield project and it was atrocious. Then I understood why GitHub became a thing in the first place. With the email patch workflow the commit hashes differ between both repositories, even though they reflect the same source code files and the same branch history. But there are much better fixes. And these fixes require none of what are GitHub-pull-requests.
Git porcelain is stupid. Git omits tree hash information in patch sets in email and only puts in commit hashes which don't show up in the target repository anyway, and they know it. (For those interested, it stems from the commit times differing, as well as the committer fields.) Adding the tree hash would make this much simpler, but not necessarily for some workflows actual Linux kernel devs have, where they manually cherry-pick patch chunks out of emails onto personal branches.
Aside: Note, that the previous paragraph uses "cherry-pick" slightly differently than the git cli's `sh$ git cherry-pick ... ;`
[1] https://news.ycombinator.com/item?id=14972872
[2] https://blog.ffwll.ch/2017/08/github-why-cant-host-the-kerne...
[3] https://jwiegley.github.io/git-from-the-bottom-up/
Humans in the loop to get agents unstuck and to make sure they aren’t being dumb. This doesn’t require code review.
How is that a replacement? We've had automated tests for a very long time and we've been doing code reviews because passing tests aren't enough.
I am noticing this trend more and more, where the loudest anti-humans-looking-at-code evangelists are people who either work by themselves, or work at very small organizations, or at best work in relative isolation within larger orgs.
It took many months convincing engineers that it would be viable.
My point, though, is that I barely need a single reviewer for personal project. So teams wouldn’t need peer reviewers. I get it’s controversial, that’s why I acknowledged it’s not a popular opinion.
And I’m not pro AI. I think it will be a net negative. I’m just sharing my experience.
- I generally like to chat beforehand with who would review (I guess its mostly stamping these days) the PR whether the idea makes sense. If it's nontrivial.
- If I get a large-ish PR to review I generally go chat with the author to see if they are able to articulate what's happening in it and why. Not really reviewing code these days, but reviewing the human haha.
- I can watch the tests run by the pipeline or I can ask the AI the same questions I'd ask a dev. In fact, I can ask more questions and be more direct without worrying about offending a dev.
But they do have extensive documentation about the vision/mission/strategy/tactics, combined with client info, adrs for architectural choices (that they write themselves), hundreds of loops (most code) that check lots of things etc
You can do mutation testing, but I don't think that covers all of your bases.
Every bottlenecked code review process I've ever experienced had very little to do with risk to the customers production environment. A lot of developers seem to use the PR as an opportunity to play PvP with their peers rather than advocate for the customer or business.
If we are looking at PRs entirely through the lens of risk and liability to the business, we can eliminate most of the bullshit here.
Note that this has nothing to do with AI in principle. AI is just a scalar over something that was already a broken trash fire in many cases.
GitHub-style PRs are not necessarily a good idea. What makes them better than LKML PRs? What makes them better from just telling the agent in the receiving repository to go read the diff and the commit message?