Skip to main content
Agents

Coding agents missed more bugs when the answer lay beyond the changed lines

A benchmark built from known bugs found that automated reviewers struggled with complex changes and with private repositories where local project knowledge mattered more.

8 Nov 2026

A proposed code change can look right in isolation and still break a rule that another part of the project depends on. A 2026 preprint reports that review agents were less effective at finding bugs when the job required that kind of reasoning beyond the changed lines.

The coding agents detected roughly 70 percent of bugs visible in the changed lines and roughly 48 percent of bugs that needed extra context.
The researchers compared 459 tasks whose defects were visible in the diff with 536 tasks that required extra context. The bars show detection rates, and the numbers beside them show task counts. · Chenyang Yang and coauthors, CRBugBench, figure 7. Cropped to the defect visibility panel. CC BY 4.0.

Image source · Reuse terms

The researchers assembled 1,000 review tasks from public projects and 800 from proprietary repositories at one company. Each task paired a known bug with the change that introduced it. The best tested setup caught 71.9 percent of bugs within its first five comments. Performance dropped on the private repositories and on tasks that needed more context.

The benchmark asks whether an agent can rediscover bugs people already know about. The missed cases explain why a strong overall score can be a poor reason to treat every change alike.

Read the source.