Abstract
HarnessAdapt-RL jointly trains a coding policy and adapts its evaluation harness via mechanism-level skills and evolving tools, improving benchmark pass rates over fixed-harness reinforcement learning.
Training coding agents typically updates the policy while keeping the harness fixed. During training, trajectories reveal flawed repair strategies and interaction problems that vary across tasks and change as the policy learns. We introduce HarnessAdapt-RL, which trains the policy and adapts its harness during reinforcement learning. For flawed repair strategies, a frozen teacher generates task-specific mechanism-level skills. For interaction problems recurring across tasks, a separate teacher model evolves tools and hooks, keeping each change only if it improves the observed pass rate or the observed trainable rate without lowering either. The policy trains with the adapted harness, and its new trajectories guide further adaptation. With a 9B base model, HarnessAdapt-RL improves pass@1 over GRPO by 9.8, 12.6, and 6.4 percentage points on SWE-bench Verified, Multilingual, and Pro, and outperforms GRPO with the human-designed OpenHands harness. Gains from mechanism-level skills persist after their removal at evaluation. Re-evolving tools and hooks as the policy changes outperforms freezing early versions. Removing them at deployment, in contrast, costs up to 7.7 percentage points. Training therefore produces a model-harness pair: the trained policy and the evolved tools and hooks, with skills removed at deployment.
Community
Why train only the model when you can train the whole agent?
Introducing HarnessAdapt-RL, a framework that jointly improves the policy and its harness during RL.
- ๐ง Mechanism-level skills teach better repair strategies.
- ๐ง Tools and hooks evolve as the policy learns.
- ๐ A 9B model achieves +9.6 percentage points in average pass@1 over GRPO across three SWE-bench benchmarks.
The key insight: Better agents need better models AND better harnesses.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Self-Evolving Coding Agents via Harness-Policy Optimization (2026)
- VACE: Validation-Gated Alternating Co-Evolution of Agent Models and Harnesses (2026)
- Harness Learning Enables Generalizable Test-Time Adaptation (2026)
- ExecCritic: Learn to Test, Test to Improve for Coding Agents (2026)
- Multi-Harness Reinforcement Learning for Coding Agents: Training Gains and Harness Dependence (2026)
- Evo$^2$: Evolving the Evolver through Weight-Harness Co-Evolution (2026)
- Harness-Zero: Harness Distillation via Agent-as-Harness (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2610.28069 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper