CompileBench
Agents build real open-source projects through dependency problems, legacy toolchains and complex build systems, for example compiling 22-year-old code.
About 60 GitHub stars. Quesma also contributed to Terminal-Bench 3.0.
- Made by
- Quesma
- Released
- August 2025
- Kind
- Terminal tasks
- Level
- Expert
- Scored
- Checked automatically
- Answers
- Agent task
- Tasks
- All public
- Measures
- Capability
- Language
- English
- Interaction
- Agentic
- Environment
- Terminal
- Items from
- Real work and use
- Refresh
- One fixed set
- Run by
- Anyone
- In views
- Agents
- Strongest model tested
- GPT-5 #72 on the capability index
- Last model added
- October 2025
- Updated automatically
- Yes, daily
- Scores refreshed
- November 24th, 2026
Claude Opus 4.1 leads with 100% among models released by October 2025
Best score per model from the benchmark's own leaderboard, read on November 24th, 2026. Where a model ran with several settings or harnesses, we keep its best. Every run is in the next chart.
The newest model with a score here came out in October 2025, and nobody has tested a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- Claude Fable 5.2
- GPT-6.2 Astra
-
Gemini 4 Carbon
- GPT-6 Astra
- and 16 more
- 100.0 Claude Opus 4.1
- 93.3 Claude Sonnet 4
- 93.3 GPT-5
- 93.3 GPT-5-Codex
- 86.7 Grok 4
- 86.7 Claude Sonnet 4.5
- 86.7 Claude Haiku 4.5
- 80.0 GPT-5 mini
- 80.0
DeepSeek-V3.1
- 80.0 Kimi K2
- 73.3 GLM-4.5
- 73.3 grok-code-fast-1
- 73.3 Grok 4 Fast
- 73.3
DeepSeek-V3.1-Terminus
- 66.7 GPT-4.1 mini
- 66.7
Qwen3-Max
- 60.0 GPT-4.1
- 60.0
Gemini 2.5 Pro
- 60.0 gpt-oss-120b
- 60.0
Gemini 2.5 Flash
- 1 Claude Opus 4.1 thinking 16k 100%
- 2 Claude Sonnet 4 thinking 16k 93.3%
- 3 GPT-5 high 93.3%
- 4 GPT-5-Codex high 93.3%
- 5 Grok 4 86.7%
- 6 Claude Sonnet 4.5 86.7%
- 7 Claude Haiku 4.5 thinking 16k 86.7%
- 8 GPT-5 mini high 80%
- 9
DeepSeek-V3.1 80%
- 10 Kimi K2 Sep 2025 80%
- 11 GLM-4.5 73.3%
- 12 grok-code-fast-1 73.3%
- 13 Grok 4 Fast 73.3%
- 14
DeepSeek-V3.1-Terminus 73.3%
- 15 GPT-4.1 mini 66.7%
- 16
Qwen3-Max 66.7%
- 17 GPT-4.1 60%
- 18
Gemini 2.5 Pro Jun 2025 60%
- 19 gpt-oss-120b high 60%
- 20
Gemini 2.5 Flash Sep 2025 60%
Source: Official CompileBench leaderboard
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | Claude Opus 4.1 | 100% | thinking 16k | Aug 2025 | Official leaderboard |
| 2 | Claude Sonnet 4 | 93.3% | thinking 16k | May 2025 | Official leaderboard |
| 3 | GPT-5 | 93.3% | high | Aug 2025 | Official leaderboard |
| 4 | GPT-5-Codex | 93.3% | high | Sep 2025 | Official leaderboard |
| 5 | Grok 4 | 86.7% | Jul 2025 | Official leaderboard | |
| 6 | Claude Sonnet 4.5 | 86.7% | Sep 2025 | Official leaderboard | |
| 7 | Claude Haiku 4.5 | 86.7% | thinking 16k | Oct 2025 | Official leaderboard |
| 8 | GPT-5 mini | 80% | high | Aug 2025 | Official leaderboard |
| 9 | | 80% | Aug 2025 | Official leaderboard | |
| 10 | Kimi K2 Sep 2025 | 80% | Sep 2025 | Official leaderboard | |
| 11 | GLM-4.5 | 73.3% | Aug 2025 | Official leaderboard | |
| 12 | grok-code-fast-1 | 73.3% | Aug 2025 | Official leaderboard | |
| 13 | Grok 4 Fast | 73.3% | Sep 2025 | Official leaderboard | |
| 14 | | 73.3% | Sep 2025 | Official leaderboard | |
| 15 | GPT-4.1 mini | 66.7% | Apr 2025 | Official leaderboard | |
| 16 | | 66.7% | Sep 2025 | Official leaderboard | |
| 17 | GPT-4.1 | 60% | Apr 2025 | Official leaderboard | |
| 18 | | 60% | Jun 2025 | Official leaderboard | |
| 19 | gpt-oss-120b | 60% | high | Aug 2025 | Official leaderboard |
| 20 | | 60% | Sep 2025 | Official leaderboard |
Everything the board measures
The benchmark’s own leaderboard publishes 11 numbers for each entry: the headline score and 10 other measures. Rank entries by any one, compare them all in the table, or plot any two. Each row is the entry’s best run on the headline score.
- Headline
- Tasks passed (pass@3)
- Other measures
- Cost per task
- Tasks
- Tasks passed
- Attempts passed
- Inference time
- Command execution time
- Final context tokens
- Seconds per completed task
- Total time across tasks
- Pass@1
Nothing matches.
- Headline
- Tasks passed (pass@3)
- Other measures
- Cost per task
- Tasks
- Tasks passed
- Attempts passed
- Inference time
- Command execution time
- Final context tokens
- Seconds per completed task
- Total time across tasks
- Pass@1
Nothing matches.
- Headline
- Tasks passed (pass@3)
- Other measures
- Cost per task
- Tasks
- Tasks passed
- Attempts passed
- Inference time
- Command execution time
- Final context tokens
- Seconds per completed task
- Total time across tasks
- Pass@1
Nothing matches.
- OpenAI
- Anthropic
- Google DeepMind
- xAI
- Z.ai
- DeepSeek
- Moonshot AI
- Qwen
- not in our model list
CompileBench Speed
Share of tasks passed within three attempts against the total time across tasks, with the Pareto frontier. The line joins the runs that no other run beats on both measures. We redrew this chart from the numbers on the official leaderboard.
| Model | Setting | Tasks passed (pass@3) | Total time across tasks |
|---|---|---|---|
| Claude Opus 4.1 | thinking 16k | 100% | 3,528 s |
| Claude Sonnet 4 | thinking 16k | 93.3% | 2,740 s |
| GPT-5-Codex | high | 93.3% | 3,211 s |
| GPT-5 | high | 93.3% | 3,431 s |
| Claude Haiku 4.5 | 86.7% | 1,597 s | |
| Claude Sonnet 4.5 | 86.7% | 1,754 s | |
| Claude Sonnet 4.5 | thinking 16k | 86.7% | 2,210 s |
| Claude Haiku 4.5 | thinking 16k | 86.7% | 2,882 s |
| Grok 4 | 86.7% | 3,194 s | |
| GPT-5 | minimal | 80% | 1,036 s |
| 80% | 1,095 s | ||
| Kimi K2 Sep 2025 | 80% | 1,153 s | |
| Claude Sonnet 4 | 80% | 1,409 s | |
| GPT-5 mini | high | 80% | 2,410 s |
| grok-code-fast-1 | 73.3% | 1,238 s | |
| GLM-4.5 | 73.3% | 1,264 s | |
| 73.3% | 1,449 s | ||
| Grok 4 Fast | 73.3% | 1,658 s | |
| 66.7% | 678.05 s | ||
| GPT-4.1 mini | 66.7% | 1,415 s | |
| GPT-4.1 | 60% | 489.63 s | |
| 60% | 647.88 s | ||
| gpt-oss-120b | high | 60% | 672.51 s |
| 60% | 941.85 s | ||
| thinking | 53.3% | 693.42 s | |
| GPT-5 mini | minimal | 46.7% | 526.59 s |
The best score, 100%, costs $22 for the full run
Runs on the cost frontier score higher than any run that's cheaper. The costs are the leaderboard's own estimates, so compare them only within this benchmark.
Source: Official CompileBench leaderboard
| Model | Effort | Harness | Score | Cost of the full run | Output tokens |
|---|---|---|---|---|---|
| Claude Opus 4.1 | thinking 16k | 100% | $22 | ||
| Claude Sonnet 4 | thinking 16k | 93.3% | $5.75 | ||
| GPT-5 | high | 93.3% | $1.99 | ||
| GPT-5-Codex | high | 93.3% | $3.29 | ||
| Grok 4 | 86.7% | $3.11 | |||
| Claude Sonnet 4.5 | 86.7% | $3.61 | |||
| Claude Sonnet 4.5 | thinking 16k | 86.7% | $3.79 | ||
| Claude Haiku 4.5 | thinking 16k | 86.7% | $1.85 | ||
| Claude Haiku 4.5 | 86.7% | $1.08 | |||
| Claude Sonnet 4 | 80% | $2.65 | |||
| GPT-5 | minimal | 80% | $0.40 | ||
| GPT-5 mini | high | 80% | $0.27 | ||
| 80% | $1.57 | ||||
| Kimi K2 Sep 2025 | 80% | $2.75 | |||
| GLM-4.5 | 73.3% | $1.05 | |||
| grok-code-fast-1 | 73.3% | $0.10 | |||
| Grok 4 Fast | 73.3% | $0.15 | |||
| 73.3% | $0.67 | ||||
| GPT-4.1 mini | 66.7% | $0.13 | |||
| 66.7% | $0.59 | ||||
| GPT-4.1 | 60% | $0.47 | |||
| 60% | $0.58 | ||||
| gpt-oss-120b | high | 60% | $0.22 | ||
| 60% | $0.10 | ||||
| thinking | 53.3% | $0.23 | |||
| GPT-5 mini | minimal | 46.7% | $0.03 |
2 models have held number one on the official leaderboard since its release in August 2025
Lab claims count from the day the card came out, independent runs from the model’s release.
Source: Official CompileBench leaderboard
Claude Sonnet 4 on the official leaderboard passed 85% in May 2025
Models released before it came out already scored that high. All the scores we have, one dot each, so a model tested at several settings appears more than once.
Source: Official CompileBench leaderboard
No lab model card reports it yet
We read the headline results of 546 launch posts from 59 labs, and none of them list this benchmark.
More in Terminal agents
- SkillsBench In use 86-87 containerized expert tasks in 11 domains, run with and without Agent Skills. Verifier tests give pass rate and skill lift. GPT-5.5 66.5%
- Terminal-Bench Hard In use Agents complete 44 hard tasks from Terminal-Bench Core in the Terminus 2 harness. Artificial Analysis scores pass@1 averaged over 3 repeats.
Gemma 4 31B IT 36%
- Terminal-Bench 4.1 In use The Terminal-Bench 4.0 tasks with hardened verifiers: agents complete 66 hard tasks in containerized terminals across software, ML, science, security, and operations. Test scripts verify each result, scored as resolution rate. Copilot Fusion 71.2%
- Harbor-Index In use Agents solve about 80 hard tasks drawn from 29 benchmarks run through Harbor adapters, such as HLE, GSO and SWE-bench Pro. Each task keeps its source verifier. GPT-5.5 28.1%
- Terminal-Bench 2.1 Extended Not in model cards Agents complete long command-line tasks in containers, scored by verification tests. Mercor adds 99 new expert-written tasks to the 89 public ones and reports both scores.
Muse Wonder 54%
- Terminal-Bench Pro Not in model cards Agents solve 400 terminal tasks across eight domains. Harbor distributes the 200 public tasks. Alibaba keeps the other 200 for private evaluation. Claude Opus 4.5 51%
Data audit
7 of 8 checks pass, 1 warning. Look first at the Confidence check. Likely. Some facts rest on secondary sources. Every benchmark
Catalog record 1 warning 1 pass
- Pass Task access All tasks are public.
- Warning Confidence Likely. Some facts rest on secondary sources.
Scores 2 pass 3 notes
- Pass Independent runs Scores from the official leaderboard (20 entries).
- Pass Models scored 20 models we track.
- Note Newest score The newest came 13 months ago, in October 2025, for Claude Haiku 4.5. That’s expected for a saturated test.
- Note Frontier models None of the top 10 has a score, which is fine for a retired test. The strongest tested is GPT-5 (#72).
- Note Headroom Saturated. The best is 100%, past 85% since May 2025.
Leaderboard import 3 pass
- Pass Importer We read the board on compilebench.com: 26 rows for models we track at the last read.
- Pass Last read November 24th, 2026.
- Pass Read worked The last read worked.
Consistency 1 pass 2 notes
- Note Lab claims No model has both a lab number and an independent run.
- Pass Known issues No published audit found problems.
- Note Epoch AI review Epoch AI hasn’t reviewed it.