BenchLeader

Best models for coding agents

An agent works for minutes at a time without anyone watching, so the wait before the first token is close to irrelevant. What decides it is whether the model writes code that passes, drives tools without losing the thread, and holds a large repository in context — and what that costs over a long session, since an agent burns tokens at a rate a chat never does.

As of 29 Nov 2026, Muse Wonder Full at max effort fits this best, with coding of 69 and tool use of 61.

Ranked on one measure instead: Best LLM for coding (November 2026) · Best LLM for agents (November 2026)

How this is weighted

  • 35%Codingthe work is writing code that actually runs
  • 30%Tool usean agent spends most of its turns calling tools and reading what came back, not composing prose
  • 20%Long contexta real repository does not fit in a small window, and attention that degrades over length shows up as forgotten decisions
  • 15%Price per 1Msessions run long, so a price difference that is invisible in a chat is the whole budget here

264 of 366 ranked models qualify: the rest either miss one of the measurements the weighting depends on, or fall outside a limit above. We would rather leave a model out than score it on the dimensions it happens to have.

Benchmark scores above are pooled across a model’s reasoning-effort settings, weighted by how many benchmarks each rests on. Publishers rarely run the same board at every setting, so a single setting’s category score often comes from one result — and one result moves too much to decide an order. Latency and price stay per-setting, because those genuinely differ.

#ModelFitCodingTool useLong contextPrice per 1MContext windowOpenRouter share
1Muse Wonder FullmaxMeta89696167–1M–
2Muse SparkMeta87656764–262k–
3Gemini 4 CarbonhighGoogle857067–$4.001.0M0.54%
4Claude Fable 5.2maxAnthropic83738066$16.001M0.32%
5Gemini 4 NeonxhighGoogle836974–$6.001.0M1.0%
6Qwen3.8-Flash-NextAlibaba82606465$0.230262k–
7MiMo-V2-OmniXiaomi81626561–256k–
8Claude Opus 5.5maxAnthropic81686466$8.001M2.6%
9Qwen3.6 MaxAlibaba81567265–256k–
10GPT-6.2 AstramaxOpenAI807366–$16.001.1M0.23%
11GPT-6.2 SolmaxOpenAI807063–$4.001.1M0.57%
12GPT-6.1 SolmaxOpenAI80646366$4.001.1M0.77%
13Claude Fable 5.1Anthropic79666567$20.001M0.03%
14Gemini 4 HydrogenxhighGoogle796166–$3.001.0M0.22%
15Claude Fable 5maxAnthropic79716366$20.001M<0.01%
16Qwen3.8 MaxAlibaba79646564$3.001M–
17GPT-6 AstraOpenAI78696665$20.001.1M0.06%
18Kimi K3.1 PromaxMoonshot AI78646068$4.001.0M1.9%
19Qwen4 MaxxhighAlibaba776561–$2.251M0.16%
20Gemini 4 ArgonhighGoogle77636464$4.001.0M0.27%
21GPT-6.1 TerramaxOpenAI76626264$2.001.1M0.42%
22GPT-5.6 SolmaxOpenAI76666564$8.001.1M0.05%
23Grok 4.6highSpaceXAI76596465$3.00500k0.02%
24Claude Opus 5maxAnthropic75656365$10.001M0.06%
25Hy4Tencent756358–$1.251.0M0.60%
26Inkling 2 SmallThinking Machines75595566$0.4751.0M0.28%
27Claude Sonnet 5.5maxAnthropic74616464$4.001M1.1%
28Muse Spark 1.3maxMeta74605866$2.001.0M0.03%
29o3OpenAI73576271$3.50200k<0.01%
30Qwen3.8 Max 0902Alibaba73596065$3.001M0.02%
31GPT-6 SolmaxOpenAI72616164$4.001.1M0.07%
32Muse WondermaxMeta72616165$8.001.0M0.04%
33Grok 4SpaceXAI71595968$6.00256k–
34Gemini 3.7 FlashhighGoogle71625365$1.501.0M0.10%
35MiMo-V2.6-ProXiaomi71585168$0.5441.0M0.30%
36Step 3.5 FlashStepFun70586256$0.157256k–
37DeepSeek V4 FlashmaxDeepSeek70545865$0.1751.0M1.1%
38Claude Opus 4.5highAnthropic70596762$10.00200k0.02%
39Muse EmbermaxMeta695656–$0.2001.0M0.41%
40Ling 3.0 FlashAnt Group69615061$0.111262k0.05%

How to read this

Fit is a percentile blend, not a score out of a hundred: each dimension is ranked against every other model that could be judged here, then combined with the weights above. It says how well a model matches this job compared with the alternatives — a model can fit voice work superbly and sit well down the quality leaderboard, which is the point of ranking by job rather than by index.

The last column is not part of the fit score. It is the share of a week’s tokens that went to each model on OpenRouter, which is what people chose rather than what measured well — often a different answer. Read it as one marketplace’s slice: traffic sent straight to a maker’s own API never appears, and a model you run on your own hardware never appears at all, so a small share is not evidence that nobody uses it.

Disagree with the weighting? That is a reasonable thing to do, which is why it is printed rather than hidden. To set your own constraints instead, use the model finder.

Cite as: BenchLeader, “Best models for coding agents”, data as of 29 Nov 2026, https://www.benchleader.com/use/coding-agents.