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

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
…