Enki

Anthropic: agentic review in Claude Code beat fuzzing at finding logic bugs

By

Published

Reporting from Techmeme

More onAnthropic

Anthropic tested four ways to hunt logic bugs with Claude. An agent testing code in Claude Code did best, finding 20 or more of 21 when told the rule.

What it means for founders

Enki's read: the cheapest win here is writing your rules down. The blind agent found about half the bugs; given the rule, nearly all. Before buying a scanner, list the invariants of the code that loses money when it breaks, such as "a refund never exceeds the charge", "a user only reads their own rows" or "a verified file is the file we load". Put them in the repository, where the Claude Code docs say guidance files such as `REVIEW.md` and `CLAUDE.md` tune what gets flagged.

Then copy the research setup, not the product. Open Claude Code on one critical module, give it a build it can run, and ask it to break those rules with concrete inputs. That is a prompt, not a product: the docs don't say whether the `/code-review` command builds or runs code. Ask for an informal proof as a second pass.

If you turn on Code Review, switch new repositories from After every push to Once after PR creation and set a spend limit first. Enki's Claude Ship story covers the billing traps. Cursor says Bugbot reviews average $1.00 to $1.50, depending on PR size; Enki's Claude Code vs Cursor comparison covers the wider choice.

If you ship firmware, kernels or anything with a privilege boundary, Enki's read is that attackers can run the same method. Run it on your code before they do.

What we don't know yet

The post gives no cost or run time for the review runs. It gives no false positive rate for the 316 extra bugs, which an LLM judge verified, and its grader checked inputs, not whether a model grasped the broken rule. Anthropic does not say which models Code Review uses. The four method comparison ran on one model and 21 bugs from four codebases, and Enki found no outside reproduction.

The story

Anthropic published research on 2 December showing that the simplest way to hunt logic bugs with an LLM beat the elaborate ones. On a benchmark of 21 since-patched bugs, Claude Mythos 5 running in Claude Code with no hints rediscovered 11 across three attempts per bug. In the same blind test, the fuzzing and symbolic execution setups, each steered by an LLM, scored zero, Anthropic's researchers wrote.

Logic bugs are the ones general-purpose tools rarely catch. They usually don't crash or touch memory wrongly, yet the software breaks a rule it was meant to keep. For founders, the agent you already pay for may out-hunt a security pipeline you were about to build. The catch is that it does best when a person tells it the rule.

Four methods, and the plain one won

The benchmark holds 21 logic bugs from SQLite (9), image-png (8), zstd (3) and brotli (1), disclosed between 2016 and 2026. Each method got the unpatched code only and had to prove a find with an input whose output changed once the patch was applied. Each had three attempts per bug, up to 1,000 inputs an attempt, and no feedback until the end.

Two methods bolted an LLM onto classic tools: an eight hour fuzzing run and a symbolic execution engine. The other two left the agent free: plain code review, where the agent may also execute its own test cases on the built program, and an informal correctness proof written in natural language.

Review and the informal proofs came out on top in both settings. When the violated rule was handed over, 20 to 21 of the 21 bugs fell. Symbolic execution then found 13, but Anthropic says the LLM spotted those while writing harnesses; the engine confirmed two and added nothing.

Model generation mattered. In the blind test, Claude Sonnet 4.5 rediscovered one bug and Opus 4.5 five. Newer Opus models found 9 to 13 and the Mythos models 11 to 15. Because the bugs are public, Anthropic checked what each model remembered. On the nine bugs no model recalls, Sonnet 5 and the 4.5 generation find at most one, while Opus 5 and later find two to five.

The runs also turned up 316 other unique bugs in old versions of the targets; 189 were already fixed or known, and Anthropic is reporting the other 127. It also lists new finds: a firmware update flaw in the Caliptra silicon root of trust (CVE-2026-11835), a root escalation in a macOS Finder helper (CVE-2026-43783), which Anthropic says it found independently, dozens of type safety holes in the Rust compiler and more than 100 soundness flaws in the Linux eBPF verifier.

The research harness is not the product

Code Review works "from reading the diff and the surrounding code, without building or running your code". The winning research setup could run inputs against the compiled program. Code Review is for Team and Enterprise plans on GitHub only and is billed on tokens. Its cost page says there is no flat per-review price, and a newly added repository starts at a review on every push.

Cursor publishes a typical price. It says Bugbot "detects the hardest logic bugs" and puts the average review at $1.00 to $1.50.

Anthropic's only published precision figure comes from an older, different study. In Anthropic's January property testing study, 56% of 50 hand-checked bug reports were valid. This week's post gives no such rate.

Sources

Reporting

Tools in this story

We may earn a commission if you sign up through our links. It never affects our ratings or which stories we cover.

Claude Code

Anthropic's coding agent, from terminal to IDE to browser

8.9Editor’s scoreVisit Claude Code
Claude

Anthropic's assistant for writing, analysis, and code

9.0Editor’s scoreVisit Claude

More in Research

How Enki covers newsCorrectionsReport an error