Updated

AI coding statistics

Answers about AI-written code from the pull requests cubic reviewed Jul 20 to Nov 8, 2026, refreshed every day. How we measure

Key statistics

  • What is the most used AI model for coding right now?

    Claude Opus 5.5

    66.2%of AI-written code cubic reviewed in the week of Nov 2, 2026

    Claude Opus 5.5 wrote 66.2% of the AI-written code reviewed by cubic in the week of Nov 2, 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 7 ranked models

    1.1111% more bugs per line than average

    Claude Opus 5.51.11
    GPT-6 Luna0.31

    Claude Opus 5.5, the most used AI model (66.2% of the AI-written code reviewed by cubic in the week of Nov 2, 2026), ranks #6 of 7 on Bug Bench with a relative bug rate of 1.11; GPT-6 Luna has the lowest (0.31).

    Source: Claude Opus 5.5 bug rateLink to this statistic

  • Which AI model writes the fewest bugs?

    GPT-6 Luna

    0.3169% fewer bugs per line than average

    GPT-6 Luna had the lowest relative bug rate on Bug Bench (0.31, 69% fewer counted bugs than average), among 7 ranked AI coding models.

    Source: GPT-6 Luna bug rateLink to this statistic

  • What is the most used AI coding agent?

    Claude Code

    79.4%of AI-written code cubic reviewed in the week of Nov 2, 2026

    Claude Code wrote 79.4% of the AI-written code reviewed by cubic in the week of Nov 2, 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?

    Grok 4.7

    1.6161% more bugs per line than average

    Grok 4.7 had the highest relative bug rate on Bug Bench (1.61, 61% more counted bugs than average), among 7 ranked AI coding models.

    Source: Grok 4.7 bug rateLink to this statistic

  • How big is the gap between the best and worst AI model?

    81% fewer bugs per line

    0.31 vs 1.61GPT-6 Luna vs Grok 4.7

    GPT-6 Luna0.31
    Grok 4.71.61

    GPT-6 Luna had 81% fewer counted bugs per line than Grok 4.7 (0.31 vs 1.61).

    Source: GPT-6 Luna vs Grok 4.7Link 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.1

    0.8812% fewer bugs per line than average

    Claude Fable 5.1 had the lowest relative bug rate in Claude Code (0.88, 12% fewer counted bugs than the all-model average), among 3 ranked models.

    Source: Best AI model for Claude CodeLink to this statistic

  • Which AI model writes the fewest bugs in Codex?

    GPT-6 Luna

    0.3169% fewer bugs per line than average

    GPT-6 Luna had the lowest relative bug rate in Codex (0.31, 69% fewer counted bugs than the all-model average), among 3 ranked models.

    Source: Best AI model for CodexLink to this statistic

  • Which AI model writes the fewest bugs in Cursor?

    Grok 4.7

    1.5959% more bugs per line than average

    Grok 4.7 had the lowest relative bug rate in Cursor (1.59, 59% more counted bugs than the all-model average), among 2 ranked models.

    Source: Best AI model for CursorLink to this statistic

Adoption

Share of AI-written code reviewed by cubic

  • Which AI company has the largest share of AI-written code?

    Anthropic

    73.4%of AI-written code cubic reviewed in the week of Nov 2, 2026, by its models on Bug Bench

    Anthropic's models on Bug Bench wrote 73.4% of the AI-written code reviewed by cubic in the week of Nov 2, 2026, more than any other company's models, and OpenAI's models wrote 15.4%.

    Source: Adoption on the leaderboardLink to this statistic

  • Which AI model gained the most share?

    Claude Opus 5.5

    66.2%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 66.2% of the AI-written code reviewed by cubic in the week of Nov 2, 2026, the largest gain of any model since the week of Jul 20, 2026.

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

  • Which AI model lost the most share?

    GPT-5.6 Sol

    0.3%of AI-written code, down from 33.8% in the week of Jul 20, 2026

    GPT-5.6 Sol's share of the AI-written code reviewed by cubic fell from 33.8% in the week of Jul 20, 2026 to 0.3% in the week of Nov 2, 2026, the largest drop of any model.

    Source: How widely GPT-5.6 Sol is usedLink to this statistic

Languages

