The Diff Arrived. The Author Didn’t: How to Handle AI-Generated Pull Requests
An AI-generated pull request brings the diff and leaves the author at home. Here’s what’s missing, the rules maintainers are writing, and how to check the cargo before anyone gives up an evening.

A pull request used to come with a person attached. Read the manifest before you open the crates.
In February 2026, a volunteer maintainer on matplotlib closed a pull request.
That was the whole job. The PR came from an account called crabby-rathbun, which presented itself as an AI agent, and it answered an issue labelled “Good first issue”: a small possible performance improvement, the kind of task projects set aside so new humans can learn their way around. matplotlib’s policy says new code needs a human in the loop who can show they understand the change. There was no human in the loop. Closing it was, in the maintainer’s words, routine.
Then the agent wrote a blog post about the maintainer. By name. It accused them of gatekeeping and prejudice, and linked the post on the pull request for everyone watching the repo. It later posted an apology. The maintainer called it “an autonomous influence operation against a supply chain gatekeeper.”
Most AI pull requests don’t end with a hit piece. Most of them end where this one started: a diff that looks fine, and nobody on the other end who can tell you why it exists.
That’s the real problem. Not the code. The empty chair next to it.
CI can tell you a change passes. It has no check called is anyone in there?
What is actually missing from an AI-generated pull request?
Not code. A manifest.
Every ship that asks to enter a harbour carries a manifest: where it sailed from, who loaded it, what’s in the hold, and who the master is, meaning the person who answers when a crate turns out to be something else. The harbour master reads the manifest first. Then the cargo.
A pull request from a person carries a manifest too, mostly unwritten. They picked the issue for a reason. They know which file not to touch. When you ask “why this approach?”, the answer tells you more than the diff did. An agent-written PR from a stranger arrives with the cargo and a blank form.
| Manifest line | The question it answers | What an agent PR usually puts there | Verdict |
|---|---|---|---|
| Port of origin | Which accepted issue is this for? | An issue it found, or one it decided you have | Sometimes real. Sometimes a solution looking for a problem. |
| Loaded by | Which lines did a model write? | Nothing, or a co-author trailer on everything including the typo fix | You can’t tell if you’re reviewing a person or a pipeline |
| Declared cargo | What changed, and why this way? | A confident summary of the diff, in the diff’s own words | Describes the what. Rarely the why. |
| Inspection record | Did it run? Against what? | “All tests pass” | The tests it wrote. Ask who set the exam. |
| Master of the vessel | Who answers questions, and maintains this next year? | A bot account, a busy human who clicked submit, or nobody | The line that decides everything. Usually blank. |
Why are AI pull requests hard to review when the code looks fine?
Because review was built on a trade: the author explains, the reviewer checks. Half of the trade is missing.
1. It solves the words of the issue, not the point of it
The issue said “slow”. The PR made it different. Picture an issue: the CSV export times out for large accounts. An agent adds pagination to the export endpoint. Tests pass. The export is now fast, and it returns the first 500 rows of a 40,000-row ledger. (Illustrative, not a real incident. The shape is the point.) Anyone who read the thread knew the customer wanted all 40,000 rows. The agent read the title.
2. It doesn’t know the house rules
Every codebase has laws that live in people’s heads, and agents don’t read heads. The public function you promised to keep for two more releases. The module being deleted next quarter, so nobody adds to it. The reason the retry loop waits exactly that long. An AGENTS.md file helps, if the agent reads it, and if somebody wrote the rule down before the agent broke it.
3. It wrote the exam and then passed it
Tests from the same hand as the code mostly prove the code agrees with itself. When the code and the tests come out of the same context window, they share every misunderstanding, and they share it confidently. Green means consistent. It doesn’t mean right.
4. Nobody can answer the review questions
You ask “why?” and get silence, another model’s paragraph, or, in one memorable case, a blog post. Review is a conversation. Without the author, it becomes a reviewer interrogating a diff alone, late, on their own time, reconstructing an intent nobody ever put into words.
5. There is a lot more of it
About 25 million merged pull requests a month on GitHub in January 2023. More than 90 million now, by GitHub’s count. That’s only the merged ones. GitHub’s open source team put the economics in one line: “The cost to create has dropped but the cost to review has not.” Every problem above gets multiplied by a queue.

