Updated

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.07
    GPT-5.6 Sol0.66

    Claude 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.

    Source: Claude Opus 5.5 bug rateLink to this statistic

  • Which AI model writes the fewest bugs?

    GPT-5.6 SolStatistically tied with 1 other

    GPT-5.6 Sol0.66
    Claude Fable 5.20.76

    GPT-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.

    Source: GPT-5.6 Sol bug rateLink to this statistic

  • 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.14
    Claude Sonnet 5.51.07

    Claude 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.

    Source: Claude Opus 5 bug rateLink to this statistic

  • 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.66
    Claude Opus 51.14

    GPT-5.6 Sol had 42% fewer counted bugs per line than Claude Opus 5 (0.66 vs 1.14).

    Source: GPT-5.6 Sol vs Claude Opus 5Link to this statistic

  • 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).

    Source: Weekly bug rate trendsLink to this statistic

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.75
    Claude Fable 5.10.84

    Claude 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.

    Source: Best AI model for Claude CodeLink to this statistic

  • Which AI model writes the fewest bugs in Codex?

    GPT-5.6 SolStatistically tied with 1 other

    GPT-5.6 Sol0.63
    GPT-6.1 Sol0.72

    GPT-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.

    Source: Best AI model for CodexLink to this statistic

  • Which AI model writes the fewest bugs in Cursor?

    Claude Opus 5Statistically tied with 1 other

    Claude Opus 51.24
    GPT-5.6 Sol1.40

    Claude 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.

    Source: Best AI model for CursorLink to this statistic

  • Which AI model writes the fewest bugs in Pi?

    GPT-6.1 SolStatistically tied with 1 other

    GPT-6.1 Sol1.17
    GPT-5.6 Sol1.25

    GPT-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.

    Source: Best AI model for PiLink to this statistic

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%.

    Source: Adoption on the leaderboardLink to this statistic

  • Which AI model gained the most share?

    Claude Opus 5.5

    65.6%of AI-written code, first seen in the week of Sep 21, 2026

    Claude Opus 5.5, first seen in the week of Sep 21, 2026, wrote 65.6% of the AI-written code reviewed by cubic in the week of Nov 9, 2026, the largest gain of any model since the week of Jul 27, 2026.

    Source: How widely Claude Opus 5.5 is usedLink to this statistic

  • Which AI model lost the most share?

    Claude Opus 5

    1.1%of AI-written code, down from 30.3% in the week of Jul 27, 2026

    Claude Opus 5's share of the AI-written code reviewed by cubic fell from 30.3% in the week of Jul 27, 2026 to 1.1% in the week of Nov 9, 2026, the largest drop of any model.

    Source: How widely Claude Opus 5 is usedLink to this statistic

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.60
    GPT-5.6 Sol0.70

    Claude 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.37
    GPT-6.1 Sol0.48
    GPT-5.6 Sol0.87

    Claude 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.

    Source: Best AI model for Python codeLink to this statistic

  • Which AI model writes the fewest bugs in Go?

    Claude Sonnet 5.5Statistically tied with 1 other

    Claude Sonnet 5.50.47
    GPT-5.6 Sol0.69

    Claude 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.

    Source: Best AI model for Go codeLink to this statistic

  • Which AI model writes the fewest bugs in Rust?

    GPT-6 AstraStatistically tied with 1 other

    GPT-6 Astra0.37
    GPT-6.1 Sol0.39

    GPT-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.

    Source: Best AI model for Rust codeLink to this statistic

  • Which AI model writes the fewest bugs in SQL?

    GPT-6.1 SolStatistically tied with 2 others

    GPT-6.1 Sol0.33
    GPT-5.6 Sol0.33
    Claude Sonnet 5.50.39

    GPT-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.

    Source: Best AI model for SQL codeLink to this statistic

  • Which AI model writes the fewest bugs in Shell?

    GPT-5.6 SolStatistically tied with 2 others

    GPT-5.6 Sol0.59
    GPT-6 Astra0.62
    Claude Fable 5.10.65

    GPT-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.

    Source: Best AI model for Shell codeLink to this statistic

  • 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.

    Source: Best AI model for Swift codeLink to this statistic

  • Which AI model writes the fewest bugs in Ruby?

    Claude Fable 5.1Statistically tied with 1 other

    Claude Fable 5.10.42
    Claude Sonnet 5.50.85

    Claude 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.

    Source: Best AI model for Ruby codeLink to this statistic

  • Which AI model writes the fewest bugs in Vue?

    Claude Fable 5.1Statistically tied with 1 other

    Claude Fable 5.10.37
    GPT-6 Astra0.65

    Claude 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.

    Source: Best AI model for Vue codeLink to this statistic

  • Which AI model writes the fewest bugs in Svelte?

    Claude Fable 5.1Statistically tied with 2 others

    Claude Fable 5.10.15
    GPT-5.6 Sol0.50
    Claude Opus 5.50.58

    Claude 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.

    Source: Best AI model for Svelte codeLink to this statistic

  • Which AI model writes the fewest bugs in Terraform?

    GPT-6 AstraStatistically tied with 2 others

    GPT-6 Astra0.34
    GPT-5.6 Sol0.45
    Claude Fable 5.10.79

    GPT-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.25
    GPT-5.6 Sol0.39

    GPT-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.

    Source: Best AI model for C# codeLink to this statistic

  • Which AI model writes the fewest bugs in PHP?

    Claude Opus 5Statistically tied with 1 other

    Claude Opus 50.63
    Claude Opus 5.50.78

    Claude 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.

    Source: Best AI model for PHP codeLink to this statistic

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.