ModHarness-RL: Recasting Harnesses as Learnable and Evolving Programs for Agentic RL
Zelin He, Siyu Zhu, Jacob Helwig, Yujian Liu, Li An, Rohit Jain, Shiyu Chang, Alborz Geramifard
Abstract
Agentic reinforcement learning (RL) increasingly relies on a harness, the scaffold around the model that decides what it sees of its own interaction and what guidance it receives. Most existing approaches train under a hand-written harness that stays fixed throughout. However, an effective harness depends on the domain, the data and the model, and keeps changing as the model trains. We introduce ModHarness-RL, which recasts the harness as programs that are learned from data and evolve as the model trains with RL. ModHarness-RL records the interaction as structured State, a set of typed blocks, and two core components of the harness are programs over these blocks, a Compression program that assembles the accumulated history into the model's context and a Steering program that supplies guidance when behavior deviates. During RL training, candidate programs are proposed from recent trajectories, verified by execution, and replayed over past trajectories, so the harness tracks how the model's behavior shifts. We study CodeSearch in depth and further analyze ALFWorld and BIRD SQL, with models from 1.5B to 8B. The proposed Compression and Steering mechanisms improve held-out performance over the fixed-harness baseline in most settings. These results suggest that a harness for agentic RL can be learned from the task's data and evolved with the model.
Create a lesson
Related papers
EvoViM: Recursively Self-Evolving Visual Agents for Exploration with Deferred Queries
Shared title terminology · Xinyu Cao, Tianjie Ju, Zhuosheng Zhang
Demystifying the Autoresearch Harness: How Context and Skills Shape Self-Evolving Agents
Shared title terminology · Kelvin Kiu-Wai Tam, Newt Hue-Nam K. Nguyen, Tianshi Zheng et al.
Accelerate Bench: Evaluating Agents for Application-Level Program Optimization
Shared title terminology · Bowen Liu, Yuhan Li, Nuo Chen et al.
G-CAST: Governed Continual Self-Training for E-Commerce Agents under Evolving Demands
Shared title terminology · Yuechun Yu, Wenzheng Kong, Xiaofeng Mao et al.
LiveGeo: Benchmarking Geographic Agents in Continuously Evolving Worlds
Shared title terminology · Pengcheng Zhou, Xuanyu Liu, Yanchen Yin et al.
Compiling Known Rules into Compact Neural Agents: Weight-Space Programming on Unseen Games
Shared title terminology · Jens Lehmann