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.
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
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.