Manuscript Offprint

arXiv:2611.04277

Harness-S: Learning from Sibling Harnesses for Generalizable Agent Training

Kangning Zhang, Wenxiang Jiao, Bowen Fang, Shuai Shao, Jiachen Zhu, Rong Shan, Shijian Wang, Hao Wang, Yuan Lu, Weiwen Liu, Weinan Zhang

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

Kangning Zhang¹, Wenxiang Jiao², Bowen Fang³, Shuai Shao¹, Jiachen Zhu¹, Rong Shan¹, Shijian Wang⁴, Hao Wang⁵, Yuan Lu², Weiwen Liu¹, Weinan Zhang¹

¹Shanghai Jiao Tong University, ²Xiaohongshu Inc., ³Zhongguancun Institute of Artificial Intelligence, ⁴Southeast University, ⁵Carnegie Mellon University

✉Corresponding authors

Harness evolution from a common base exhibits Locality, Complementarity, and Nonstationarity: variants repair different failures, and their utility changes as the policy learns. Rather than seeking a universally superior harness, we introduce Harness-S to selectively rescue failures of a base execution system through sibling harnesses and transfer the resulting capabilities into a single policy that remains effective under the original harness. Directional Harness Evolution develops specialized sibling harnesses along distinct repair directions, forming a reusable Sibling Harness Pool that remains fixed during policy training. Complementary Harness Rescue Training invokes this pool only when all initial attempts under the base harness fail. The same policy generates fresh rollouts under selected auxiliary harnesses, and these trajectories replace the failed group for reinforcement learning. An Adaptive Harness Router selects the Top-k variants using Harness Behavior Profiles and voting across multiple LLMs. Policy-aware profile re-anchoring refreshes this evidence as the policy learns. Across AppWorld, SWE-Gym, and DBBench, the trained policy substantially outperforms policy-only training when returned to the original base harness. Behavioral analyses and held-out cases support the transfer of harness-elicited behaviors into the policy itself. Reusing the router for Rank-1 inference provides additional gains at the same executor rollout count.

Contact: zhangkangning@sjtu.edu.cn, wenxiangjiaonju@gmail.com, liuww@sjtu.edu.cn

Code: https://github.com/DeepExperience/Harness-S

Keywords: Language model agents, agent harnesses, reinforcement learning, harness complementarity, harness routing

1 Introduction

An agent’s behavior depends jointly on its model policy and its harness: the prompts, tool interfaces, context and memory mechanisms, and execution rules that govern interaction with the environment. Even with model weights held fixed, the harness shapes the information the policy receives and how its decisions become actions. ReAct demonstrates the value of interleaving reasoning and action (Yao et al., 2023b), while SWE-agent shows how the design of the agent-computer interface affects task execution (Yang et al., 2024b). Recent methods automate the optimization of prompts, workflows, and harness code from execution feedback (Hu et al., 2025; Zhang et al., 2025; Agrawal et al., 2026; Lee et al., 2026). A central question is whether specialized execution support can improve the policy itself, so that its benefits persist under the original harness.

We study harness evolution from a common base H0H_0 within a single execution system, a setting motivated by recent work such as Meta-Harness (Lee et al., 2026), HarnessX (Chen et al., 2026b), and Life-Harness (Xu et al., 2026). We call the resulting variants sibling harnesses: they share the execution foundation of a complete system, such as DeepSeek Harness (DeepSeek-AI, 2026), while modifying how it supports the policy. Within this setting, we observe three properties:

  • Locality. Harness edits often repair a subset of failures while introducing regressions on previously solved tasks (Figure 1a). Their effects depend on the failures being targeted, so successive variants develop distinct strengths.

  • Complementarity. Sibling harnesses can recover one another’s errors. Their oracle union covers more tasks than individual variants or repeated sampling with H0H_0 at the same rollout count (Figure 1b), showing the benefit of diverse execution behaviors.

Figure

(a) Locality

(b) Complementarity

Figure

(c) Nonstationarity

