Self-Harness: Harnesses That Improve Themselves

A preprint where an agent edits its own harness and tests each edit.

Author
Hangfan Zhang and seven co-authors, Shanghai Artificial Intelligence Laboratory
Published
20 August 2026 (version 3)
Kind
arXiv preprint with benchmark experiments
Original
arxiv.org/abs/2606.09498
Subject
Harnesses and agent loops

What it is

A team at a Shanghai research lab wrote the preprint. It argues that agent harnesses are hand-built and scale poorly across models. It proposes letting the model propose bounded edits to its own harness, then testing them.

What it says

What evidence it gives

Table 1 gives held-in, held-out and overall pass rates for three models on three benchmarks. The paper adds evolution charts, code diffs of kept edits and before-and-after trace cases. Each candidate was evaluated with two repeated attempts.

Interests and limits

The authors are researchers who built and tested their own method. They use small fixed subsets, such as 64 Terminal-Bench-2.0 tasks and 100 SWE-bench cases. The held-out split is hidden from the proposer but is used by the promotion gate. The starting harness is minimal, so gains begin from a low base. The results do not compare against human-built harnesses. Only three models were tested.