AI coding agents' tests mostly pass but catch few bugs, study finds

Seven coding agents wrote tests that passed 91.47% of the time on fixed code, yet only 26.36% of them failed on the buggy version, according to the SpecEngineeringBench preprint.

Illustration of a robot holding a clipboard covered in green check marks while small bugs crawl out from behind a stack of code blocks. Image: AgenticFeed illustration

AI coding agents wrote tests that passed 91.47% of the time on corrected code, but only 26.36% of those tests actually caught the bugs they were meant to find, according to a preprint posted to arXiv on Nov. 24. The benchmark, called SpecEngineeringBench, tested seven agents, including ones from OpenAI and Anthropic.

The paper's lead affiliation is TokenWave AI, with co-authors from the University of Tokyo and independent researchers. Xingjian Wang is first author and Ge Zhang is listed last, the paper shows. It hasn't been peer reviewed, and it circulated on X on Nov. 29.

What the benchmark asks

Most coding benchmarks hand an agent a bug report or point it at the file to test. SpecEngineeringBench gives the agent only a product requirements document, a plain description of what the software should do, and no hints about where problems are.

The benchmark has 100 instances drawn from 78 open-source Python repositories across 16 application categories. It plants 531 real-world defects, with four to 15 in each instance, the authors wrote.

Agents face two separate tasks. One is writing a test suite. The other is finding defects and reporting where they are in the code.

Which agents ran

Claude Opus 5 and Claude Sonnet 5 ran in Anthropic's Claude Code. GPT-6-Astra and GPT-5.6-Sol ran in OpenAI's Codex, according to the paper.

Kimi-K3 and DeepSeek-V4.1-Flash also ran inside Claude Code, as did Z.ai's GLM-5.3. All used vendor-recommended settings at high reasoning effort, the authors wrote.

Passing isn't catching

The key measure is the fail-to-pass rate. A test counts only if it fails on the buggy version of the code and passes once the bug is fixed, which shows it actually detects the problem.

By that measure, the best agent was GPT-5.6-Sol at 34.09%, the paper's main results table shows. GLM-5.3 was lowest at 21.33%. The agents' tests still ran 80.48% of the lines that the bug fixes changed, on average.

The authors inspected 49,317 tests from 500 runs across five of the systems. Of those, 67.44% passed on the fixed code without failing on the buggy code, so they ran cleanly while missing the defect, the authors reported.

"Tests can execute relevant lines without supplying defect-triggering inputs or checking the affected behavior," the authors wrote.

Finding the bug

In the reporting task, agents found the right file in 78.11% of cases on average, the paper says. That fell to 51.29% when they had to name the right function.

Overall, agents located between 33.14% (Claude Sonnet 5) and 49.04% (GPT-6-Astra) of the planted bugs. The most common failure the authors reported was stopping the search too early, at 36.0% of reviewed cases, followed by underusing available evidence at 30.9%.

Writing their own tests did help. GPT-5.6-Sol in Codex found the right file 4.99 percentage points more often with tests it wrote than with the repository's existing tests.

Caveats

The benchmark covers Python only. The results come from the authors' own runs under their scoring rules, not from the model makers.

The code and dataset are public on GitHub and Hugging Face, so other researchers can rerun the tests.

Source: Preprint, Xingjian Wang, Ge Zhang and co-authors, TokenWave AI, the University of Tokyo and independent researchers (independent s, “SpecEngineeringBench: Evaluating Coding Agents as Autonomous Specification Engineers”

Additional sources: Code repository, TokenWave AI (independent source), accessed Nov. 29, 2026, “SpecEngineeringBench”; X post, @DavidRLoker (independent account), Nov. 29, 2026, “Post on agent test bloat”

Get the AgenticFeed newsletter

A free, regular roundup of the agent stories that matter. No spam, and you can unsubscribe at any time.

Want to reach readers following AI agents? Advertise with AgenticFeed

Next event · 30 Nov, 2026

AWS re:Invent 2026 in Las Vegas

AWS’s annual conference runs Nov. 30 to Dec. 4. Matt Garman’s CEO keynote is on Dec. 1, and the catalog lists more than 2,200 sessions.

The AgenticFeed newsletter

A free, regular roundup of the agent stories that matter. No spam.