Abstract
Harness evolution offers a path to improving coding agents without updating model weights. However, existing methods can overfit their evolution benchmarks, producing gains that fail to carry over to new tasks. To address this challenge, we introduce Transferable Harness Evolution (TransHarness), which evolves harness intervention policies from same-task success–failure contrasts. These policies couple execution-context triggers with diagnostic guidance, enabling task-dependent checks and corrections beyond the source executions. Cross-task replay and independent semantic selection retain policies that intervene selectively and ground corrections in current-task evidence rather than source-specific solutions. We further curate an independent evolution set for cross-distribution transfer and conduct a cross-benchmark evaluation covering multiple strong models and a range of lightweight and mature harnesses. Experiments show that, with only 300 source trajectories from outside the test distribution, TransHarness further improves strong agents across distinct target benchmarks, demonstrating transferable harness evolution beyond benchmark overfitting. Specifically, TransHarness achieves state-of-the-art scores of 76.4% on DeepSWE v1.1 and 95.5% on Terminal-Bench 2.1, surpassing the strongest baseline model, GPT-6 Astra, by 2.4 and 5.6 percentage points, respectively.
Method
TransHarness evolves when a harness intervenes and how it guides the agent. Contrasting successful and failed executions of the same task reveals where the agent overlooked relevant evidence. Each candidate policy pairs an execution trigger with diagnostic guidance. Replay checks when the trigger fires across archived executions, and independent semantic review checks whether the guidance can apply to new tasks.
Results
TransHarness reaches 76.4% on DeepSWE v1.1 and 95.5% on Terminal-Bench 2.1, improving the corresponding DeepSeek harnesses by 3.2 and 5.6 percentage points.
Transfer under distribution shift
We selected 100 SWE-bench Pro tasks, favoring tasks with low historical resolution rates while retaining coverage across all 11 repositories in the source pool. The resulting set shares no repositories with DeepSWE v1.1 and differs from both target benchmarks in task type and application domain.
Performance on unseen requirement combinations
We measure transfer on target tasks whose exact combination of requirements is absent from the evolution set. All four DeepSeek configurations show positive mean gains on this subset. The comparison below shows how those gains relate to performance on the full benchmarks.
Case study in predicate-cache repair
A DeepSWE task asks the agent to extend query behavior in Koota, a TypeScript library for entity-component state management. After the existing tests pass, an evolved policy prompts the agent to check whether they cover the new requirements. A test for negated updates exposes a cache-key collision, and the agent updates the cache key to distinguish different query modifiers.
Evolution cost
Starting from the same Mini-SWE harness, TransHarness achieves the highest DeepSWE v1.1 success rate among the compared methods while using the fewest evolution tokens. Replay and review use the existing trajectory archive, so candidate screening requires no new scored source executions in this comparison.
Code and data
The code supports trajectory collection, harness evolution, and evaluation. The independent evolution set contains 100 tasks with executable environments and verifiers.
BibTeX
@misc{xia2026transharness,
title = {TransHarness: From Benchmark Overfitting to Transferable Harness Evolution},
author = {Xia, Tianze and Wang, Zimo and Tong, Heng and Liu, Zhaoxiang
and Lian, Shiguo and Huang, Fan and Liu, Wenyu and Wei, Yunchao
and Wang, Xinggang},
year = {2026},
eprint = {2611.33757},
archivePrefix = {arXiv},
primaryClass = {cs.AI},
url = {https://arxiv.org/abs/2611.33757}
}