Academic

ProgramBench

Updated 11/19/2026

Can language models rebuild programs from scratch?

As of November 19, 2026, Claude Fable 5.2 ranks first on ProgramBench with 19.00%, followed by Claude Opus 5.5 (18.50%) and Claude Fable 5.1 (7.00%).

ProgramBenchRebuilding programs from binaries
ProgramBench•Nov 19, 2026
ACCURACY
Lab:
Pinch or Ctrl/Cmd + scroll to zoom. Once zoomed, scroll or swipe with two fingers to pan, or drag to pan. Shift + drag draws a box to zoom into; turn on box zoom to draw one without Shift. Plus and minus keys zoom, arrow keys pan, 0 resets.

ProgramBench leaderboard

Rank Model Accuracy Cost / Test Tokens / Test Duration / Test
1 Claude Fable 5.2 19.00% $46.82 86.78m 2h05m
2 Claude Opus 5.5 18.50% $42.66 128.90m 2h24m
3 Claude Fable 5.1 7.00% $58.52 - 2h27m
4 Claude Sonnet 5.5 6.50% $22.62 134.43m 2h07m
5 GPT-6 Astra 5.50% $11.57 3.87m 27m02s
6 GPT-6.1 Sol 3.00% $2.87 5.17m 1h10m
7 Claude Opus 5 3.00% $60.29 - 2h55m
8 Gemini 4 Argon 2.50% $17.66 27.02m 1h11m
9 Claude Haiku 5.5 2.50% $6.83 - 1h13m
10 Muse Spark 1.3 Max 2.50% $54.29 54.79m 5h28m
11 Claude Fable 5 2.00% $75.68 - 2h37m
12 GPT-6 Sol 2.00% $11.67 30.85m 46m11s
13 Kimi K3 2.00% $70.48 112.55m 5h42m
14 GPT-5.6 Sol 1.50% $15.29 - 29m24s
15 GLM 5.3 1.50% $21.96 75.45m 4h16m
16 Grok 4.6 1.00% $16.76 11.14m 4h27m
17 Claude Opus 4.8 1.00% $31.27 - 1h32m
18 Gemini 3.8 Flash 1.00% $10.93 45.30m 46m39s
19 Grok 4.7 0.50% $46.49 20.29m 3h38m
20 MiMo V2.6 Flash 0.50% $0.47 77.48m 3h22m
21 DeepSeek V4.1 Flash 0.50% $0.90 72.21m 1h02m
22 GPT-5.6 Terra 0.50% $5.38 15.20m 33m36s
23 Muse Spark 1.3 0.50% $11.56 44.98m 1h09m
24 MiMo V2.6 Pro 0.50% $0.73 41.01m 3h00m
25 Inkling 2 Small 0.50% $8.46 254.52m 1h46m
26 GPT 5.5 0.50% $6.95 - 22m03s
27 GLM 5.2 0.50% $12.58 - 2h06m
28 GPT-6 Luna 0.50% $0.18 7.00m 28m55s
29 Wonder Full 0.50% $28.65 - 6h04m
30 Inkling 2 Mini 0.50% $9.15 291.59m 1h51m
31 GPT 5.4 (high) 0.50% $2.27 - 15m58s
32 Muse Spark 1.2 0.50% $2.47 10.20m 26m38s
33 Claude Sonnet 4.6 0.50% - - 1h12m
34 Inkling Small 0.50% $0.48 - 28m31s
35 Hy4 Preview 0.00% $12.81 42.61m 2h10m
36 DeepSeek V4 Pro 0813 0.00% $3.41 56.65m 1h23m
37 Claude Sonnet 5 0.00% $24.36 - 1h31m
38 Qwen 3.8 Max 0.00% $12.36 - 5h54m
39 Gemini 3.7 Flash 0.00% $7.13 27.07m 21m30s
40 Claude Opus 4.7 0.00% - - 54m07s
41 GPT-5.6 Luna 0.00% $0.94 - 41m34s
42 DeepSeek V4 Flash 0731 0.00% $1.29 59.36m 5h39m
43 GPT 5.4 (xhigh) 0.00% - - 39m46s
44 GLM 5.3 Flash 0.00% $1.60 44.94m 5h30m
45 Grok 4.5 0.00% $4.12 - 18m59s
46 GPT 5.4 Mini 0.00% - - 53m45s
47 Gemini 3.6 Flash 0.00% $5.92 - 47m33s
48 Muse Spark 1.1 0.00% $13.06 - 5h43m
49 Gemini 3.5 Flash 0.00% - - 18m25s
50 GLM 5.1 0.00% - - 1h06m
51 Gemini 3.1 Pro Preview (02/26) 0.00% $2.63 - 12m36s
52 Qwen 3.6 Plus 0.00% - - 33m01s
53 Qwen 3.8 27B 0.00% $17.99 34.95m 5h57m
54 Kimi K2.7 Code 0.00% $3.19 - 1h04m
55 Kimi K2.6 0.00% - - 1h20m
56 Nemotron 3 Ultra 0.00% - - 1h02m
57 DeepSeek V4 0.00% - - 1h03m
58 Gemini 3 Flash (12/25) 0.00% $0.44 - 6m59s
59 Gemini 3.5 Flash Lite 0.00% $0.34 - 7m15s
60 Claude Haiku 4.5 (Thinking) 0.00% - - 7m37s
61 Grok 4.3 0.00% $0.36 - 3m56s
62 Nemotron 3.5 Lightning 0.00% $0.22 - 24m26s
63 Laguna XS.2 0.00% - - 25m42s
64 Inkling 0.00% $4.14 21.24m 45m34s
65 Laguna M.1 0.00% - - 1h22m
66 Gemini 3.1 Flash Lite Preview 0.00% $0.06 - 2m56s
67 MiniMax-M2.7 0.00% - - 24m20s

