Skip to content
Blog
Research

What kind of engineer is your coding agent?

Thomas Vujasinovic

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 (120 training tasks, 104 held-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 22 training tasks and 11 held-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

ValidatedInvalidated
HELD-OUT TEST (104)65%70%75%80%85%90%95%SeedH02H04H06H08H10H12H14TRAINING HYPOTHESIS ROUND (120 TASKS)82.4%Claude81.9%Antigravity79.2%Codex
Hover or focus a point to see the changes and scores.
Claude Code
+10.3pp test

Train 65.5% → 88.6% · Test 82.4%

-6.2pp gap10 files · 47.5m
Antigravity
+12.7pp test

Train 68.7% → 95.4% · Test 81.9%

-13.5pp gap27 files · 191.1m
Codex
+8.9pp test

Train 69.0% → 79.0% · Test 79.2%

+0.2pp (0 overfit)6 files · 103.8m

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

ValidatedInvalidated
HELD-OUT TEST (11)40%45%50%55%60%SeedH02H04H06H08TRAINING HYPOTHESIS ROUND (22 TASKS)57.9%Claude52.2%Antigravity51.8%Codex
Hover or focus a point to see the changes and scores.
Claude Code
+9.85pp test

Train 43.3% → 52.2% · Test 57.9%

+5.7pp test vs. train5 files
Antigravity
+1.92pp test

Train 44.0% → 46.5% · Test 52.2%

+5.7pp test vs. train2 files
Codex
+4.20pp test

Train 41.3% → 46.1% · Test 51.8%

+5.6pp test vs. train1 file

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

0.0 min
Claude Code
claude-fable-5-2Starting round...
✓2.4m · $2.08 · H01 +12.7pp
Codex
gpt-6.1-solStarting round...
✓9m · $1.19 · H01 +5.6pp
Antigravity
gemini-4-neonStarting round...
✓29.3m · $7.90 · H01 +8.2pp
0m5m10m15m20m25m30m
Real Round 1 durations, tool sequences, costs, and validated train deltas.Click or drag any track to scrub
  • 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)

Seed (H00)
Codex

gpt-6.1-sol

Surgical plumbing

0 / 30
Seed
Python runtime (src/)0/4
environment.pyskills_tools.pyrunner.pyprompts.py
System prompt0/1
prompts/system.md
App skills (skills/apps/)0/19
gmailslacksheetsconfluencesalesforcemondaytrellozendeskfreshdeskgoogle_adsbamboohrpipefyzoomlinkedinzoho_deskgorgiashiverhelpcrunchintercom
Domain playbooks (skills/domains/)0/6
salessupportfinancehrmarketingoperations
79.0% train → 79.2% test (0 overfit)
Claude Code

claude-fable-5-2

Focused playbooks

0 / 30
Seed
Python runtime (src/)0/4
environment.pyskills_tools.pyrunner.pyprompts.py
System prompt0/1
prompts/system.md
App skills (skills/apps/)0/19
gmailslacksheetsconfluencesalesforcemondaytrellozendeskfreshdeskgoogle_adsbamboohrpipefyzoomlinkedinzoho_deskgorgiashiverhelpcrunchintercom
Domain playbooks (skills/domains/)0/6
salessupportfinancehrmarketingoperations
88.6% train → 82.4% test (-6.2pp gap)
Antigravity

gemini-4-neon

Full encyclopedia

0 / 30
Seed
Python runtime (src/)0/4
environment.pyskills_tools.pyrunner.pyprompts.py
System prompt0/1
prompts/system.md
App skills (skills/apps/)0/19
gmailslacksheetsconfluencesalesforcemondaytrellozendeskfreshdeskgoogle_adsbamboohrpipefyzoomlinkedinzoho_deskgorgiashiverhelpcrunchintercom
Domain playbooks (skills/domains/)0/6
salessupportfinancehrmarketingoperations
95.4% train → 81.9% test (-13.5pp gap)
Brighter tiles were edited across more validated rounds; red flashes show invalidated hypotheses.Click any round H00–H14 to inspect

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

Held-out gain (pp)051015$0$1$2$3$4$5Mean cost per round (USD)Codex: $1.42 per round, 10.8 min per round, +10.19 pp held outCodexClaude Code: $3.17 per round, 4.1 min per round, +11.42 pp held outClaude CodeAntigravity: $3.89 per round, 14.5 min per round, +11.15 pp held outAntigravity*
  • 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

Held-out gain (pp)051015$0$1$2$3$4$5Mean cost per round (USD)Codex: $1.72 per round, 10.9 min per round, +4.20 pp held outCodexClaude Code: $2.99 per round, 3.9 min per round, +9.85 pp held outClaude CodeAntigravity: $2.36 per round, 11.6 min per round, +1.92 pp held outAntigravity
  • 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
Mean cost and time use the reflection agent’s recorded model spend and session duration per round, excluding candidate evaluation. Held-out gain is the selected agent’s score minus its own starting score. AutomationBench gains are averaged across two campaigns. *Antigravity’s AutomationBench cost includes partial usage records, so its recorded mean may understate the full cost.

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.