arXiv(opens in a new tab)cs.SESep 2026Cited by 14 papers on PaperVantage

Manuscript Offprint

arXiv:2609.01437

HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?

Yuhao Wu, Jingyuan Zhang, Jiajun Shi, Xinping Lei, Qingshui Gu, Yuxuan Zhang, Zexuan Wang, Chen He, Chen Huang, Maojia Song, Zhiyuan Zeng, Shaowen Wang, Jinkai Liu, Yunfeng Shi, Jiaheng Liu, Shen Yan, Wenhao Huang, Ge Zhang, Wenxuan Zhang

Abstract

As agents move from research prototypes to deployed tools, their capability increasingly depends on model-external execution infrastructure, commonly termed the agent harness. Changing this harness while holding model weights fixed can substantially alter task performance. Current agent evaluations typically report downstream performance under a chosen harness, leaving a model's ability to develop the harness itself comparatively underexplored. We introduce HARNESSDEV, a benchmark that shifts the unit of evaluation from task outputs to runnable infrastructure. HARNESSDEV covers two stages. In Creation, the agent starts from a minimal seed and a small number of cases, then builds a complete execution system. In Evolution, it starts from its own created harness and iteratively revises it using downstream execution feedback, with the goal of improving benchmark performance. We then evaluate each constructed harness on capability—task success on held-out benchmarks, and efficiency—execution-token cost. The reported Creation results cover six creator LLMs, four domains, and five downstream benchmarks totaling 2,207 unique downstream instances, with hidden evaluation tasks withheld from development. We find that generated harnesses remain substantially behind mature human-engineered references on code and on search and research, while matching or exceeding the selected references on writing and machine-learning experimentation, with large variation in execution cost. Evolution produces some performance gains, but they are unstable and transfer only partially to held-out tasks. Experiments with a fixed runtime model further show that the gains depend strongly on the model executing the harness, indicating limited transfer across models.

Date: September 2, 2026

Project Page: https://self-developing-agents.github.io/

1 Introduction

As agents move from research prototypes to deployed tools such as coding assistants [2, 32], data-analysis copilots, browser workers [5], and research pipelines, their capability increasingly depends on software outside the model's weights. This surrounding execution infrastructure, commonly termed the agent harness [31, 39], manages the execution loop, tool use, context, failure recovery, and result verification that turn model outputs into actions [3]. Its impact is substantial: with identical weights, GPT-5 solves 35.2% of Terminal-Bench 2.1 inside Terminus 2 but 49.6% inside Codex CLI [45]. As agents specialize to more domains, the demand for purpose-built harnesses will continue to grow. Because these systems require continuous development rather than one-time implementation, a practical question is whether LLMs can assist harness engineers—or even take over such a role—in building and continually improving the harness.

Figure

Figure 1 HarnessDev covers two stages of harness development. In Creation, a creator builds a complete harness from a weak but runnable seed and a small number of development cases. In Evolution, it continues to improve its own persistent harness using downstream execution feedback. Both stages evaluate runnable infrastructure that persists across tasks rather than a one-off task output.

Despite this practical need, most agent evaluations select a harness for a given comparison and report model performance on downstream tasks [18, 26, 29, 54, 61]. This setup supports controlled task-level comparison, but treats the harness as part of the experimental configuration rather than as an artifact to be developed. Recent work has begun to study harness representations, automated agent design, and agents that build or improve agent systems [15, 27, 31, 39, 56, 57]. However, it remains underexplored whether models can both create and continually improve runnable, persistent harnesses. Answering this question requires separating the model that develops the harness from the model that executes downstream tasks, recording the development environment, and measuring downstream performance, transfer across executors, distance from human-engineered systems, regression, and cost.

This evaluation gap is particularly consequential because harness engineering is fundamentally different from ordinary code editing. When a model modifies a standalone program, the target behavior is externally specified and success is locally verifiable. When a model modifies its own harness, it is editing the execution substrate through which it acts: the change alters how the model itself observes, plans, and recovers in all future tasks. Effective harness improvement therefore demands that the model recognize its own behavioral limitations from execution traces [42], diagnose structural bottlenecks in the system it runs inside, and commit targeted changes that accumulate into lasting, reusable capability gains rather than one-off fixes [49, 53]. As frontier models grow capable enough to edit multi-file codebases and close real pull requests, this ability is already latent; what is missing is a benchmark that measures it.

We introduce HarnessDev (Figure 1), a benchmark that fills this gap by shifting the unit of evaluation from task outputs to runnable infrastructure: measuring a model's ability to construct and maintain execution systems that are durable, inspectable, and reusable. The name reflects the software-engineering sense of develop: developing a harness includes both building it from scratch (i.e., Creation) and improving it through continued iteration and maintenance (i.e., Evolution). The benchmark covers two stages of harness development. In Creation, a creator LLM starts from a deliberately weak but runnable seed and builds a complete harness for a new task family. In Evolution, it starts from an existing harness and continues to develop it toward better downstream task performance. Together, the two stages evaluate whether models can complete harness development tasks and continuously improve the resulting system.

Evaluating a generated harness is harder than evaluating a generated answer. A harness can overfit to the model that wrote it, memorize development examples, improve one capability while silently regressing another, or improve the feedback-set score through benchmark-specific changes that do not transfer to new tasks. We therefore evaluate along two axes. Capability measures whether the harness works: we run it on held-out downstream tasks and report task-level success rates. Efficiency measures how many executor-model tokens the frozen harness consumes when deployed to solve downstream tasks.

Our findings follow the two stages of harness development:

Harness Creation. Current models can construct runnable harnesses from a weak seed, but the gap from mature human-engineered systems varies substantially by harness type. When each harness runs with the model that built it, model-built harnesses match the reference on short-form writing and exceed it on machine-learning experimentation. The gap is largest for search and research harnesses, which require long-horizon information seeking, and remains substantial for code harnesses, which must coordinate repository inspection, editing, and verification over many turns. Harnesses built by different creator models also differ substantially not only in downstream task performance, but also in the number of executor tokens they consume. Higher execution cost does not reliably produce better results, so harness quality must be assessed through both capability and efficiency.

Harness Evolution. Current models can use downstream execution feedback to improve their own harnesses, but reliable evolution remains difficult. Performance often rises and falls across successive revisions, and gains observed during development become smaller and less consistent on unseen tasks. The outcome also depends strongly on the model that runs the harness: changing this runtime model alters both the starting performance and whether subsequent revisions help. These results show that models can make useful local improvements, while robust evolution across unseen tasks and runtime models remains an open challenge.

References (43)