Anthropic Reveals Advantage of AI Agents in Detecting Logical Errors in Software Code

On December 2, 2026, Anthropic published a study on the effectiveness of artificial intelligence in detecting logical errors in software. According to the experimental results, the self-analysis of program code by AI agents proved more effective than several specialized automated testing methods.
Logical errors occur when a program does not operate as intended by the developers. They do not necessarily cause crashes or data corruption, making them difficult to detect with standard tools.
Anthropic compared four error detection methods
For the study, specialists selected 21 previously discovered and subsequently corrected errors in the SQLite, zstd, brotli, and image-png projects from 2016 to 2026.
Claude Mythos 5 was given access to the program source code before corrections were made. Testing was conducted both without additional prompts and with information on the violated program rules provided.
Method | Without prompts | With prompts |
Agent code analysis | 11 | 20 |
Informal correctness proof | 8 | 21 |
Symbolic execution | 0 | 13 |
Fuzzing | 0 | 1 |
Researchers estimate that the advantage of the agent approach lies in the AI's ability to independently analyze the purpose of program code, form hypotheses about potential errors, and select appropriate verification tools.
New generations of Claude show higher effectiveness
Anthropic also compared the capabilities of several generations of its language models. Claude Sonnet 4.5 rediscovered one error from the main sample, Claude Opus 4.5 found five, and Claude Mythos 5.2 identified fifteen.
Beyond the main sample, Mythos 5.2 identified an additional 241 errors, including 216 logical ones. In total, during experiments using various models and methods, researchers discovered 316 unique additional errors in earlier versions of the software.
Of these, 189 are already fixed or known to developers. Information about the remaining 127 is in the process of being passed on to the specialists responsible for project maintenance.
The study also reveals previously discovered issues in the Caliptra security hardware platform, macOS operating system, Rust compiler, and eBPF technology.
Previously, Anthropic launched a free vulnerability scanner for open-source software, providing developers with access to automated security checks.
The results demonstrate the expanding capabilities of AI in software analysis. However, experiments showed that providing additional information by specialists enhances the effectiveness of models, and verifying detected errors and preparing fixes still require developer involvement.
This material is prepared solely for informational purposes and does not constitute financial advice or a recommendation.





Comments