Researchers’ TransHarness improved a coding agent beyond the tasks used to tune it
The method raised the DeepSWE v1.1 success rate from the base harness’s 73.2 per cent to 76.4 per cent. Harness rules were evolved from tasks in different repositories. The difference is not statistically certain.
Researchers from Huazhong University of Science and Technology in China, China Unicom and other institutions published the TransHarness method on arXiv on 25 November. The paper is a preprint.
The method evolves the harness, the program that steers an agent, gives the model its tools and runs its steps. When a harness is evolved automatically from earlier runs, the improvement can easily show up only on the benchmark used for tuning. The researchers ran the Meta-Harness method on their own evolution data. Its score rose by 2.0 percentage points on the evolution tasks but fell by 4.1 points on the DeepSWE v1.1 benchmark.
The authors calculate the net benefit from two parts. A change recovers some failed runs but breaks some successful ones. A strong agent has little to recover and much to break.
TransHarness compares a successful and a failed run of the same task. The rules derived from this comparison determine at which points in a run the harness prompts the agent to check its solution against the task’s requirements and evidence. In a new Koota task, a rule asked the agent, after the local tests had passed, to check whether the tests covered the requirements. The agent added a missing test and fixed a cache key. The researchers trialled the rules on recorded runs and screened out instructions that relied on the original task’s solution.
The rules were evolved from 300 runs on 100 SWE-bench Pro tasks. None of the tasks’ repositories is among DeepSWE’s 91 repositories.
The table compares evolution methods using the same model and base harness, all starting from the same 300 runs, each with its own search budget. No RRSI candidate passed the method’s acceptance rule, so the table shows the candidate that performed best on the evolution tasks:
| Method | Success rate, % | Recovered runs, % | Broken runs, % |
|---|---|---|---|
| Base harness | 73.2 | – | – |
| Meta-Harness | 69.0 | 12.7 | 16.8 |
| Self-Harness | 73.5 | 13.3 | 13.0 |
| RRSI | 73.5 | 11.5 | 11.2 |
| TransHarness | 76.4 | 13.0 | 9.7 |
Measured by the researchers: DeepSWE v1.1, DeepSeek V4.1 Flash (1017) and the Mini-SWE 2.4.6 harness, mean of three runs. Recovered and broken runs are shares of all run pairs.
TransHarness recovered roughly as many runs as Self-Harness but broke fewer. Even so, its gain over the base harness is not statistically certain. The 95 per cent confidence interval for the gain is −2.4 to 8.8 percentage points, and across the three runs the gain ranged from 0.0 to 6.2 points. Harnesses evolved on smaller sets of 25 or 50 tasks fell below the baseline.
On the Terminal-Bench 2.1 benchmark, the DeepSeek model reached 95.5 per cent with DeepSeek’s own harness, but the confidence interval for this gain, too, is −1.1 to 12.4 points. The method also improved results for Qwen and GLM models, the authors said. The lead over GPT-6 Astra (2.4 points on DeepSWE and 5.6 on Terminal-Bench 2.1) rests on publicly reported results that the researchers did not measure themselves.
When the check prompt was replaced with a ready-made fix instruction, the score fell to 65.5 per cent. Evolving the rules took 132.7 million tokens; Self-Harness took 4,226.3 million. The authors attribute the difference mainly to TransHarness not needing new test runs. The figures do not include collecting the shared run archive.
As of 27 November, the OpenTrain AI service had not found a maintained implementation of the method.
Read more: How an agent works · Agent map