Compared with the average in each language

  • Which AI model writes the fewest bugs in TypeScript?

    GPT-6 Luna

    0.4654% fewer bugs per line than the TypeScript average

    GPT-6 Luna had the lowest relative bug rate in TypeScript code (0.46, 54% fewer counted bugs than the TypeScript average), among 7 ranked models.

    Source: Best AI model for TypeScript codeLink to this statistic

  • Which AI model writes the fewest bugs in Python?

    GPT-6 Luna

    0.2674% fewer bugs per line than the Python average

    GPT-6 Luna had the lowest relative bug rate in Python code (0.26, 74% fewer counted bugs than the Python average), among 7 ranked models.

    Source: Best AI model for Python codeLink to this statistic

  • Which AI model writes the fewest bugs in JavaScript?

    GPT-6.1 SolStatistically tied with 1 other

    GPT-6.1 Sol0.55
    GPT-6 Luna0.87

    GPT-6.1 Sol had the lowest relative bug rate in JavaScript code (0.55, 45% fewer counted bugs than the JavaScript average), statistically tied with GPT-6 Luna, among 6 ranked models.

    Source: Best AI model for JavaScript codeLink to this statistic

  • Which AI model writes the fewest bugs in SQL?

    GPT-6 LunaStatistically tied with 2 others

    GPT-6 Luna0.00
    Claude Sonnet 5.50.12
    GPT-6.1 Sol0.35

    GPT-6 Luna had the lowest relative bug rate in SQL code (0.00, 100% fewer counted bugs than the SQL average), statistically tied with Claude Sonnet 5.5 and GPT-6.1 Sol, among 6 ranked models.

    Source: Best AI model for SQL codeLink to this statistic

  • Which AI model writes the fewest bugs in Go?

    Claude Sonnet 5.5

    0.2278% fewer bugs per line than the Go average

    Claude Sonnet 5.5 had the lowest relative bug rate in Go code (0.22, 78% fewer counted bugs than the Go average), among 5 ranked models.

    Source: Best AI model for Go codeLink to this statistic

  • Which AI model writes the fewest bugs in Shell?

    GPT-6 AstraStatistically tied with 3 others

    GPT-6 Astra0.67
    Claude Fable 5.10.69
    Claude Opus 5.51.01
    GPT-6.1 Sol1.65

    GPT-6 Astra had the lowest relative bug rate in Shell code (0.67, 33% fewer counted bugs than the Shell average), statistically tied with Claude Fable 5.1, Claude Opus 5.5, and GPT-6.1 Sol, among 5 ranked models.

    Source: Best AI model for Shell codeLink to this statistic

  • Which AI model writes the fewest bugs in Rust?

    GPT-6.1 SolStatistically tied with 1 other

    GPT-6.1 Sol0.33
    GPT-6 Astra0.36

    GPT-6.1 Sol had the lowest relative bug rate in Rust code (0.33, 67% fewer counted bugs than the Rust average), statistically tied with GPT-6 Astra, among 4 ranked models.

    Source: Best AI model for Rust codeLink to this statistic

  • Which AI model writes the fewest bugs in Swift?

    GPT-6.1 Sol

    0.0595% fewer bugs per line than the Swift average

    GPT-6.1 Sol had the lowest relative bug rate in Swift code (0.05, 95% fewer counted bugs than the Swift average), among 4 ranked models.

    Source: Best AI model for Swift 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.27
    GPT-6 Astra0.60

    GPT-6.1 Sol had the lowest relative bug rate in C# code (0.27, 73% fewer counted bugs than the C# average), statistically tied with GPT-6 Astra, among 3 ranked models.

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

  • Which AI model writes the fewest bugs in Ruby?

    Claude Fable 5.1

    0.4159% fewer bugs per line than the Ruby average

    Claude Fable 5.1 had the lowest relative bug rate in Ruby code (0.41, 59% fewer counted bugs than the Ruby average), among 3 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.40
    GPT-6 Astra0.69

    Claude Fable 5.1 had the lowest relative bug rate in Vue code (0.40, 60% fewer counted bugs than the Vue average), statistically tied with GPT-6 Astra, among 3 ranked models.

    Source: Best AI model for Vue codeLink to this statistic

  • Which AI model writes the fewest bugs in Terraform?

    GPT-6 AstraStatistically tied with 1 other

    GPT-6 Astra0.44
    Claude Fable 5.10.82

    GPT-6 Astra had the lowest relative bug rate in Terraform code (0.44, 56% fewer counted bugs than the Terraform average), statistically tied with Claude Fable 5.1, among 3 ranked models.

    Source: Best AI model for Terraform 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 20 to Nov 8, 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.