Background

ProgramBench evaluates whether models can reconstruct command-line programs from an executable binary and a behavioral specification. Each task asks the model to produce an implementation from scratch that compiles and passes the benchmark’s hidden tests.

The benchmark’s headline metric is intentionally strict: a task is counted as Fully Resolved only when the submitted implementation passes all tests. Like the original benchmark, we also report Almost Resolved, the percentage of tasks where at least 95% of hidden tests pass. Finally, Raw Pass Rate reports the average percent of hidden behavioral tests passed per task.

This benchmark was developed by the ProgramBench team; we’d like to thank them for their efforts in building this benchmark. If you’re interested in learning more about ProgramBench, visit programbench.com.

Results

Results summary

ProgramBench leaders by raw pass rate
Model Raw Pass Rate Almost Resolved Fully Resolved
Claude Fable 5.2 87.8% 127 38
Claude Opus 5.5 87.0% 130 37
GPT-6 Astra 85.4% 100 11
GPT-6.1 Sol 85.3% 92 6
Gemini 4 Argon 83.7% 82 5

Pass-rate distribution. The top models each pass at least half of the hidden tests on most tasks. They separate at the 95% threshold.

Task-level scores. Many tasks reach a 95% pass rate for at least one model, and some are fully solved by at least one model.

Interactive analysis

Loading interactive charts and the task-level heatmap.


Methodology

We evaluate models on the 200 public ProgramBench tasks. Each task gives the model a compiled command-line program and a behavioral specification, then asks the model to produce a cleanroom source-code implementation that matches the original program’s behavior.

All models use the same mini-SWE-agent harness, orchestrated through Valkyrie with model calls routed through model-library. The agent has a bash tool, an offline sandbox, and the ProgramBench cleanroom prompt. It may inspect the provided files and run the executable, but it may not use the internet, look up source code or package registries, wrap the provided binary, reuse object files, or use decompilers, disassemblers, tracing, or instrumentation. The provided binary is execute-only.

We follow the public ProgramBench evaluation setup. Models receive 1,000 steps, a 6 hour wall-clock limit, a 180 second action timeout, and 10,000 character head/tail tool-output truncation. A submission contains source files and a compile script. We compile the submission once, then evaluate each hidden test branch in a fresh container created from the compiled image. First-pass branch evaluations use 10 xdist workers.