CompileBench: Can AI Compile 22-year-old Code?

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers can now pick which AI models reliably brute-force painful legacy code builds without hand-tuned prompting, based on public head-to-head results.

Read this as

CompileBench is a new test that measures how well AI assistants can compile old, stubborn software, including a 22-year-old program and cross-compiling for ARM64 chips. Models get a Linux shell and must figure out the build themselves. Claude Opus 4.1 Thinking topped the leaderboard by solving 100% of the tasks, while Google's Gemini 2.5 family managed only about 60%.

A new public benchmark scores AI models on compiling difficult legacy code, with a live leaderboard at compilebench.com. Claude Opus 4.1 Thinking solved 100% of tasks; GPT-5 high and Claude Sonnet 4 hit 93%. GPT-5-mini stands out for value, scoring 80% for just $0.27 total, relevant when weighing model choice for automating messy build pipelines.

CompileBench (by Quesma's Piotr Grabowski and Piotr Migdał) runs models in Docker containers with a single tool, run_terminal_cmd, in a Go harness built on OpenAI's library. System prompts vary by container OS and forbid interactive flags; no model-specific tuning is allowed. Claude Opus 4.1 Thinking scored 100% (three attempts allowed), Sonnet 4 Thinking and GPT-5 high 93%, DeepSeek 3.1 and Kimi K2 0905 80%. Authors concede Gemini's ~60% could improve with tuned prompts, which they deliberately avoid.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

CompileBench Claude Opus 4.1 Thinking GPT-5-mini Gemini 2.5 Quesma Kimi K2 0905

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading