Newsroom Wire

CN China11-20 08:19⏱ 4 min read

With just one code change, Google's AI agent harness optimization lifts task success rates 8-fold

With just one code change, Google's AI a

ITHome, Nov. 20 - A Google research paper published Nov. 17 local time, 'Harnesses That Improve Themselves,' shows that letting AI agents progressively modify their own harness and validating each change can significantly raise software engineering task success rates. In one SWE-bench Lite test, a modular optimization scheme lifted success from 5.0% to 40.0% - 8x - at about 46,700 tokens per task. The harness is not the underlying model but the framework around it that manages context and memory, controls multi-turn execution, calls external tools and verifies results. Unrestricted full rewrites scored slightly higher at 42.5% but cost about 451,600 tokens per task, nearly 10x more, while prompt-only edits fell to 2.5%. With Gemini 3.8 Flash as the base model on 40 held-out tasks, the modular scheme also transferred to Gemini 4 Argon at 37.5% versus 30.0%.

ITHome reported on Nov. 20 that a latest research paper by Google researchers, 'Harnesses That Improve Themselves,' published on Nov. 17 local time, shows that letting AI agents progressively modify their own harness and validating each change can significantly improve software engineering task completion rates. In one SWE-bench Lite test, an agent using the modular optimization scheme saw its task success rate rise from 5.0% to 40.0% - 8x the original - while consuming about 46,700 tokens per task on average.

40.0%

Task success rate (modular)

Up from a 5.0% baseline — an 8x jump

46.7K

Tokens per task (modular)

The full-rewrite route burns about 451.6K on the same test

451.6K

Tokens per task (full rewrite)

Nearly 10x the modular approach

2.5%

Success rate, prompt-only rules

Down from the 5.0% baseline

37.5%

Success rate on Gemini 4 Argon

Modular harness, transferred without re-optimization; full rewrite reaches 30.0%

142 lines

Initial harness code size

Split into four editable modules, one touched per round

Task success rate by approach (%)
Initial harnessPrompt rules onlyModular evolutionFull rewrite

Same base model (Gemini 3.8 Flash), same 40 held-out SWE-bench Lite tasks; "prompt rules only" is a separate experiment that edits just the prompt rule file. Full rewrite leads modular by only 2.5 percentage points — its token cost is in the next chart.

Average tokens per task
Modular evolutionFull rewrite

Same metric (average tokens per solved task) and same test; the full rewrite gains only 2.5 percentage points of success rate for nearly 10x the consumption.

Success rate after transfer to Gemini 4 Argon (%)
Modular evolutionFull rewrite

No fresh optimization search — harnesses carried over as-is; both fall below their 40.0% and 42.5% on the original model.

First page of the paper "Harnesses That Improve Themselves: A Unifying Framework for Self-Improving Agent Harnesses" by Deep Shah and Nehal Kathrotia (Google), arXiv 2611.22299, dated Nov 17, 2026
First page of the paper "Harnesses That Improve Themselves: A Unifying Framework for Self-Improving Agent Harnesses" by Deep Shah and Nehal Kathrotia (Google), arXiv 2611.22299, dated Nov 17, 2026IT之家

它并非底层 AI 模型本身,而是围绕模型构建的运行框架,负责管理上下文和记忆、控制多轮任务执行、调用外部工具,以及在任务结束前验证执行结果。

Harness 的自我改进不应仅依赖提示词,而应将重要约束落实到实际代码中。

— 研究人员
2026-11-17

谷歌研究人员当地时间 11 月 17 日最新发表的研究论文《Harnesses That Improve Themselves》(《能够自我改进的 Harness》)显示

The research focuses on the harness of AI agents. It is not the underlying AI model itself, but the runtime framework built around the model, responsible for managing context and memory, controlling multi-turn task execution, invoking external tools, and verifying execution results before a task ends.

The researchers point out that different models can show markedly different weaknesses in how they use tools and carry out tasks. A harness optimized for one model may therefore run into stalled tasks, excessive token consumption or degraded performance after being moved to another model.

To address this, the researchers propose a self-improving harness architecture. Unlike the traditional approach of constraining agents by modifying prompts, the scheme lets an optimizer model directly modify the harness's code, with tests deciding whether each change is kept. The experiments started from an initial coding-agent harness of only 142 lines of code, split into four editable modules covering context and state management, agent control, the tool-calling interface, and verification and failure recovery.

In each optimization round, the system allows only one module to be modified. The optimizer model first identifies problems from the agent's execution records and proposes code changes, then checks their effect on a validation set under a token usage cap. Only changes that pass validation are kept; proposals that fall short are discarded.

In the core test, the researchers used Gemini 3.8 Flash as the base model for executing tasks and evaluated the different schemes on 40 SWE-bench Lite software engineering tasks that did not participate in the optimization. The initial harness had a task success rate of 5.0%; with the modular modification and verification mechanism, the success rate rose to 40.0%, consuming about 46,700 tokens per task on average. As a comparison, allowing the optimizer model to rewrite the harness as a whole without restrictions achieved a 42.5% success rate, slightly higher than the modular scheme, but at about 451,600 tokens per task - nearly 10 times the modular approach. ITHome noted that another experiment, which only modified the prompt rule file to constrain the agent, instead dropped the task success rate from the initial 5.0% to 2.5%.

The study also examined how the optimized harness performs when moved to other models. Without rerunning the optimization search, the modular scheme reached a 37.5% success rate after transferring to Gemini 4 Argon, versus 30.0% for the full rewrite.

The researchers argue that harness self-improvement should not rely on prompts alone; important constraints should be implemented in actual code. For example, using automated tests to check task execution results, identifying repeated failures, and blocking unverified task completion can make agents more reliable at complex tasks. The paper also notes that letting agents modify their own running code brings new risks, including ever-expanding prompt content, over-optimization for benchmarks, and tampering with evaluation routines, so code changes need to be constrained by verification mechanisms and permission boundaries.

It is worth noting that the experiments mainly revolve around specific models and SWE-bench Lite software engineering tasks, and the core test set contains only 40 tasks that did not participate in the optimization - not yet enough to prove the method achieves the same results across all models and agent application scenarios.

01Editing code beats editing prompts

From the same 5.0% starting point, letting the optimizer edit harness code directly lifted success to 40.0%, while touching only the prompt rule file dropped it to 2.5%. The gap was measured on the same batch of 40 SWE-bench Lite tasks.

02Nearly 10x the tokens for 2.5 more points

Full rewrite scores 42.5% versus 40.0% for the modular route, but burns about 451.6K tokens per task instead of about 46.7K. By the paper's own numbers, the cost is out of proportion to the gain.

03Transferring to another model costs accuracy

Moved to Gemini 4 Argon without re-optimization, the modular harness scores 37.5% and the full rewrite 30.0% — both below their 40.0% and 42.5% on the original model. The article also warns that weaknesses differ across models, so a harness tuned for one model can stall on another.

0440 tasks is a small base — read it as a signal

The core test set is only 40 tasks that took no part in optimization, and the article itself says that is not enough to prove the method works across all models and agent scenarios. Treat it as evidence that verified self-improvement can work, not as a universal result.

Snapshot for aggregated reading; content from the public web, © the original publishers.

AI NewsCove

Opening article…