Aube.Tuesday, 24 November 2026Support us

Aube.

News of progress
LabSingle source

Agent tunes its own harness, cutting task cost 26.1%

Languages for this article
Original · ENDEESFRITPT

Originally written in English. 6 languages available; yours is one click away.

Generated infographic: 26.1% — Agent tunes its own harness, cutting task cost 26.1%
AI-generated illustration

An AI agent that repeats the same searches, wanders through files it does not need and re-checks work it has already finished is paying for every wasted step. A team from Tsinghua University, Zhipu, Shanghai Jiao Tong University, the University of Warwick and Kuaishou has built a way for the agent to fix that itself. Their method, HarnessPro, lets the agent rewrite the harness it runs in: the framework that sets its prompts, its tools, its budgets and the order of its tasks. The paper went online as a preprint on arXiv on October 19, with Tang Jie, Zhipu's chief scientist, among the authors. The code is on GitHub.

The loop starts with the agent running its existing harness while the system records every tool call, the feedback from its environment and the tokens it consumes. A trajectory analysis agent then reviews several runs of the same task to find the causes of failure and the waste. A planning agent drafts three kinds of change, one favoring savings, one balance and one performance, and a harness editing agent applies each in its own workspace, tracked with Git so every change can be traced and rolled back. The hardest step was judging progress without reference answers or official tests. A test generation agent writes its own tests from the task description and early runs, then freezes them for every candidate. In early experiments, this raised the failure recall rate from 41.7% to 83.3%, compared with asking a model to read logs and decide whether a task had succeeded. Candidates that perform worse than the original harness, or lose on both cost and success to another version, are dropped. The rest move on in Lite, Medium and Heavy variants.

On Terminal-Bench 2, SWE-Bench Pro and ProgramBench, run with GPT-5.5 and Codex, the Heavy variant beat the earlier RHO method by 2.0 percentage points on average pass rate while cutting average cost per task by 26.1%. On Terminal-Bench 2, the pass rate rose from 76.3% to 80.8%, and the cost per task fell from $1.09 to $0.72. The picture is not uniform. On SWE-Bench Pro, the Medium variant passed 79.0% of tasks against RHO's 80.0%, but cost $1.26 per task instead of $2.68. The gains came mainly from matching reasoning effort and tool budgets to each task, nudging the agent to stop exploring, and compressing repeated logs and instructions.

Those cost figures cover running the tasks, not the search and evaluation that produced the harness, so the full bill for building a better harness is larger than the per-task number suggests. The tests are the team's own, and the results come from research experiments, not from products in service. The work follows Zhipu's September account of an Infra Agent powered by GLM-5.3, which helped build and tune the inference infrastructure for GLM-5.3-Flash and raised end-to-end throughput to about three times the initial baseline in under two weeks.

For anyone who runs agents at scale, the cost per task decides whether a project is affordable, and a method that trims it without giving up success changes that arithmetic. The team gives no date for when HarnessPro might reach commercial tools. For now, the code is public on GitHub, so other teams can examine it and test it on their own tasks.

26.1%lower average cost per task than the earlier RHO method, in the team's tests

Sources — read the originals(Paris time)

PandailyEN
0000

Read next

Comments

Loading the thread…

Sign in to leave a comment. Sign in