Figure 1 Locality, complementarity, and nonstationarity in harness evolution (Qwen3.5-4B, AppWorld). (a) Repaired and regressed tasks relative to H0H_0; Δ\Delta Solved denotes repaired minus regressed tasks. (b) Individual success rates (bars), oracle coverage using one rollout under each of H1,…,HKH_1, \ldots, H_K (purple), and H0H_0 pass@K using the same number of rollouts (orange). (c) Paired outcomes for fixed harnesses as the policy is trained; Δ\Delta Solved is measured against H0H_0 at each checkpoint.

  • Nonstationarity. A harness's utility changes as the executing policy learns. Its advantage over H0H_0 can become a disadvantage, and the ranking of variants can reverse across policy checkpoints (Figure 1c).

These properties expose two limitations of harness optimization. (i) Combining local repairs into a universal harness is extremely difficult. Repairs may impose incompatible execution requirements, and even compatible edits can interfere with one another. A single accumulated design can therefore lose the strengths of its constituent variants. (ii) Coupled harness-policy evolution incurs substantial evolution cost and limits harness reuse. Alternating harness and policy updates (Chen et al., 2026b,c) requires repeated generation and validation of variants as earlier repairs become less useful to the changing policy. Gains achieved by the evolved pair may also fail to transfer when the policy returns to the base harness H0H_0. We introduce Harness-S to selectively rescue failures of the base system with specialized sibling harnesses and transfer the resulting capabilities into a single policy that remains effective under the original H0H_0.

Directional Harness Evolution first develops variants along distinct repair directions. Starting from H0H_0, we diagnose failures in execution trajectories and let each child harness target a limited set of related causes. Joint validation coverage selects the next parent set; all executable, protocol-compliant variants are retained. The resulting large, reusable Sibling Harness Pool preserves distinct repair specializations and remains fixed throughout policy training.

Complementary Harness Rescue Training uses this pool to expand exploration on tasks the policy fails to solve with H0H_0. When all initial rollouts for a task fail, the Adaptive Harness Router selects the Top-kk auxiliary harnesses, and the same policy generates fresh rollouts under them from the task's initial state. These rescue rollouts replace the failed group for reinforcement learning, allowing the shared policy to learn from its own actions under complementary execution support. The objective is to retain the acquired behaviors when the policy returns to H0H_0.

The Adaptive Harness Router matches tasks to sibling harnesses using behavioral evidence and independent votes from multiple LLMs. Harness Behavior Profiles describe the task conditions under which each variant helps or hinders the current policy relative to H0H_0. To account for nonstationarity, policy-aware profile re-anchoring periodically refreshes the profiles from current-policy validation trajectories, keeping routing aligned with the policy as it learns.

Our contributions are fourfold:

  • We systematically identify Locality, Complementarity, and Nonstationarity in harness evolution and introduce Harness-S to learn complementary sibling capabilities in a single policy that remains effective under the original H0H_0.

  • We go beyond the best harness with Directional Harness Evolution: a pipeline that branches along distinct repair directions and preserves complementary variants in a reusable Sibling Harness Pool.

  • Complementary Harness Rescue Training restores learning signals when all initial H0H_0 attempts fail. The Adaptive Harness Router selects complementary siblings to recover successful alternatives and within-task reward contrasts for shared-policy optimization.

Figure

Figure 2 Overview of Harness-S. (a) Directional Harness Evolution develops distinct repairs and retains valid variants in a Sibling Harness Pool, fixed during policy training. (b) Complementary Harness Rescue Training routes all-failure tasks to Top-K auxiliary harnesses and updates the shared policy, with periodic profile re-anchoring. (c) Rescue training transfers knowledge from sibling harnesses into the shared policy, improving execution under the original H0H_0; Rank-1 routing provides further gains (illustrative AppWorld example).

  • Across AppWorld, SWE-Gym, and DBBench, Harness-S outperforms policy-only training under H0H_0 at both model sizes. Behavioral analyses, held-out cases, and reduced routing dependence support capability transfer; Rank-1 routing adds gains, and improvements persist under unseen harnesses without further updates.

References (85)