Coding Agent Benchmarks

How AI coding agents compare on real tasks: how many they solve, what each task costs, how long it takes and how many tokens it burns. Results come from public leaderboards and refresh hourly. Filter the charts to the agents you care about, then save the view to your account.

Loading your view…

Hard, real-world tasks done in a terminal: compiling code, training models, setting up servers. Each agent and model pair runs every task several times. Source: tbench.ai.

AgentAgent
Model makerModel maker
Reasoning effortReasoning effort
Sections:

Showing 23 of 35 runs.

  • Claude Code
  • Codex
  • Grok Build
  • mini-SWE-agent
  • Muse Code

Performance

Share of tasks each agent and model pair solved.

Score

Accuracy across all trials. Hover for the 95% confidence range.

  1. 1Opus 5.5 (max)
    Claude Code · Anthropic
    64.8%
  2. 2Sonnet 5.5 (max)
    Claude Code · Anthropic
    61.8%
  3. 3GPT-6 Astra (max)
    Codex · OpenAI
    58.2%
  4. 4GPT-6.1 Sol (max)
    Codex · OpenAI
    58.2%
  5. 5Fable 5.1 (xhigh)
    Claude Code · Anthropic
    57.9%
  6. 6Opus 5 (xhigh)
    Claude Code · Anthropic
    53.9%
  7. 7GPT-6 Sol (max)
    Codex · OpenAI
    49.4%
  8. 8Fable 5 (max)
    Claude Code · Anthropic
    44.5%
  9. 9GLM-5.3 (max)
    Claude Code · Z.ai
    41.8%
  10. 10Grok 4.7 (xhigh)
    Grok Build · xAI
    37.6%
  11. 11GPT-5.6 Sol (max)
    Codex · OpenAI
    37.3%
  12. 12GLM-5.3-Flash
    Claude Code · Z.ai
    35.8%
  13. 13Qwen3.8-Max-0902 (max)
    Claude Code · Alibaba
    27.0%
  14. 14Opus 4.8 (max)
    Claude Code · Anthropic
    23.6%
  15. 15GPT-5.6 Terra (max)
    Codex · OpenAI
    21.5%

Score vs. cost per task

Top-left is better: higher score for less money. Labelled runs are the best value at their price.

Most attractive0204060$0$10$20$30Cost per task (USD)Score (%)GPT-6 Luna (max)GLM-5.3-FlashGPT-6.1 Sol (max)Opus 5.5 (max)

Token usage

How much the agent reads and writes to finish one task.

Tokens per task

Agents re-read their context every turn, so cached input usually dominates.

  • Input
  • Cached input
  • Output
  1. 1Sonnet 5 (max)
    Claude Code · Anthropic
    65.3M
  2. 2Sonnet 5.5 (max)
    Claude Code · Anthropic
    58.8M
  3. 3Gemini 3.8 Flash (high)
    mini-SWE-agent · Google
    52.1M
  4. 4GPT-5.6 Luna (max)
    Codex · OpenAI
    35.0M
  5. 5Gemini 3.7 Flash (high)
    mini-SWE-agent · Google
    33.7M
  6. 6Muse Spark 1.3 (xhigh)
    Muse Code · Meta
    27.3M
  7. 7GLM-5.3 (max)
    Claude Code · Z.ai
    26.3M
  8. 8Opus 5.5 (max)
    Claude Code · Anthropic
    24.3M
  9. 9Opus 5 (xhigh)
    Claude Code · Anthropic
    20.9M
  10. 10Opus 4.8 (max)
    Claude Code · Anthropic
    19.4M
  11. 11GPT-5.6 Terra (max)
    Codex · OpenAI
    17.2M
  12. 12Grok 4.7 (xhigh)
    Grok Build · xAI
    15.8M
  13. 13GPT-6 Sol (max)
    Codex · OpenAI
    15.1M
  14. 14GPT-5.6 Sol (max)
    Codex · OpenAI
    13.4M
  15. 15Grok 4.6 (high)
    Grok Build · xAI
    12.1M

