Code · Best AI for
Writing code
Building and changing real software: new features, whole programs and big projects, not just one-line answers.
Answer: GPT-6 Astra (OpenAI)

Top 15 for writing code
Score = share of today's AI models it beats on this job's tests (100 = best of all).
- 1GPT-6 AstraOpenAI · 4 tests91
- 2Gemini 4 NeonGoogle · 3 tests89
- 3Claude Opus 5.5Anthropic · 4 tests87
- 4Claude Opus 5Anthropic · 4 tests86
- 5Claude Fable 5.1Anthropic · 3 tests86
- 6Claude Fable 5Anthropic · 4 tests82
- 7Claude Sonnet 5.5Anthropic · 4 tests80
- 8Gemini 4 ArgonGoogle · 4 tests68
- 9Claude Opus 4.8Anthropic · 3 tests65
- 10GPT-5.5OpenAI · 5 tests61
- 11Claude Opus 4.7Anthropic · 4 tests59
- 12Claude Haiku 5.5Anthropic · 4 tests59
- 13Kimi K3Moonshot AI (Kimi) · 4 tests59
- 14GPT-5.6 TerraOpenAI · 3 tests58
- 15Claude Opus 4.6Anthropic · 5 tests57
Best on a budget
Under $1 per million tokens
Score 59 · $0.2 per 1M tokens
Best free to download
Open weights
Score 59 · Moonshot AI (Kimi)
Tests used for this ranking
Weight = how much each test counts.
| FrontierCodeWould a project's real owner actually accept the AI's code? | weight 1 |
| FrontierSWECan it finish huge engineering projects that take most of a day? | weight 0.9 |
| DeepSWECan it build big new features in code nobody has solved online? | weight 0.9 |
| CursorBenchHow well does it help real coders inside the Cursor code editor? | weight 0.8 |
| SWE-bench MultilingualCan it fix real bugs in projects written in many coding languages? | weight 0.7 |
| MirrorCodeCan it rebuild a whole program just by watching what it does? | weight 0.6 |
| Terminal-BenchCan it get real jobs done by typing commands in a terminal? | weight 0.5 |
| SWE-bench VerifiedCan it fix real bugs in real Python projects? | weight 0.3 |
| Aider polyglotCan it solve tricky coding exercises in six different languages? | weight 0.3 |
| LiveBenchCan it pass a test with fresh questions it can't have memorized? | weight 0.15 |
Quick answers
Which AI is best for writing code?
Right now it's GPT-6 Astra from OpenAI: it beats 91% of current models on the 4 tests that measure writing code. Gemini 4 Neon is next.
What's the best cheap AI for writing code?
Claude Haiku 5.5: under $1 per million tokens, with a score of 59.
See the details →What's the best open-source AI for writing code?
Kimi K3, with a score of 59.
See the details →How is the best AI for writing code decided?
From 10 tests (FrontierCode, FrontierSWE, DeepSWE, CursorBench…). 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 →