Benchmarks like SWE-bench and Terminal-Bench give coding agents specific tasks to solve. In our Beaker experiments, we test how well coding agents can improve the harnesses of other agents.
We tested Codex, Claude Code, and Antigravity in that role. In Beaker, we call it the reflection agent. It reviews traces from training tasks, looks for recurring failures, and proposes changes to the target agent harness. We then measure how much those changes improve performance on tasks held out during optimization.
Codex
The Surgeon
Finds patterns in traces and makes targeted edits.
Claude Code
The Architect
Changes the structure when it finds a better way to solve the task.
Antigravity
The Explorer
Investigates a wider set of failures before choosing what to change.
The experiment: two contrasting benchmarks
For each benchmark, all three reflection setups started from the same target agent. We compared how each setup investigated failures, which changes it made, how much time and money it spent per round, and how much the resulting agent improved on held-out tasks. We used the same training and held-out test splits, the same evaluator, and the same rule for when to stop optimization.
- AutomationBench: A multi-turn enterprise workflow agent (
120training tasks,104held-out test tasks) with editable code, system prompt, and domain playbooks. - JobBench: A benchmark of professional tasks that ask an agent to analyze source materials and produce deliverables. We ran each reflection setup once, with
22training tasks and11held-out test tasks per run.
On every round, the reflection agent inspects failing training traces and proposes a candidate diff; the optimization loop then evaluates it against the current leader on the training split—promoting only candidates whose improvement clears the noise gate. Held-out test tasks are never visible during optimization.
How scores evolved on AutomationBench
The curves below show how training scores evolved across multiple AutomationBench runs and how each selected agent performed on held-out tasks. All three setups improved on their starting scores on held-out tasks.
AutomationBench · 120 train → 104 held-out test
Optimization trajectories vs. held-out generalization
Train 65.5% → 88.6% · Test 82.4%
Train 68.7% → 95.4% · Test 81.9%
Train 69.0% → 79.0% · Test 79.2%
How scores evolved on JobBench
All three setups improved on their starting scores on held-out tasks. Each setup ran once, with a single held-out evaluation of the starting and selected versions on 11 tasks.
JobBench · 22 train → 11 held-out test
Optimization trajectories vs. held-out generalization
Train 43.3% → 52.2% · Test 57.9%
Train 44.0% → 46.5% · Test 52.2%
Train 41.3% → 46.1% · Test 51.8%
How they explore traces
On both benchmarks, the reflection agent starts by investigating failures. On AutomationBench, a trace can show where a workflow went wrong across several turns and tool calls. On JobBench, the reflection agent can trace a gap in a deliverable back to how the target agent read its sources, performed a calculation, or checked its work.
The first AutomationBench round gives us a close-up of how the three setups investigate.
Round 1 · Live replay · 120 training tasks
Three agents running the exact same reflection round
- The Surgeon (Codex + GPT 6.1 Sol) sampled failing traces and wrote a script,
proposals/sweep.py, to look for patterns across cases before making a targeted edit. - The Architect (Claude Code + Fable 5.2) moved quickly between trace analysis and the codebase, using that first pass to identify a bottleneck and test a change.
- The Explorer (Antigravity + Gemini 4 Neon) kept digging into traces and archived runs, following failures into specific parts of the codebase, including the Gmail and Slack tools.
The scope of their changes
Across both benchmarks, Codex made targeted edits and Claude Code changed how the target agent worked. Antigravity’s edits varied more in scope. The AutomationBench heatmap shows where those edits landed in the repository.
Same repo · Three optimization strategies
Where each harness edits the agent (H01 → H14)
gpt-6.1-sol
Surgical plumbing
claude-fable-5-2
Focused playbooks
gemini-4-neon
Full encyclopedia
On JobBench, Codex kept its changes to the system prompt. Claude Code changed five files and added a built-in web search tool. Antigravity also enabled native web search, with a two-file patch despite the broad investigation.
How long reflection takes and what it costs
On both benchmarks, Claude Code had the shortest reflection rounds on average, and Codex had the lowest mean cost per round. Antigravity dug deeper into training cases. On JobBench, it cited all 22 training cases, as did Claude Code, and made more archive reads than either of the other setups. That broader investigation took more time per round. Antigravity’s recorded mean cost was higher than Claude Code’s on AutomationBench and lower on JobBench.
AutomationBench
- Codex$1.42 · +10.19 pp · 10.8 min · 17 rounds
- Claude Code$3.17 · +11.42 pp · 4.1 min · 23 rounds
- Antigravity$3.89 · +11.15 pp · 14.5 min · 18 rounds*
JobBench
- Codex$1.72 · +4.20 pp · 10.9 min · 7 rounds
- Claude Code$2.99 · +9.85 pp · 3.9 min · 8 rounds
- Antigravity$2.36 · +1.92 pp · 11.6 min · 5 rounds
Claude Code achieved the highest held-out score in both AutomationBench campaigns and in the JobBench comparison. The JobBench points each come from one run, with held-out scores measured on 11 tasks.
Conclusion
Across AutomationBench and JobBench, the choice of reflection setup shaped which failures got investigated and what changed in the target agent. On AutomationBench, 42–45 of the 104 held-out tasks were fully solved by all three optimized agents in each campaign, and each setup solved 4–8 tasks that both of the others missed.
A follow-up experiment would run the reflection harnesses in sequence. Each harness would pick up where the previous one left off, letting us test whether it can fix failures the previous harness missed while preserving the gains already made.
Beaker proactively maintains your production AI agents. It autonomously finds failures, validates fixes, and opens pull requests with the improvements that work. Try it for free now to run your own controlled optimization experiments, or talk to us.