Home / Guides / Models by scenario
Guides

Best model for coding: two boards, two winners, and the security-work line

The best AI model for coding depends on the task: LMArena's WebDev voters and LiveBench's agentic coding suite crown different models in November 2026 — the cited tables, speed figures, security-work line and cheapest plan for each pick.

Only some of this page has been checked. Treat the rest as unconfirmed. Status: Partially verified.

Takeaway

There is no single coding winner in November 2026; there are two, and they win different tests. Human voters on LMArena’s WebDev board put Anthropic’s Claude Fable 5.2 and Opus 5.5 in a shared top rank band (rank spread 1–2; their 95% confidence intervals overlap, so a bare #1 overstates the vote). LiveBench’s agentic coding suite — models fixing real merged-PR bugs in a frozen monorepo — puts OpenAI’s GPT-6.2 Astra first, with Google’s Gemini 4 pair immediately behind. Pick by the shape of your work: interactive building and editing, follow the WebDev board; long unattended agent runs, follow LiveBench. Then read the task-boundary section before you commit: if your work touches security research, the strongest coding models are also the ones most often reported to stop mid-session.

Every figure below was checked on 26 November 2026 and carries its source. Where a famous board has not tested the current generation, this page says so instead of quoting a predecessor’s score as if it were the new model’s.

Best AI model for coding — by task

LMArena WebDev (Code Arena) — human votes, data dated 23 November 2026

Blind pairwise votes on front-end and app-building prompts. Scores are Bradley–Terry points with a 95% confidence interval. Claude Fable 5.2 (xHigh) and Claude Opus 5.5 (Max) share the top rank band (rank spread 1–2); their intervals overlap, so the board does not separate a unique #1. Sonnet 5.5 sits in the next band (rank spread 3–9) with Gemini 4, GPT-6, and Qwen4.

Model Benchmark Setting Evaluator Score (95% CI) Rank (Spread) Battles / Votes Updated
Claude Fable 5.2 (xHigh) LMArena WebDev xHigh BenchLeader mirror of LMArena 1822 ± 15 [1806, 1837] #1 (1–2) 2,159 23 Nov 2026
Claude Opus 5.5 (Max) LMArena WebDev Max BenchLeader mirror of LMArena 1820 ± 11 [1810, 1831] #2 (1–2) 5,121 23 Nov 2026
Claude Sonnet 5.5 (xHigh) LMArena WebDev xHigh BenchLeader mirror of LMArena 1773 ± 9 [1764, 1782] #3 (3–9) 6,973 23 Nov 2026
Gemini 4 Carbon (High) LMArena WebDev High BenchLeader mirror of LMArena 1769 ± 15 [1754, 1784] #4 (3–10) 2,091 23 Nov 2026
Gemini 4 Neon (xHigh) LMArena WebDev xHigh BenchLeader mirror of LMArena 1765 ± 14 [1752, 1779] #5 (3–10) 2,308 23 Nov 2026
GPT-6 Astra (Max) LMArena WebDev Max BenchLeader mirror of LMArena 1764 ± 8 [1756, 1772] #6 (3–9) 9,541 23 Nov 2026
GPT-6.2 Astra (Max) LMArena WebDev Max BenchLeader mirror of LMArena 1761 ± 14 [1746, 1775] #7 (3–11) 2,170 23 Nov 2026
GPT-6.2 Sol (Max) LMArena WebDev Max BenchLeader mirror of LMArena 1755 ± 14 [1741, 1769] #8 (3–11) 2,336 23 Nov 2026
Qwen4-Max (xHigh) LMArena WebDev xHigh BenchLeader mirror of LMArena 1752 ± 16 [1737, 1768] #9 (3–12) 1,794 23 Nov 2026
GPT-6.1 Sol (Max) LMArena WebDev Max BenchLeader mirror of LMArena 1745 ± 9 [1736, 1754] #10 (5–12) 6,737 23 Nov 2026

Kimi K3.1 Pro scores 1683 ± 9 (rank spread 16–20, 6,207 votes, 23 Nov 2026) on LMArena WebDev (setting not published; BenchLeader mirror of LMArena) — #17 overall and the top open-weights model on this board.

LiveBench 2.0 Coding — agentic coding on merged-PR bugs, release 2026-11-06

A different test: the model works a frozen monorepo and its merged pull requests are the ground truth. Scores are not comparable with LiveBench 1.0’s short-problem coding suite.

Model Benchmark Setting Evaluator Score
GPT-6.2 Astra LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 91.9
Gemini 4 Carbon LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 91.0
Gemini 4 Neon LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 89.7
Claude Fable 5.1 LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 89.7
GPT-6.1 Terra LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 89.2
GPT-6 Astra LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 87.5
Claude Opus 5.5 LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 87.1
Gemini 4 Argon LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 85.7
GPT-6.2 Sol LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 83.7
GPT-6.1 Sol LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 82.1
DeepSeek V4.1 Flash 1017 LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 80.4 (best open-weights)
Claude Fable 5.2 LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 79.2
Claude Sonnet 5.5 LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 77.2
Qwen4 Max LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 69.8
Kimi K3.1 Pro LiveBench 2.0 Coding agentic merged-PR, frozen monorepo LiveBench 67.8

Note the inversion: Fable 5.2, sharing WebDev’s top rank band, sits mid-table here, below its own predecessor. The two boards measure different work. Artificial Analysis’s Intelligence Index (v5.0.2 blend; Artificial Analysis) reads Fable 5.2 at 65, Neon and GPT-6.2 Astra at 62, Carbon at 60, Opus 5.5 at 59, Sonnet 5.5 at 55 — the same leading group, a third ordering.

The two famous boards have not tested these models

SWE-bench Verified’s official leaderboard was last updated on 26 February 2026. Its leader is Claude Opus 4.5 at 79.2% (SWE-bench Verified; best scaffold; SWE-bench Verified) — a previous generation. Aider’s Polyglot leaderboard’s newest row is 3 October 2025, led by GPT-5 (high) at 88.0% (Aider Polyglot; high; Aider Polyglot). Neither board contains a single model in the tables above. Vendor launch posts quote SWE-style numbers for the new models, but those are run on the vendors’ own scaffolds and are not comparable with the public boards or with each other. Treat any “SWE-bench score” for a November 2026 model as a vendor claim until the public board updates.

Note on omitted models: SWE-bench Verified and Aider Polyglot omit all current late-2026 models — including every row in the WebDev and LiveBench tables above — because neither board has published evaluation data after its cutoff (26 February 2026 and 3 October 2025 respectively). Those models are named here as omitted for lack of data; they are not silently dropped.

Speed: the effort setting is the latency

Artificial Analysis reports time to first answer token — for a reasoning model that includes its thinking time — read 26 November 2026. Output speeds are AA figures quoted by dated November snapshots; AA speed is a rolling average, so treat the output-speed column as approximate.

Model Benchmark Setting Evaluator First answer at max effort First answer at low effort Output speed (approx.)
Claude Fable 5.2 time to first answer token / output speed max effort 259.9 s; low effort 9.2 s; output speed rolling average Artificial Analysis 259.9 s 9.2 s ~112 tok/s
Claude Opus 5.5 time to first answer token / output speed max effort 354.3 s; low effort 6.0 s; output speed rolling average Artificial Analysis 354.3 s 6.0 s ~117 tok/s
Claude Sonnet 5.5 time to first answer token / output speed max effort 269.6 s; low effort 4.3 s; output speed rolling average Artificial Analysis 269.6 s 4.3 s ~107–137 tok/s
Gemini 4 Neon time to first answer token xhigh 59.3 s; low effort 18.8 s Artificial Analysis 59.3 s (xhigh) 18.8 s —
Gemini 4 Carbon time to first answer token / output speed high 64.9 s; low effort 12.0 s; output speed rolling average Artificial Analysis 64.9 s (high) 12.0 s ~59–61 tok/s
GPT-6.2 Astra time to first answer token / output speed max effort 170.2 s; low effort 3.0 s; output speed rolling average Artificial Analysis 170.2 s 3.0 s ~66 tok/s
Kimi K3.1 Pro time to first answer token / output speed single listed setting 168.6 s; output speed rolling average Artificial Analysis 168.6 s (single listed setting) ~30 tok/s
DeepSeek V4.1 Flash 1017 time to first answer token / output speed 47.0 s; non-reasoning mode 1.1 s; output speed rolling average Artificial Analysis 47.0 s 1.1 s (non-reasoning mode) ~173–175 tok/s

The practical reading: at maximum effort the flagships take four to six minutes to produce a first answer token; at low effort the same models answer in single-digit seconds. For interactive editing, the effort dial matters more than the model badge. DeepSeek V4.1 Flash is the speed outlier — it ships an explicit non-reasoning mode (1.1 s to first answer) and the fastest streaming of this set, which is why it keeps showing up as the cheap second model in agent setups. Kimi K3.1 Pro is the slowest streamer here despite its board positions.

Verdict

  • Default pick for repo work in a subscription: Claude Opus 5.5 or Sonnet 5.5. WebDev rank bands 1–2 and 3–9, LiveBench-competitive, and Claude Code is included on every paid Claude plan (see the price bridge). Sonnet is the volume pick — it sits in the 3–9 rank band on WebDev with roughly three times Fable’s vote count behind its score.
  • For long agentic runs: GPT-6.2 Astra. LiveBench 2.0 Coding leader (91.9; agentic merged-PR, frozen monorepo; LiveBench) and a top-three AA blend score. Its predecessor GPT-6 Astra is nearly as good on both boards and sometimes cheaper to reach.
  • Google’s pair is the value frontier. Gemini 4 Carbon and Neon sit top-five on both boards; Neon is the faster of the two to first answer. If you already pay for Google AI, you own both.
  • Skip the badge premium for routine edits. The gap from Fable 5.2 to GPT-6.2 Sol on WebDev is about 4% of the score range. A mid model at the right effort setting beats a flagship left on max for anything interactive.

Best open-weight model for coding

Kimi K3.1 Pro for quality, DeepSeek V4.1 Flash for throughput. K3.1 Pro leads the open models on LMArena WebDev (1683 ± 9, rank spread 16–20, 6,207 votes, 23 Nov 2026) and is the top open-weights model on that board; V4.1 Flash leads them on LiveBench 2.0 Coding (80.4) and is the fastest model in this article, with an explicit non-reasoning mode (1.1 s to first answer). Neither is a flagship-beater on the boards — both are the cheap second model in agent setups, which is the role open weights actually play here.

Task boundaries: the security-work line

Community-reported behaviour, checked 26 November 2026. These are user reports, not vendor statements; each pattern below rests on at least two independent reports. Both labs’ written policies permit authorised security research on systems you own or are contracted to test — what users report is safeguard classifiers firing anyway, plus vetted-access programmes (Anthropic’s Cyber Verification Program, OpenAI’s Trusted Access for Cyber) as the official bypass.

  • Claude Code blocks authorised pentest and bug-bounty work mid-session. A GitHub issue on Anthropic’s own tracker (17 April 2026) from a researcher with ~15 in-progress bounty submissions reports the tightened cyber filter blocking drafting, analysis and PoC refinement even with the programme’s scope and authorisation in context — the error message itself points to the Cyber Verification Program as the remedy. Further GitHub reports through November 2026 describe the same pattern, including a researcher working under NASA’s Vulnerability Disclosure Programme blocked while drafting a report and a minimal PoC.
  • Reverse engineering drew a coordinated crackdown in autumn 2026. 404 Media (10 November 2026) documented multiple Claude Code users hitting safety checks when decompiling software — the “Reverse Engineer Anything” workflow — and an OpenAI account ban issued for “cyber abuse” after Codex was used to reverse-engineer Samsung TVs; a security researcher told 404 the blocks correlated almost perfectly with the “cyber” category. Tom’s Hardware reported the same wave on 31 October 2026, including blocks on ordinary reverse-engineering tasks in Opus 5.5 sessions. OpenAI staff have publicly called most of the blocks accidental; users report they continue.
  • The same pattern repeats across adjacent tasks. Multiple GitHub issues and forum reports through 2026 describe Claude Code and Codex interrupting proof-of-concept code for already-disclosed CVEs, defensive malware analysis, and security audits of the reporter’s own codebase — including accounts that already held vetted cyber access. Any single report is an anecdote; the volume across independent trackers is the signal.
  • Gemini blocks some authorised security work too. On Google’s own developer forum (19 November 2026), a user’s prompt asking Gemini 4 Neon to security-check their own codebase against their own hosts was blocked by Gemini’s filters, with a second user reporting pentest blocks the same day. An independent evaluation by Tenzai (blog post, 14 October 2026; setting: six controlled web apps, black-box (no source access), Google Early Access Program (EAP), compared with GLM 5.3 and Opus 5, Pass@3; Tenzai — Gemini 4: A New Hope) measured a 9-percentage-point recall drop between Gemini 4 finding vulnerabilities and producing reproducible exploits, attributed to soft refusals in normal operation — an evaluation, not a user report, and included here as measurement alongside the reports.
  • What we could not establish: no community reports meeting the two-report bar were found for DeepSeek, Qwen, Kimi, GLM or Grok models refusing security-adjacent coding work, and no report at all was found of any model refusing to write a named tool such as a port scanner. Absence of reports is not proof of permissiveness — it is the current state of the public record, checked 26 November 2026.

If security research is your job, the buying consequence is direct: budget for the vetted-access application on whichever lab you choose, and keep a second lab’s plan as the fallback for the sessions the first one stops.

Price bridge

Cheapest legitimate route to each pick, from this site’s checked catalog (official personal plans, checked 25 November 2026; API token rates):

Pick Cheapest legitimate route Notes
Claude Opus 5.5 / Sonnet 5.5 / Fable 5.2 Claude Pro $20/mo; Max $100 (5× Pro); Ultra $200 Claude Code is on every paid plan, same pool as chat. Fable on Pro draws usage credits. API overflow: Sonnet 5.5 $2/$10, Opus 5.5 $4/$20, Fable 5.2 $8/$40 per 1M tokens.
GPT-6.2 Astra / GPT-6.2 Sol ChatGPT Plus $20/mo; Pro from $100 Codex shares the Plus allowance. API: Sol $2/$10, Astra $8/$40.
Gemini 4 Carbon / Neon Google AI Pro $19.99/mo; Ultra from $99.99 Antigravity paid access is this same bill. API: Carbon $2/$10 until 30 Nov 2026, then $4/$20; Neon $3/$15.
Kimi K3.1 Pro Kimi Plus $19/mo Kimi Code is included on Plus and up; the same membership covers chat.
Qwen4 Max Qwen Coding Plan Pro $50/mo Interactive tools only; the key is not a general API key.
DeepSeek V4.1 Flash No subscription exists — API only, or a $10 coding-agent pass DeepSeek’s own API lists $0.30/$1.20 per 1M (Artificial Analysis, 26 Nov 2026). OpenCode Go ($10) and Command Code GOAT ($10) both list V4.1 Flash inside their pools — see coding-agent passes.

Subscribe first; the API is the overflow meter, not a cheaper plan. The full reasoning is in pick the model for the job.

FAQ

What’s the best LLM for coding?

There is no single winner: for interactive building and editing, the best LLM for coding is Claude Fable 5.2 or Opus 5.5, the shared top rank band on LMArena WebDev; for long unattended agent runs it is GPT-6.2 Astra, the LiveBench 2.0 Coding leader. Pick by the shape of your work, not the badge.

Claude vs GPT vs Gemini for coding — which wins?

Claude wins the human vote (WebDev’s top rank band), GPT-6.2 Astra wins the agentic test (LiveBench 91.9), and Gemini 4 Carbon and Neon sit top-five on both boards — the value frontier if you already pay for Google AI. The gap between the leaders is small; the effort setting matters more than the badge for interactive work.

Changelog

  • 2026-12-03: Title/meta/H2 alignment for hot terms (best AI model / best LLM for coding, agentic coding, open-weight picks, pair FAQ) — no scores or verdicts changed.
  • 2026-12-03: Speed and latency rows keep the protocol triple — AA time-to-first-answer and output speed are published measurements, and the rolling-average caveat stays in the section and the source note. Tenzai’s published setting is six controlled web apps, black-box, EAP, compared with GLM 5.3 and Opus 5 (14 October 2026). LMArena WebDev Evaluator cells name the BenchLeader mirror.
  • 2026-12-02: Added the protocol triple (benchmark, evaluation setting or explicit setting not published, evaluator with source link) to every benchmark score row.
Sources and checks

Last checked 2026-11-26 against the links below. Open the vendor page in your region before you pay — list prices move.

  • Independent testLMArena WebDev leaderboard (BenchLeader mirror)Open sourceData dated 23 Nov 2026. LMArena WebDev; setting is the effort listed on each table row. Uncertainty quartet from the official LMSYS dataset: Fable 5.2 (1822 ± 15, rank spread 1–2, 2,159 votes), Opus 5.5 (1820 ± 11, rank spread 1–2, 5,121 votes), Sonnet 5.5 (1773 ± 9, rank spread 3–9, 6,973 votes). lmarena.ai itself sits behind a bot check; figures are LMArena's published dataset as read from the BenchLeader mirror, corroborated by a second mirror (Essentras).
  • Independent testLiveBench 2.0 — Coding suiteOpen sourceRelease 2026-11-06, read directly 26 Nov 2026. LiveBench 2.0 Coding; setting: agentic merged-PR, frozen monorepo. GPT-6.2 Astra 91.9, Gemini 4 Carbon 91.0, Gemini 4 Neon 89.7. Scores are not comparable with LiveBench 1.0.
  • Independent testArtificial Analysis — model pages and FAQOpen sourceIntelligence Index v5.0.2 (blend) and time-to-first-answer-token figures read 26 Nov 2026. Output speeds are AA figures as quoted by dated secondary sources (Nov 2026 snapshots); AA speed is a rolling average and snapshots differ.
  • Independent testSWE-bench Verified leaderboardOpen sourceOfficial board last updated 26 Feb 2026 — it has not tested the current model generation. Cited as history only. Leader score on this page uses the published best-scaffold setting.
  • Independent testAider Polyglot leaderboardOpen sourceNewest row 3 Oct 2025 — predates every current candidate. Cited as history only. Leader score on this page uses the published high setting.
  • Independent testTenzai — Gemini 4: A New HopeOpen sourcePublished 14 Oct 2026. Setting: six controlled web apps, black-box (no source access), Google Early Access Program (EAP), compared with GLM 5.3 and Opus 5; the recall figure is Pass@3. Gemini 4's recall dropped 9pp between finding vulnerabilities and producing reproducible exploits (Opus and GLM dropped 1–2pp), attributed to soft refusals.
  • User reportGitHub — anthropics/claude-code issueOpen sourcePublished 17 Apr 2026, read directly 26 Nov 2026. Bug-bounty researcher: tightened cyber filters block drafting, analysis and PoC refinement inside authorised programme scope.
  • Independent test404 Media — 'Reverse Engineer Anything' crackdownOpen sourceJason Koebler, 10 Nov 2026. Multiple Claude Code users blocked on decompiling; an OpenAI account ban after Codex reverse-engineering work; researcher Matt Brown on the 'cyber' block correlation.
  • User reportGoogle AI Developers Forum — safe-coding restrictions threadOpen source19 Nov 2026. A Gemini 4 Neon prompt to security-check the poster's own codebase was blocked by Gemini's filters; a second user reports the same on pentesting the same day.
Share this page

← Back to Guides