Claude Opus 5 Code Quality: What Sonar’s Benchmark Reveals

https://hackernoon.imgix.net/images/2jqChkrv03exBUgkLrDzIbfM99q2-hl022i2.jpeg

Claude Opus 5 is Anthropic's latest flagship, released on July 24. Anthropic describes it as delivering frontier intelligence at half the price of Claude Fable 5, and calls out one capability in particular: Opus 5 is unusually good at verifying its own work and catching logical flaws while it plans.

That's an interesting claim to test with algorithmic analysis, so we ran it through Sonar's LLM evaluation framework against the same Java benchmark we use for every model.

The short version: correctness improved a lot. Bug density, vulnerability density, and cognitive complexity per line fell, while code smell density, overall issue density, and cyclomatic complexity rose. There's also a volume story underneath it that changes what verification looks like in practice.

What was measured

Model: Claude Opus 5 Thinking (adaptive thinking mode)

Baseline: Claude Opus 4.8 Thinking

Benchmark: 4,441 tasks (158 HumanEval, 386 MBPP, and 3,897 ComplexCodeEval tasks)

Analyzer:SonarQube...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more