arXiv:2610.01235cs.CLOct 2026

Manuscript Offprint

arXiv:2610.01235

Harness Annealing: Learning to Act with Less External Control

Yingxuan Yang, Huacan Chai, Ying Wen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Language agents rely on external harnesses to track state, organize workflows, and verify answers. Beyond providing tools and information, these harnesses supply control decisions about what to investigate, whether to revise, and when to stop. Training on successful harness-supported trajectories can improve task performance while leaving these decisions dependent on runtime intervention. We ask whether harness-supported experience can also teach the model to make these decisions, allowing the division of control to change as the model learns. We call this objective harness internalization: learning to assume specified control responsibilities while retaining task performance after the corresponding support is withdrawn. We introduce HARNESS ANNEALING TRAINING (HAT), which combines explicit control supervision with a curriculum over teacher trajectories collected under progressively weaker harnesses. Experiments with 9B and 35B models on SWE-QA and SWE-QA-Pro evaluate every checkpoint under four deployment harnesses. Selected annealed checkpoints operating with tools alone achieve scores close to those of their respective starting checkpoints deployed with the full harness. The benefits vary with model scale and deployment configuration, and further annealing does not uniformly improve performance. These findings suggest that harness-supported experience can help reduce the runtime control required by a trained agent.

1 INTRODUCTION

LLM agents typically consist of a backbone model and an external execution framework, commonly referred to as a harness (Yang et al., 2024; Zhang et al., 2026). The harness supports task execution by maintaining state, organizing workflows, and checking candidate answers (Chen et al., 2026). These components supply control decisions about what to investigate, whether further evidence is needed, and when to stop. Successful harness-supported interactions therefore provide experience from which a model can learn both task execution and the judgments that guide it. However, training on these interactions can improve task performance while leaving the model dependent on external intervention for those judgments. The model may thus continue to require the same runtime guidance even after learning from the experience it helped produce. If these control responsibilities can be learned, support that was useful for generating training experience may become unnecessary at deployment. This motivates a central question: can harness-supported experience teach the model to assume specified control responsibilities while preserving task performance as the corresponding support is withdrawn?

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author: Ying Wen.

(a) Control ownership

Harness supplies control

External Verify

Need more evidence

Remove

Verify

Follow

feedback

Search

May stop

early

Train, then

withdraw Verify

Goal: model supplies control

LLM

Need more

evidence

Self-check

Search

Supervised targets

Direct SFT Recorded model outputs

HAT adds Constructed control targets

(b) Learning to act with less external control

Control gap

After support

withdrawal

Harness

Annealing

Internalization goal

Same reduced

support

Risk of control

failure

Control supervision

Training sources

★ Supported answer

H4H_{4} T S W V

H3H_{3} T S W

H2H_{2} T S

H1H_{1} T

Retain task

performance

T Tools S State W Workflow V Verification

Figure 1: Learning to retain task performance with less external control. (a) Control ownership. Following verifier feedback does not ensure independent judgment after its removal; state, workflow, and tools remain. (b) Harness annealing. HAT combines explicit control supervision with a curriculum over progressively weaker source harnesses. Paths schematically contrast potential control gaps with intended behavior under the same reduced support.

We call the corresponding learning objective Harness Internalization: learning to assume specified control responsibilities while maintaining task performance after the associated external support is withdrawn. We focus on state tracking, workflow organization, and answer verification; tools and execution infrastructure remain external. Figure 1 illustrates this objective through verification: after external checking is removed, the model must assess whether the available evidence supports its answer and continue exploration when necessary. However, continued exploration in a successful trajectory may simply be a response to a verifier rejecting the model's draft. Learning the actions that follow this intervention does not guarantee that the model will independently recognize the need for further investigation. Successful execution under the full harness is therefore insufficient to establish internalization. Evaluation must also examine task performance and control-related behavior after the corresponding support is removed.

Existing work improves model–harness collaboration in several ways. Adaptive harnesses optimize workflows, runtime code, or composable components to improve external support (Lee et al., 2026; Chen et al., 2026). Trajectory-based training instead updates the model using successful interactions (Chen et al., 2023; Zeng et al., 2023), but harness-generated prompts, states, and interventions typically remain conditioning inputs rather than explicit supervision targets. Related approaches, including skill distillation and workflow compilation, explore transferring external guidance into model weights. Our focus is the transfer of specified runtime control responsibilities, assessed through task performance and control-related behavior after support withdrawal. We study this transfer through a hierarchy of state, workflow, and verification support, evaluating each checkpoint both with and without the corresponding control layers.

We introduce HARNESS ANNEALING TRAINING (HAT), which combines explicit control supervision with a stronger-to-weaker harness curriculum. Using a fixed bank of teacher trajectories, we retain interaction observations and teacher actions while constructing control annotations that distinguish externally supplied information from judgments the model must learn to produce. Starting from a checkpoint trained on full-harness trajectories, training progressively introduces records from source harnesses without verification, then workflow, and finally state support. Supervision covers both newly targeted responsibilities and those addressed at earlier stages, with replay and cue dropout supplementing the curriculum. We evaluate 9B and 35B models on SWE-QA and SWE-QA-Pro (Peng et al., 2026; Cai et al., 2026), testing every training checkpoint under all four deployment harnesses. Selected intermediate checkpoints achieve tools-only scores close to those of their respective starting checkpoints deployed with the full harness. For the 9B model, the H2H_{2}-targeted checkpoint improves tools-only scores over the H4H_{4}-trained starting checkpoint by 5.01 points on SWE-QA and 3.09 points on SWE-QA-Pro. The gains vary with model scale and deployment configuration, and further annealing does not uniformly improve performance.

Our contributions are threefold:

  1. We formulate Harness Internalization as a learning objective: transferring specified process-control responsibilities to the model while retaining task performance after the corresponding external support is withdrawn. We assess progress through task performance and control-related behavior under predefined support removals.

  2. We introduce HARNESS ANNEALING TRAINING (HAT), which combines explicit control supervision with a curriculum over progressively weaker harness support, supplemented by replay and cue dropout, to train agents for deployment with less external guidance.

  3. We evaluate the full checkpoint-by-harness matrix at two model scales on SWE-QA and SWE-QA-Pro, showing improvements under weak support and revealing how preferred checkpoints vary with model scale and deployment objective.