Skip to content
benchtopia
  • Fetching the field guide…

Code · Best AI for

Editing existing code

Changing code that already exists, exactly as asked, in many programming languages, without breaking the rest.

Answer: Gemini 4 Carbon (Google)

Top 13 for editing existing code

Score = share of today's AI models it beats on this job's tests (100 = best of all).

  1. 1Gemini 4 CarbonGoogle · 1 test91
  2. 2Gemini 4 NeonGoogle · 2 tests89
  3. 3Gemini 4 HydrogenGoogle · 1 test82
  4. 4Claude Opus 5.5Anthropic · 2 tests76
  5. 5Claude Fable 5.2Anthropic · 1 test73
  6. 6Claude Sonnet 5.5Anthropic · 2 tests66
  7. 7Gemini 4 ArgonGoogle · 2 tests58
  8. 8Claude Haiku 5.5Anthropic · 2 tests51
  9. 9GPT-5OpenAI · 2 tests45
  10. 10Grok 4.7xAI · 2 tests45
  11. 11Muse Spark 1.3Meta · 2 tests28
  12. 12Grok 4.6xAI · 2 tests26
  13. 13GPT-5.6 SolOpenAI · 2 tests2

Best on a budget

Under $1 per million tokens

Claude Haiku 5.5

Score 51 · $0.2 per 1M tokens

Tests used for this ranking

Weight = how much each test counts.

CursorBenchHow well does it help real coders inside the Cursor code editor?weight 1
MirrorCodeCan it rebuild a whole program just by watching what it does?weight 0.6
Aider polyglotCan it solve tricky coding exercises in six different languages?weight 0.5

Quick answers

Which AI is best at editing code?

Right now it's Gemini 4 Carbon from Google: it beats 91% of current models on the 1 test that measure editing existing code. Gemini 4 Neon is next.

What's the best cheap AI for editing existing code?

Claude Haiku 5.5: under $1 per million tokens, with a score of 51.

See the details →
How is the best AI for editing existing code decided?

From 3 tests (CursorBench, MirrorCode, Aider polyglot). On each test we check what share of current models a model beats, then average, giving fresher and harder tests more weight.

How scores work →

Related jobs