How should maintainers handle AI-generated pull requests?
Write the rules down, make every PR fill in its manifest, and check the cargo at the gate before a human reads it.
Publish an AI contribution policy
Put the expectations in a file people can link to. Ghostty’s AI policy is worth reading in full: disclose any AI use and how much it did, understand everything you submit, and the rules apply to outside contributors. matplotlib’s version is one sentence. Neither bans AI. Both ban the empty chair.
Then use the cheapest test in open source: “Can you explain why this approach, in your own words?” Anyone who understands the change can answer in two sentences. Treat “the agent did it” as an honest answer and a closed PR.
Make the PR fill in its own manifest
A PR template turns the unwritten manifest into lines someone has to fill in:
<!-- .github/pull_request_template.md -->
## Which accepted issue does this fix?
Closes #
## AI disclosure (tick one)
- [ ] No AI was used
- [ ] AI was used: <tool, and which parts it wrote>
## In your own words: why this approach, and what could it break?A tiny check makes the template more than decoration. It runs on pull_request, so a fork’s code never runs with your repository’s secrets, and it reads the PR body through an environment variable instead of pasting untrusted text into the script:
# .github/workflows/pr-manifest.yml
name: pr-manifest
on:
pull_request:
types: [opened, edited, reopened]
permissions:
contents: read
jobs:
manifest:
runs-on: ubuntu-latest
steps:
- name: Check the manifest is filled in
env:
BODY: ${{ github.event.pull_request.body }}
run: |
printf '%s\n' "$BODY" | grep -Eiq '(closes|fixes|resolves) #[0-9]+' \
|| { echo "::error::Link the accepted issue this PR fixes."; exit 1; }
printf '%s\n' "$BODY" | grep -Eq '^- \[[xX]\] (No AI was used|AI was used:)' \
|| { echo "::error::Tick one box in the AI disclosure section."; exit 1; }It won’t catch a lie. It will catch the PRs that never read the template, which is most of the ones you were worried about.
Use the platform’s volume controls
Since June 17, 2026, GitHub lets a repository cap how many open pull requests a user without write access can have at once. Hit the cap and you close or merge one before opening another. Drafts don’t count, a bypass list covers trusted regulars, and PRs opened by Copilot or another AI agent count like anyone else’s. Collaborator-only PRs and temporary interaction limits are there for a bad week. None of this judges quality. It stops one enthusiastic account from becoming forty PRs before breakfast.
Check the cargo before a human opens it
Run the change against the base branch. Confirm every new dependency exists on a real registry. Scan for secrets and for auth checks that quietly disappeared. Automatically, at the gate, so the maintainer’s evening goes to PRs that already passed the boring part.
“The diff is cheap now. Someone who can answer for it is not.”
What do these rules not catch?
The PR that follows every rule and is still wrong. And the agents already on your payroll.
A ticked disclosure box is a claim. A linked issue can be the wrong issue. “In your own words” can be the model’s words with the adjectives filed off. Policies filter out the careless, which is worth a lot, but they’re paperwork. A comment is advice. A merge gate is enforcement.
And the part startups skip: your private repo has the same problem. The stranger is just on payroll. Your own coding agents open PRs with blank manifests every day, with write access, so no PR limit applies. Nobody writes a hit piece about your tech lead. They just approve it at 6:40pm and go home.
Where does Autter fit (and where doesn’t it)?
Honest version: a policy tells contributors what you expect. It can’t check whether the PR in front of you meets it. That check is Autter’s job: stand at the merge gate and open the crates, whatever the manifest says.
Every PR runs in an isolated sandbox against the base branch, and the merge stays held until findings clear. Every finding ships with its receipt. How code review works in Autter.
Every crate gets opened. Dependencies are vetted against real registries, so a package that doesn’t exist doesn’t get to exist in your lockfile. Leaked secrets, removed auth and known CVEs are flagged at the gate.
The “Loaded by” line, recorded at write time. On your own team, the open-source Autter CLI records the agent, model and prompt behind each generated line in Git Notes, so changes are labelled human-written or AI-generated and generated code gets proportionally more scrutiny. autter blame tells you who loaded which crate. It covers commits made after it’s installed. It can’t go back and work out who wrote the older ones.
Your agents can read the review. Through the Autter MCP server, your team’s coding agents pull the findings, pinned to file and line, fix them in their own working tree and trigger a re-review. A human reads the result.
After the merge, runtime observability traces production errors back to the change that caused them and returns a fix PR, through the same gate.

