Grapim

Is a green light safe?

How often agent pull requests that Grapim would let merge without a human read turned out to ship a real bug, measured on 14,352 merged pull requests in nine open-source projects. The method, the numbers, and what they do not show.

29 November 2026, measured on Grapim's review of that date

Grapim decides, for each agent-written pull request, whether it is safe to merge without a human read (a green light) or needs one, and which lines (a red light). Every reviewer says it is accurate. The question that matters for a green light is different: of the pull requests it would have let through, how many later turned out to have shipped a bug? We have not seen another reviewer publish that number, so we measure ours and publish it here, with the method and its limits.

What we measured

We took the pull requests nine active open-source projects squash-merged between 1 May and 31 August 2026: Langfuse, Onyx, Formbricks, Mastra, the Vercel AI SDK, Dagster, Supabase, n8n and Grafana. That is 14,352 pull requests with code changes (5 to 1,500 lines, at most 40 files); 3,904 of them carry an agent marker (a Co-authored-by trailer, a commit author, or "Generated with Claude Code").

  1. Which ones shipped a bug. For every fix commit in the 90 days after each merge, we traced the lines it changed back with git blame to the pull request that wrote them (the SZZ method). The window ends in August so that every pull request has its full 90 days.
  2. Which bugs were real. Most of what SZZ flags is not a bug the pull request introduced. A model read each flagged pull request and its fix and kept only real bugs that the pull request introduced and that a reviewer could have seen at the time: all 238 flagged agent pull requests, and 150 flagged pull requests without an agent marker, with the same instructions.
  3. What Grapim would have said. Grapim's review and merge decision ran on the 84 confirmed bugs and on 60 agent pull requests nothing flagged, each as it was before it merged.
  4. The rate. From those, the share of green-lit agent pull requests that shipped a real bug, with a 95% interval from 20,000 bootstrap resamples.

The numbers

Agent pull requests that shipped a real bug2.2% (1.8–2.5%)
Pull requests without an agent marker that shipped one2.1% (1.6–2.6%)
Agent pull requests Grapim gives a green lightabout 60% (48–71%)
Green-lit agent pull requests that shipped a real bug1.5% (1.0–2.2%)
Of the 84 real bugs, given a green light36 (43%)
Of the 60 clean pull requests, given a green light36 (60%)

Green-lit agent pull requests shipped bugs no more often than the pull requests people reviewed and merged without an agent marker (1.5% against 2.1%; the intervals overlap). That is "no worse", not "safer". About 60% of agent pull requests got a green light, so a team would have read roughly four in ten.

Agent-written and other pull requests shipped real bugs at almost the same rate, 2.2% and 2.1%.

What this does not show

  • It only sees bugs that people also missed. Every pull request here was reviewed by a person before it merged; bugs caught in that review never reached the history. If green-lit pull requests merged with no human read, those bugs would ship too, so the real rate for a green light used that way would be higher than 1.5%. This compares Grapim's green light with what slipped past human review, not Grapim with no review at all. Measuring that needs shadow mode on a real team: Grapim decides, people review as usual, and we record what people still find on green-lit pull requests.
  • A red light is not proof that Grapim found that bug. It may have flagged something else in the same pull request. We have not yet checked whether its comments point at the lines the fix later changed.
  • The screen is a model. Both groups were screened in the same run with the same instructions, so the comparison holds; the screen's own rate varies between runs, so the bug rate alone should not be read as exact.
  • "No agent marker" is not "written by a person". Some agents leave no marker.
  • Nine open-source projects, each with a company behind it. Private repositories may differ.

Rerun it

Everything runs from the Grapim repository:

node bench/greenlight.mjs mine --repos langfuse/langfuse,onyx-dot-app/onyx,formbricks/formbricks,mastra-ai/mastra,vercel/ai,dagster-io/dagster,supabase/supabase,n8n-io/n8n,grafana/grafana --since 2026-05-01 --until 2026-08-31 --fix-days 90 --data bench/data/greenlight-wide.json
node bench/greenlight.mjs prescreen --data bench/data/greenlight-wide.json --human-limit 150 --jobs 4
node bench/greenlight.mjs review --via-cli --confirmed --buggy 200 --clean 60 --jobs 4 --data bench/data/greenlight-wide.json --results bench/results-greenlight-wide
node bench/greenlight.mjs score --data bench/data/greenlight-wide.json --results bench/results-greenlight-wide

We will rerun it as the review changes and add the result here with its date. Next: shadow mode on teams that use Grapim, and checking whether red lights point at the bug. Write to us for the full list of pull requests and fixes.