Score vs. tokens per task

Most attractive0204060020.0M40.0M60.0MTokens per taskScore (%)Opus 5.5 (max)GPT-6.1 Sol (max)

Cost

Average API spend to attempt one task, at list prices.

Cost per task

Lower is better. Runs without a reported cost are left out.

  1. 1GPT-6 Luna (max)
    Codex · OpenAI
    $0.22
  2. 2GLM-5.3-Flash
    Claude Code · Z.ai
    $0.36
  3. 3GPT-5.6 Luna (max)
    Codex · OpenAI
    $1.05
  4. 4GPT-6.1 Sol (max)
    Codex · OpenAI
    $1.92
  5. 5Gemini 3.7 Flash (high)
    mini-SWE-agent · Google
    $3.82
  6. 6GPT-6 Sol (max)
    Codex · OpenAI
    $4.40
  7. 7GPT-5.6 Terra (max)
    Codex · OpenAI
    $5.25
  8. 8Gemini 3.8 Flash (high)
    mini-SWE-agent · Google
    $5.54
  9. 9Grok 4.5 (high)
    Grok Build · xAI
    $6.35
  10. 10GPT-5.6 Sol (max)
    Codex · OpenAI
    $7.70
  11. 11GLM-5.3 (max)
    Claude Code · Z.ai
    $8.27
  12. 12GPT-6 Astra (max)
    Codex · OpenAI
    $9.90
  13. 13Grok 4.6 (high)
    Grok Build · xAI
    $10.88
  14. 14Grok 4.7 (xhigh)
    Grok Build · xAI
    $11.16
  15. 15Qwen3.8-Max-0902 (max)
    Claude Code · Alibaba
    $14.05

Execution time

Wall-clock time for one attempt at a task.

Time per task

Lower is better.

  1. 1Gemini 3.7 Flash (high)
    mini-SWE-agent · Google
    28m
  2. 2Gemini 3.8 Flash (high)
    mini-SWE-agent · Google
    33m
  3. 3GPT-6 Luna (max)
    Codex · OpenAI
    38m
  4. 4Grok 4.6 (high)
    Grok Build · xAI
    39m
  5. 5GPT-5.6 Sol (max)
    Codex · OpenAI
    40m
  6. 6GPT-5.6 Terra (max)
    Codex · OpenAI
    42m
  7. 7GPT-6 Sol (max)
    Codex · OpenAI
    44m
  8. 8GPT-6 Astra (max)
    Codex · OpenAI
    47m
  9. 9Grok 4.5 (high)
    Grok Build · xAI
    53m
  10. 10GPT-6.1 Sol (max)
    Codex · OpenAI
    53m
  11. 11Fable 5.1 (xhigh)
    Claude Code · Anthropic
    53m
  12. 12GPT-5.6 Luna (max)
    Codex · OpenAI
    1.1h
  13. 13Fable 5 (max)
    Claude Code · Anthropic
    1.2h
  14. 14Muse Spark 1.3 (xhigh)
    Muse Code · Meta
    1.2h
  15. 15Opus 5 (xhigh)
    Claude Code · Anthropic
    1.3h

Score vs. time per task

Most attractive02040600m50m100m150mMinutes per taskScore (%)Gemini 3.7 Flash (high)Gemini 3.8 Flash (high)Grok 4.6 (high)GPT-5.6 Sol (max)GPT-6 Sol (max)GPT-6 Astra (max)Opus 5.5 (max)

All results

Every run that matches your filters.

