Paper: arXiv 2611.11995 (a preprint, not yet peer reviewed).
The checklist
- Write down the score, the rules and some tests the agent can't see. Every win in the paper came through a judge the agent couldn't edit: public tests to develop against, private tests in a separate container for the score.
- Pick the shape of the run. Small, self-contained jobs (one function, one kernel): several short tries in parallel did as well as one long run (102.6%). Whole systems: one long run (four short runs reached only 77.3%). Compare agents at the length you'll really run them: the leader at 25% of the budget wasn't the winner.
- Put a reviewer between the agent and "done". A second model that checks each change against your written rules, not just your tests (prompt below). In the paper it rejected 5 submissions that passed the public tests or broke the rules, including the downloaded codec.
- Check that your tests run the new code. Clear caches between benchmark runs, call the function you edited (not another with the same name), and log that the new code path actually ran.
- When it says it's finished, send it back once. A stop hook did that in the paper: +24.8%, +14.0% and +7.3% in three runs, inside the time they already had (Claude Code version below).
- Don't stop at the first plateau. 135 of 150 runs improved after halfway; 51 set a new best after a quarter of their budget with no gain.
A stop hook for Claude Code (send it back once)
In .claude/settings.json (project) or ~/.claude/settings.json (all projects):
{
"hooks": {
"Stop": [
{ "hooks": [ { "type": "command", "command": "python3 \"$CLAUDE_PROJECT_DIR\"/.claude/hooks/keep_going.py" } ] }
]
}
}.claude/hooks/keep_going.py:
import json, sys
event = json.load(sys.stdin)
if event.get("stop_hook_active"): # already sent back once: let it stop
sys.exit(0)
print(json.dumps({"decision": "block", "reason":
"Before you stop: re-run the full test suite, compare the score with your best so far, "
"and try one more improvement if there is time left. Stop only if nothing improves."}))The stop_hook_active check is what makes it "once": without it, the agent can never finish. Check the Claude Code
hooks documentation for your version before relying on it.
A reviewer prompt (for a second model)
You review one change made by a coding agent. You see the task's written rules and the diff.
Reject the change if it does any of these, even when all tests pass:
- changes a computation the rules fix (order of operations, rounding, precision, an output layer)
- edits files or components the rules say not to touch
- submits work copied from elsewhere (downloaded weights, code or results) as its own
- reports something as done that the code doesn't do (a save, a write, a speed-up path that never runs)
Answer PASS or REJECT, then one line per rule broken, quoting the line of the diff.The paper's numbers
- Tasks won: Claude Opus 5.5 17, GPT-6 Astra 6, GPT-6.1 Sol 1, Qwen 3.8 Flash 1 (of 25).
- Rank score (100 = first on every task): Claude 91.2, Astra 75.2, Sol 54.4, Qwen 40.8, DeepSeek 30.4, GLM 8.0. At 25% of the budget Astra led 84.0 to 79.2; Claude led from halfway on.
- The codec: human-designed Quant-VideoGen 6.82x, Claude 19.86x average KV-cache compression, more compression on 400 of 400 test videos and frames closer to the original on average; decoding was slower on one of the two video models (18.5 s to 102.4 s per video).
- Caveats: one counted run per model per task; Claude ran in Claude Code and the others in Codex, so part of any gap may be the tool; the reviewer is itself an AI (GPT-6.1 Sol) and what it missed isn't measured.