Updated

Claude Opus 5 vs Grok 4.7

Claude Opus 5 had 32% fewer counted bugs per line than Grok 4.7 (1.21 vs 1.79).

Claude Opus 5 and Grok 4.7 compared on relative bug rate, by coding agent and language, and on price and usage.
Claude Opus 5Grok 4.7
Bug rate
Relative bug rate1.211.79
Rank#7 of 8#8 of 8
By coding agent
Cursor1.221.77
By language
TypeScript1.151.75
Python(statistically tied)1.171.54
Details
ProviderAnthropicxAI
ReleasedJul 24, 2026Sep 21, 2026
List price$5 input / $25 output per 1M tokens$2 input / $6 output per 1M tokens
Share of AI-written code, week of Oct 260.8%1.1%

1.00 = average · lower is better · = statistically tied

More comparisons

Questions and answers

Which has fewer bugs, Claude Opus 5 or Grok 4.7?
Claude Opus 5 had 32% fewer counted bugs per line than Grok 4.7 (1.21 vs 1.79). Claude Opus 5 ranks #7 of 8 and Grok 4.7 #8.
Which is cheaper, Claude Opus 5 or Grok 4.7?
Claude Opus 5 lists at $5 input / $25 output per 1M tokens; Grok 4.7 lists at $2 input / $6 output per 1M tokens. Grok 4.7 has the lower list price.
Does it depend on the programming language?
In TypeScript, Claude Opus 5 had the lower rate (1.15 vs 1.75); in Python, they were statistically tied (1.17 and 1.54).
Which is used more, Claude Opus 5 or Grok 4.7?
Grok 4.7, with 1.1% of the AI-written code reviewed by cubic in the week of Oct 26, 2026, against 0.8% for Claude Opus 5.