Manuscript Offprint

arXiv:2610.29458

Harness Scaling for Generalizable Agentic Reinforcement Learning

Fei Bai, Huatong Song, Chuan Hao, Ran Tao, Jian Yang, Bryan Dai, Wayne Xin Zhao, Ji-Rong Wen

Abstract

Agent harnesses have become a central component of modern agentic systems, shaping how models use tools, manage context, and coordinate long-horizon interaction. Realizing the benefits of these harnesses depends on how effectively the underlying model can make use of them, motivating reinforcement learning directly through the harness. However, existing approaches typically train through a single fixed harness, which can lead to specialization and limited transfer across harness configurations. To address this, we introduce Harness Scaling, a new scaling dimension for agentic RL that extends training from a single harness to diverse execution configurations. Concretely, we construct a factorized harness space, select a compact training subset with balanced factorial coverage, and organize cross-harness training to combine global coverage with controlled variation for the same task. Across multiple benchmarks, model scales, and RL algorithms, Harness Scaling consistently improves generalization to unseen white-box configurations. Moreover, models trained through structured white-box variation transfer effectively to unseen external black-box harnesses, outperforming models trained through a single complex black-box harness. These results establish harness diversity as a meaningful scaling dimension for agentic RL and highlight the importance of how this diversity is organized for cross-harness generalization.

1. Introduction

Agent harnesses are playing an increasingly central role in modern agentic systems [31]. By supporting sustained interaction, tool use, state maintenance, and recovery from failures [4], harnesses have substantially improved agent performance on complex, long-horizon tasks [16, 32, 38]. Yet the benefits of a capable harness depend not only on its design, but also on whether the underlying policy can use it effectively [14]. This naturally motivates optimizing the policy directly through the harness with reinforcement learning [36, 39], which strengthens its ability to exploit the available interaction mechanisms during task solving.

However, existing approaches typically optimize the policy through a single fixed harness [7, 34]. While effective within the training harness, such optimization may encourage specialization to a particular execution configuration and weaken transfer across harnesses. We therefore introduce Harness Scaling, extending policy optimization from a single harness to diverse execution configurations. Unlike task or environment scaling [3, 6, 29, 35], which expands what agents solve or where they operate, Harness Scaling introduces diversity in how policies execute and interact with the same underlying task and environment, promoting generalization across execution configurations.

A key consideration in Harness Scaling is how to model harness variation and select a compact set of configurations for training. Given the modular nature of agent harnesses [7, 23], we factorize harness variation along five components: system prompt, tool interface, observation, context management, and workflow. Each component contains multiple realizations, whose combinations define a factorial space of complete harness configurations. As variation along these components increases, the space expands rapidly, while exhaustive training can introduce substantial redundancy under a fixed budget. We therefore preserve low-order factorial structure in a compact training set, balancing individual component realizations and their pairwise combinations through an orthogonal design [8, 21]. During reinforcement learning, the same task is paired with structurally nearby harness configurations, providing controlled local variation within each task while maintaining broad coverage across the training space.

To demonstrate the effectiveness of Harness Scaling, we evaluate cross-harness generalization across multiple benchmarks, model scales, and RL algorithms. By training across diverse harness configurations, Harness Scaling reduces specialization to any single harness and encourages more generalizable agent behavior. Empirically, it consistently outperforms single-harness RL on unseen white-box configurations. More importantly, policies trained through structured white-box harness variation transfer effectively to complex external black-box harnesses [1, 18], outperforming single-harness black-box training. These results establish harness diversity as a meaningful scaling dimension for agentic RL, while showing that effective scaling depends critically on how this diversity is organized during training. In summary, our contributions are threefold:

• We introduce Harness Scaling as a new scaling dimension for agentic reinforcement learning, distinct from conventional scaling over tasks and environments, and study how training across diverse harness configurations affects generalization beyond a single execution setting.

• We develop a structured framework for Harness Scaling that factorizes harness variation, selects a compact training set with balanced factorial coverage, and organizes cross-harness training by assigning structurally nearby configurations to the same task across the training space.

• We demonstrate across benchmarks, model scales, and RL algorithms that Harness Scaling substantially improves generalization to unseen white-box and external black-box harnesses, establishing both the value of scaling across harnesses and the importance of organizing this scaling structurally.

References (45)