AI coding statistics
Answers about AI-written code from the pull requests cubic reviewed Jul 27 to Nov 15, 2026, refreshed every day. How we measure
Key statistics
What is the most used AI model for coding right now?
Claude Opus 5.5
65.6%of AI-written code cubic reviewed in the week of Nov 9, 2026
Claude Opus 5.5 wrote 65.6% of the AI-written code reviewed by cubic in the week of Nov 9, 2026, more than any other model.
Source: How widely Claude Opus 5.5 is usedLink to this statistic
Does the most used AI model write the fewest bugs?
NoClaude Opus 5.5 has the 2nd highest bug rate of 8 ranked models
1.077% more bugs per line than average
Claude Opus 5.51.07GPT-5.6 Sol0.66Claude Opus 5.5, the most used AI model (65.6% of the AI-written code reviewed by cubic in the week of Nov 9, 2026), ranks #7 of 8 on Bug Bench with a relative bug rate of 1.07; GPT-5.6 Sol has the lowest (0.66), statistically tied with Claude Fable 5.2.
Which AI model writes the fewest bugs?
GPT-5.6 SolStatistically tied with 1 other
GPT-5.6 Sol0.66Claude Fable 5.20.76GPT-5.6 Sol had the lowest relative bug rate on Bug Bench (0.66, 34% fewer counted bugs than average), statistically tied with Claude Fable 5.2, among 8 ranked AI coding models.
What is the most used AI coding agent?
Claude Code
85.9%of AI-written code cubic reviewed in the week of Nov 9, 2026
Claude Code wrote 85.9% of the AI-written code reviewed by cubic in the week of Nov 9, 2026, more than any other coding agent.
Source: How widely Claude Code is usedLink to this statistic
Models
Bug rate: 1.00 is average, lower is better
Which AI model writes the most bugs?
Claude Opus 5Statistically tied with 1 other
Claude Opus 51.14Claude Sonnet 5.51.07Claude Opus 5 had the highest relative bug rate on Bug Bench (1.14, 14% more counted bugs than average), statistically tied with Claude Sonnet 5.5, among 8 ranked AI coding models.
How big is the gap between the best and worst AI model?
42% fewer bugs per line
0.66 vs 1.14GPT-5.6 Sol vs Claude Opus 5
GPT-5.6 Sol0.66Claude Opus 51.14GPT-5.6 Sol had 42% fewer counted bugs per line than Claude Opus 5 (0.66 vs 1.14).
Do newer AI models write fewer bugs than the ones before them?
Not always
1 of 3 newer models writes fewer bugs per line than the model before it
Of the 3 AI models ranked alongside the model before them in their family, 1 has a lower relative bug rate: Claude Opus 5.5 (1.07 vs 1.14 for Claude Opus 5); 1 has a higher relative bug rate: GPT-6.1 Sol (0.74 vs 0.66 for GPT-5.6 Sol); 1 shows no clear change: Claude Fable 5.2 (0.76 vs 0.84 for Claude Fable 5.1).
Source: Claude Opus 5.5 vs Claude Opus 5Link to this statistic
Is any AI model getting worse?
Yes
3 of the 7 models with a weekly trend have rising bug rates
Of the 7 AI coding models with a weekly trend, 3 have rising bug rates: GPT-5.6 Sol (+0.85), Claude Sonnet 5.5 (+0.58), and GPT-6 Astra (+0.16).
Coding agents
Compared with the average across all models
Which AI model writes the fewest bugs in Claude Code?
Claude Fable 5.2Statistically tied with 1 other
Claude Fable 5.20.75Claude Fable 5.10.84Claude Fable 5.2 had the lowest relative bug rate in Claude Code (0.75, 25% fewer counted bugs than the all-model average), statistically tied with Claude Fable 5.1, among 5 ranked models.
Which AI model writes the fewest bugs in Codex?
GPT-5.6 SolStatistically tied with 1 other
GPT-5.6 Sol0.63GPT-6.1 Sol0.72GPT-5.6 Sol had the lowest relative bug rate in Codex (0.63, 37% fewer counted bugs than the all-model average), statistically tied with GPT-6.1 Sol, among 3 ranked models.
Which AI model writes the fewest bugs in Cursor?
Claude Opus 5Statistically tied with 1 other
Claude Opus 51.24GPT-5.6 Sol1.40Claude Opus 5 had the lowest relative bug rate in Cursor (1.24, 24% more counted bugs than the all-model average), statistically tied with GPT-5.6 Sol, among 3 ranked models.
Which AI model writes the fewest bugs in Pi?
GPT-6.1 SolStatistically tied with 1 other
GPT-6.1 Sol1.17GPT-5.6 Sol1.25GPT-6.1 Sol had the lowest relative bug rate in Pi (1.17, 17% more counted bugs than the all-model average), statistically tied with GPT-5.6 Sol, among 2 ranked models.
Adoption
Share of AI-written code reviewed by cubic
Which AI company has the largest share of AI-written code?
Anthropic
80.2%of AI-written code cubic reviewed in the week of Nov 9, 2026, by its models on Bug Bench
Anthropic's models on Bug Bench wrote 80.2% of the AI-written code reviewed by cubic in the week of Nov 9, 2026, more than any other company's models, and OpenAI's models wrote 10.8%.
Languages
Compared with the average in each language
Which AI model writes the fewest bugs in TypeScript?
Claude Fable 5.2Statistically tied with 1 other
Claude Fable 5.20.60GPT-5.6 Sol0.70Claude Fable 5.2 had the lowest relative bug rate in TypeScript code (0.60, 40% fewer counted bugs than the TypeScript average), statistically tied with GPT-5.6 Sol, among 8 ranked models.
Source: Best AI model for TypeScript codeLink to this statistic
Which AI model writes the fewest bugs in JavaScript?
Claude Fable 5.2Statistically tied with 2 others
Claude Fable 5.20.37GPT-6.1 Sol0.48GPT-5.6 Sol0.87Claude Fable 5.2 had the lowest relative bug rate in JavaScript code (0.37, 63% fewer counted bugs than the JavaScript average), statistically tied with GPT-6.1 Sol and GPT-5.6 Sol, among 8 ranked models.
Source: Best AI model for JavaScript codeLink to this statistic
Which AI model writes the fewest bugs in Python?
GPT-6.1 Sol
0.5446% fewer bugs per line than the Python average
GPT-6.1 Sol had the lowest relative bug rate in Python code (0.54, 46% fewer counted bugs than the Python average), among 8 ranked models.
Which AI model writes the fewest bugs in Go?
Claude Sonnet 5.5Statistically tied with 1 other
Claude Sonnet 5.50.47GPT-5.6 Sol0.69Claude Sonnet 5.5 had the lowest relative bug rate in Go code (0.47, 53% fewer counted bugs than the Go average), statistically tied with GPT-5.6 Sol, among 7 ranked models.
Which AI model writes the fewest bugs in Rust?
GPT-6 AstraStatistically tied with 1 other
GPT-6 Astra0.37GPT-6.1 Sol0.39GPT-6 Astra had the lowest relative bug rate in Rust code (0.37, 63% fewer counted bugs than the Rust average), statistically tied with GPT-6.1 Sol, among 7 ranked models.
Which AI model writes the fewest bugs in SQL?
GPT-6.1 SolStatistically tied with 2 others
GPT-6.1 Sol0.33GPT-5.6 Sol0.33Claude Sonnet 5.50.39GPT-6.1 Sol had the lowest relative bug rate in SQL code (0.33, 67% fewer counted bugs than the SQL average), statistically tied with GPT-5.6 Sol and Claude Sonnet 5.5, among 7 ranked models.
Which AI model writes the fewest bugs in Shell?
GPT-5.6 SolStatistically tied with 2 others
GPT-5.6 Sol0.59GPT-6 Astra0.62Claude Fable 5.10.65GPT-5.6 Sol had the lowest relative bug rate in Shell code (0.59, 41% fewer counted bugs than the Shell average), statistically tied with GPT-6 Astra and Claude Fable 5.1, among 7 ranked models.
Which AI model writes the fewest bugs in Swift?
GPT-6.1 Sol
0.0496% fewer bugs per line than the Swift average
GPT-6.1 Sol had the lowest relative bug rate in Swift code (0.04, 96% fewer counted bugs than the Swift average), among 6 ranked models.
Which AI model writes the fewest bugs in Ruby?
Claude Fable 5.1Statistically tied with 1 other
Claude Fable 5.10.42Claude Sonnet 5.50.85Claude Fable 5.1 had the lowest relative bug rate in Ruby code (0.42, 58% fewer counted bugs than the Ruby average), statistically tied with Claude Sonnet 5.5, among 6 ranked models.
Which AI model writes the fewest bugs in Vue?
Claude Fable 5.1Statistically tied with 1 other
Claude Fable 5.10.37GPT-6 Astra0.65Claude Fable 5.1 had the lowest relative bug rate in Vue code (0.37, 63% fewer counted bugs than the Vue average), statistically tied with GPT-6 Astra, among 5 ranked models.
Which AI model writes the fewest bugs in Svelte?
Claude Fable 5.1Statistically tied with 2 others
Claude Fable 5.10.15GPT-5.6 Sol0.50Claude Opus 5.50.58Claude Fable 5.1 had the lowest relative bug rate in Svelte code (0.15, 85% fewer counted bugs than the Svelte average), statistically tied with GPT-5.6 Sol and Claude Opus 5.5, among 5 ranked models.
Which AI model writes the fewest bugs in Terraform?
GPT-6 AstraStatistically tied with 2 others
GPT-6 Astra0.34GPT-5.6 Sol0.45Claude Fable 5.10.79GPT-6 Astra had the lowest relative bug rate in Terraform code (0.34, 66% fewer counted bugs than the Terraform average), statistically tied with GPT-5.6 Sol and Claude Fable 5.1, among 5 ranked models.
Source: Best AI model for Terraform codeLink to this statistic
Which AI model writes the fewest bugs in C#?
GPT-6.1 SolStatistically tied with 1 other
GPT-6.1 Sol0.25GPT-5.6 Sol0.39GPT-6.1 Sol had the lowest relative bug rate in C# code (0.25, 75% fewer counted bugs than the C# average), statistically tied with GPT-5.6 Sol, among 4 ranked models.
Which AI model writes the fewest bugs in PHP?
Claude Opus 5Statistically tied with 1 other
Claude Opus 50.63Claude Opus 5.50.78Claude Opus 5 had the lowest relative bug rate in PHP code (0.63, 37% fewer counted bugs than the PHP average), statistically tied with Claude Opus 5.5, among 3 ranked models.
How to read these numbers
Every answer covers only code written by AI models and coding agents, in pull requests cubic reviewed Jul 27 to Nov 15, 2026. Read the methodology.
- Relative bug rate
- Counted bugs per line in a model's code, compared with an average. For models and coding agents that is all AI-written code; for a language or a kind of bug it is the average for that language or kind of bug. 1.00 is average: 0.80 means 20% fewer bugs per line, and 1.50 means 50% more.
- Counted bugs
- Findings from cubic code review on AI-written code that a developer upvoted or an AI coding agent addressed.
- Statistically tied
- Rates too close to call with the data so far, so neither model is clearly ahead.
For cubic's wider findings on AI coding, read the State of AI coding 2026 report.