Alexander Ko, Grapim, November 2026
Coding agents now write a big share of the pull requests in a lot of repositories. In the 9 active open-source projects we looked at (Langfuse, Onyx, Formbricks, Mastra, Vercel AI SDK, Dagster, Supabase, n8n, Grafana), 27% of the PRs merged between May and August 2026 carried an agent marker: a Co-authored-by trailer, an agent commit author, or "Generated with Claude Code". In Langfuse it was 49%, in n8n 42%.
Every one of those PRs still waits for a person. We wanted to know two things: are agent PRs actually riskier, and could some of them safely skip review?
- Data. 14,352 squash-merged PRs from the 9 repos (5–1,500 changed lines, at most 40 files, touching code), 3,904 of them with an agent marker.
- Which PRs shipped a bug. For every bug-fix commit in the 90 days after each PR, we
git blamed the lines the fix changed back to the PR that last touched them (the SZZ algorithm, Śliwerski et al., 2005). The window ends in August so every PR gets its full 90 days. - Cleaning. SZZ is noisy: it blames whoever touched a line last, and "fix" in a commit subject isn't always a bug. A model (Claude Opus) read each flagged PR next to its fix and kept only real bugs that the PR introduced and that its reviewer could have seen. We screened all 238 flagged agent PRs and a random 150 of the 725 flagged PRs without an agent marker, with the same prompt.
- A gate. We ran our merge gate on the 84 confirmed agent bugs and 60 random agent PRs with no flagged bug, and recorded whether it would have said "safe to merge without a person".
| | Agent PRs | PRs without an agent marker |
|---|---|---|
| Flagged by SZZ | 238 (6.1%) | 725 (6.9%) |
| Confirmed real, visible bugs | 35% of flagged | 30% of flagged |
| Real bug rate | 2.2% [1.8–2.5%] | 2.1% [1.6–2.6%] | Agent PRs shipped real bugs at the same rate as everything else. Not worse, not better.
That changes what the problem is. If roughly 98% of agent PRs are fine, then the cost isn't the bugs. It's that reviewers can't tell which 2% to read closely, so they read everything, and the queue grows with every agent you add.
So we asked the second question: how many could skip review without making things worse?
- The gate green-lit 60% of the clean agent PRs [48–71%] and43% of the ones that later needed a bug fix.
- Combining those with the base rate, green-lit agent PRs shipped real bugs at 1.5% [1.0–2.2%], against 2.1% for PRs without an agent marker.
The intervals overlap, so the honest reading is "not worse", not "safer". But it means a reviewer could have skipped about 60% of agent PRs without raising the bug rate above what already gets through human review.
Bugs aren't the only risk. We took 100 merged PRs from GitHub's Copilot coding agent whose descriptions include the original prompt (90 repositories). Two model judges, working from the same written rubric, marked whether each PR did something material that the prompt didn't ask for. They agreed on 94.
9 of those 94 (about 10%, interval 5–17%) did. Examples: loosening a test instead of fixing a race condition, a description claiming a test was added that isn't in the diff, an "opt-in" feature switched on by default. All 9 were merged.
That's the part of review a gate can do without understanding your whole codebase: compare what the PR was asked to do, and what it says it did, with what the diff actually changes.
- It only sees bugs that human review also missed. Every PR here was reviewed before merge. Bugs caught in review never appear in the history. If green-lit PRs skipped review entirely, those would ship too, so the real green-light bug rate would be higher than 1.5%. Measuring that needs shadow mode in a live team: the gate decides, people review as usual, and you record what they catch on green-lit PRs.
- Red doesn't mean it found the bug. A PR the gate sent to a person may have been flagged for a different reason.
- A model did the screening. It's consistent within this run (both groups, same prompt), so the comparison holds. The absolute rates shouldn't be quoted on their own.
- "No agent marker" isn't "written by a human". Some agents leave no trace.
- 9 open-source repos backed by companies. Private repos may differ.
- The intent results are from a set we also used to tune the checks , so treat the gate's catch rate there (6 of 9) as optimistic.
Everything is in this folder:
| File | What it is |
|---|---|
check.py |
Recomputes the numbers above from the data. No model calls: python3 check.py |
data/greenlight-prs.csv |
All 14,352 PRs: repo, number, merge and base commit, size, agent markers, SZZ flag, the fix PRs blamed back to it |
data/greenlight-screening.jsonl |
The model's screening of 388 flagged PRs: is it a bug, did this PR introduce it, could its reviewer see it, and why |
data/greenlight-gate.jsonl |
The gate's decision on 144 agent PRs ( safe = merge without a person), with its findings |
data/intent-cases.json |
The 100 Copilot agent PRs with their original prompts |
data/intent-judge-*.jsonl |
Each judge's label and reasoning |
data/intent-grapim.jsonl |
The gate's decision and its "beyond the request" list for each |
data/intent-rubric.md |
The rubric both judges used |
scripts/ |
The scripts that produced the data; see RERUN.md |
Every PR is public: open https://github.com/<repo>/pull/<number> to check any row.
I build Grapim, the gate used here. If you maintain a repo with a lot of agent PRs and want to see what it would have done on yours, I'm happy to run it in shadow mode: it only comments, never approves or merges. Free for public repos. And if you think the method is wrong, I'd like to hear where: open an issue or email alexander.ko@grapim.com.