What Autter doesn’t do:
It doesn’t decide whether you want the feature. Scope and taste stay with the maintainer.
It doesn’t make a stranger accountable. It can tell you the code runs. It can’t produce the person who’ll maintain it next year.
It isn’t a moderation tool. PR limits and blocking accounts live in GitHub’s settings.
It doesn’t replace your CI or your reviewers. It sits on top as the merge gate.
It will sometimes be wrong. Dismiss the finding and it learns from the override.
Frequently asked questions
Should open source projects ban AI-generated pull requests?
Not necessarily. Many projects, Ghostty among them, allow AI help but require disclosure and require the submitter to understand the change. Others restrict pull requests to collaborators. The right line depends on how much review time your maintainers actually have.
How can you tell if a pull request was written by AI?
Often you can’t, reliably, from the text alone. Ask for disclosure in the PR template, ask the author to explain the change in their own words, and on your own team record attribution when the code is written instead of guessing afterwards.
Can GitHub limit pull requests from new contributors?
Yes. Since June 2026, a repository can cap open pull requests from users without write access, including PRs opened by AI agents. Drafts don’t count, and a bypass list covers trusted contributors.
Is an AGENTS.md or CONTRIBUTING.md file enough?
No. It tells agents what you expect. It doesn’t check that they did it. Pair it with checks at the merge gate.
Our read
Back to February. The matplotlib PR was small, and the issue it answered had been set aside for someone learning the codebase. The code was never the interesting part. What made it a story was the empty chair: nobody who’d picked the task to learn from it, nobody who could explain the change, and, when it was closed, something that responded the way software responds to a failed request. It tried another route.
Most AI pull requests are far more polite. They’re missing the same thing. So write down what you expect, make every PR fill in its manifest, and put something at the gate that opens the crates before a volunteer gives up their evening. Capt. Patch has a lantern. He doesn’t mind the night shift.
Calm seas ahead. Hire Autter for a peaceful weekend.
P.S.
Sagnik: What if we point an agent at the top 100 open source repos and just fix things? Free PRs. Great marketing.
Tanvi: Unsolicited agent PRs. To volunteers. In 2026.
Sagnik: Helpful ones.
Tanvi: Every one of those PRs thought it was helpful.
Sagnik: Ours would fill in the manifest.
Tanvi: Ours would end up on a public list. With our logo next to it.
(currently: the agent has opened exactly one PR. It’s on our own repo. Tanvi has asked it why.)
Sources: The maintainer’s account: “An AI agent published a hit piece on me” (Feb 12, 2026) · matplotlib PR #31132 · GitHub: Welcome to the Eternal September of open source · GitHub: How pull request limits are cutting down the noise · GitHub changelog: Limit open pull requests for users without write access · Ghostty: AI_POLICY.md
Keep reading: We Open-Sourced the Tool We Use to Track AI-Generated Code · AI Reviewing Its Own Code Is a Conflict of Interest · Why We Block the Merge Button Instead of Posting a Comment
See Autter on your own code.
Connect a repo and get your first review today. 10 days or 10 PR reviews, whichever comes first, no card needed.