#AgentModelScoreCost / taskTime / taskTokens / taskDate
1Claude CodeOpus 5.5 (max) · Anthropic64.8% ±3.1$14.301.3h24.3M2026-09-22
2Claude CodeSonnet 5.5 (max) · Anthropic61.8% ±2.9$22.222.1h58.8M2026-09-28
3CodexGPT-6 Astra (max) · OpenAI58.2% ±2.8$9.9047m4.6M2026-09-03
4CodexGPT-6.1 Sol (max) · OpenAI58.2% ±3.1$1.9253m4.4M2026-09-29
5Claude CodeFable 5.1 (xhigh) · Anthropic57.9% ±3.4$14.7653m7.1M2026-09-01
6Claude CodeOpus 5 (xhigh) · Anthropic53.9% ±3.2$18.441.3h20.9M2026-07-24
7CodexGPT-6 Sol (max) · OpenAI49.4% ±3.2$4.4044m15.1M2026-09-22
8Claude CodeFable 5 (max) · Anthropic44.5% ±3.9$22.021.2h11.5M2026-06-09
9Claude CodeGLM-5.3 (max) · Z.ai41.8% ±3.2$8.271.6h26.3M2026-08-14
10Grok BuildGrok 4.7 (xhigh) · xAI37.6% ±3.5$11.161.6h15.8M2026-09-21
11CodexGPT-5.6 Sol (max) · OpenAI37.3% ±3.8$7.7040m13.4M2026-06-26
12Claude CodeGLM-5.3-Flash · Z.ai35.8% ±3.5$0.361.7h8.8M2026-08-26
13Claude CodeQwen3.8-Max-0902 (max) · Alibaba27.0% ±3.8$14.052.8h9.0M2026-09-02
14Claude CodeOpus 4.8 (max) · Anthropic23.6% ±3.6$19.641.4h19.4M2026-05-28
15CodexGPT-5.6 Terra (max) · OpenAI21.5% ±3.3$5.2542m17.2M2026-06-26
16Grok BuildGrok 4.6 (high) · xAI20.3% ±3.1$10.8839m12.1M2026-08-12
17mini-SWE-agentGemini 3.8 Flash (high) · Google19.1% ±3.4$5.5433m52.1M2026-09-02
18CodexGPT-5.6 Luna (max) · OpenAI17.3% ±2.9$1.051.1h35.0M2026-06-26
19CodexGPT-6 Luna (max) · OpenAI16.4% ±2.7$0.2238m11.8M2026-09-22
20Muse CodeMuse Spark 1.3 (xhigh) · Meta14.6% ±2.9—1.2h27.3M2026-09-02
21Grok BuildGrok 4.5 (high) · xAI12.4% ±2.6$6.3553m10.3M2026-07-16
22Claude CodeSonnet 5 (max) · Anthropic12.4% ±3.1$29.101.8h65.3M2026-06-30
23mini-SWE-agentGemini 3.7 Flash (high) · Google11.2% ±2.5$3.8228m33.7M2026-08-13

Create a free account

Save your filters and chart settings, and see them on any device next time you visit.

Already have an account?

Frequently asked questions

What is a coding agent?

A coding agent is a program that pairs an AI model with tools such as a terminal, a file editor and a test runner, then works on a task over many steps. Claude Code, Codex and Grok Build are agents; Opus, GPT and Grok are the models inside them. The same model can score differently in different agents.

Where does this data come from?

Terminal-Bench results come from the public leaderboard at tbench.ai, which reports score, total cost, token counts and average run time for each agent and model pair. SWE-bench Verified results come from the public leaderboard at swebench.com. Both are fetched automatically and refreshed every hour.

How is cost per task worked out?

For Terminal-Bench, it is the total API cost the leaderboard reports divided by the number of trials. SWE-bench publishes an average cost per issue directly. Both use list API prices, so a subscription plan or a discount changes what you would actually pay.

Why is cached input so large?

An agent sends its whole conversation back to the model on every step. Most of that text was sent before, so providers serve it from a cache at a much lower price. That is why agents can read billions of tokens while the bill stays modest.

How do I save my view?

Your filters and chart settings are remembered on your device automatically. Create a free account to save them to your profile, so the page opens exactly as you left it on any device. Reset to defaults restores the standard view at any time.

Comparing raw model prices instead? Try the AI model comparison or the AI API cost calculator.