推論系統
Improving a Coding Agent Without Changing Its Model: Can the Testing Process Benefit Across Tasks?
TransHarness derives intervention strategies from success and failure records, then evaluates them on different benchmarks. The authors report higher scores, but two key results still do not clearly rule out the possibility of no net gain.

Teams with coding agents can improve how they check requirements, interpret tool results, and decide when work is complete without changing models. The TransHarness study attempts to derive intervention strategies from records of past successful and failed tasks that can carry over to new tasks, while keeping the underlying model weights unchanged. Proposed by researchers including Tianze Xia and submitted on November 25, this preprint reports cross-task test results, but its effectiveness should be considered alongside the uncertainty. Original paper and submission record
Improving “When to Prompt”
A harness is an execution framework wrapped around a model that orchestrates tool use, handles feedback, and checks for completion. TransHarness compares records of successful and failed attempts at the same task to generate strategies that include trigger conditions and diagnostic guidance. When the execution trace shows a relevant situation, the framework prompts the agent to recheck the requirements and the available evidence.
Candidate strategies are replayed against records from other tasks to check whether their triggers are too broad. A separate semantic screening process checks whether the diagnoses are supported and whether the guidance improperly carries over answers from the source task. “Separate” here means a distinct screening procedure within the research workflow, not validation by an external organization. The strategy set is frozen before evaluation on the target tests. Methods
Average Scores Rise, but Gains Remain Uncertain
The authors assembled a 100-problem source set from SWE-bench Pro, running each configuration three times per problem to obtain 300 trajectories. They then evaluated the improved harness on 113 problems from DeepSWE v1.1 and 89 problems from Terminal-Bench 2.1. The baseline and improved versions used the same model settings, tools, environments, and execution limits. The authors’ own evaluations report the average of three independent runs. Experimental setup
With DeepSeek V4.1 Flash (1017) paired with Mini-SWE, the DeepSWE score rose from 73.2% to 76.4%, an increase of 3.2 percentage points. With the same model paired with DeepSeek Harness, the Terminal-Bench score rose from 89.9% to 95.5%, an increase of 5.6 percentage points.
However, the paired-gain 95% confidence intervals reported in Table 8 of the paper are −2.4 to 8.8 and −1.1 to 12.4 percentage points, respectively; both include zero. In other words, the averages trend upward, but these data do not clearly rule out the possibility of no net gain. Nor should 95.5% be read as evidence that arbitrary terminal tasks can be completed reliably. These are all the authors’ experiments; this article did not run the software or rerun the benchmarks. Paired results and confidence intervals
The benchmark version also matters: the official site currently shows Terminal-Bench 4.1, while the paper tested version 2.1. The 95.5% result should be understood within the older test conditions and cannot be directly compared with current leaderboard results. Terminal-Bench official site
Acceptance Should Count Both Recoveries and Regressions
The study’s most useful reminder for teams is that interventions have costs. When the original success rate is higher, there are fewer failures to recover, while an incorrect intervention can still disrupt a run that would otherwise have succeeded. The paper therefore breaks net gain into two parts: “recovering originally failed runs” and “regressing on originally successful runs.” Net-gain analysis
Following this design, teams trying a similar approach could retain records of both successful and failed runs, then measure both kinds of change on tasks not used to develop the strategies. This is the engineering recommendation made here: a few impressive fixes are not enough to decide whether to adopt the approach; what matters for deployment is the net benefit on new tasks. The evidence makes this approach worth testing, but is not yet enough to promise benefits across projects.