AI News
All stories
Reported

Google researchers compare how much freedom optimizers get to rewrite agent harnesses

Google researchers found that an unrestricted harness rewrite solved 42.5% of held-out tasks, versus 40% for gated single-module edits, but used about 9.7 times the tokens per task.

Research · · 2 min read

Google researchers found that letting an optimizer rewrite an entire agent harness solved 42.5% of held-out tasks. Gated changes, which edited one harness module at a time, solved 40%. The full rewrites used about 451.6K tokens per task, compared with about 46.7K for the gated edits, roughly 9.7 times as much. The study, titled Harnesses That Improve Themselves, examined how much control an automated optimizer should have when it improves an agent's harness. The harness is the code around a frozen task model that handles context, control flow, tools and verification.

The paper divides editable harness code into four areas. Context and state determine which history and intermediate results reach the model. Control sets when the agent continues, retries or stops. Tools determine how the agent reads and changes its environment. Verification and recovery check the work and send failures back for another attempt. This split gives the optimizer a specific place to repair a recurring behavior, such as an agent that stops before its tests have run. Adding more reasoning instructions can leave that problem alone, since the runtime still accepts the model's decision to finish. A separate completion check instead asks whether a file changed, whether the latest edit was tested and whether that test passed.

The researchers compared three approaches against the original harness, which solved 5.0% of held-out tasks. Prompt rules alone solved 2.5%, below the original. Unrestricted full rewrites solved 42.5%, and gated module edits solved 40.0%. Across the 40 held-out tasks, the gap between the two optimizer approaches amounts to one task. The authors describe the sample as small and their percentages as directional, so the gap should be read as a sign of direction rather than a settled margin. The token figures show the cost: the full rewrite used about 9.7 times as many tokens per task for that single extra success.

The paper also shows how a single change can look good on one measure and fail on another. One proposed change raised the turn limit from 12 to 18. Development performance improved, but validation performance fell and token use exceeded the cap. The system rejected the change and kept the existing code. A review of development scores alone would have missed the regression. More attempts can help the examples used for debugging while making other tasks slower or less reliable. The validation check under a token budget is what caught it.

Why it matters

Teams building self-improving agents may find that a success score alone hides large differences in cost, and that optimizer changes need validation on tasks the agent already solved.

What you can do

When automating harness changes, test candidate edits on previously passing tasks as well as failing ones, and record token usage next to each result.

Original source

We have no link to the original source for this story yet.

Where we saw it

1 source

AI Engineering

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works