Harness-R1: Learning to Edit Executable Runtime Harnesses from Agent Failure Trajectories
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Agents built around large language models continually accumulate interaction trajectories during deployment, yet their behavior typically remains fixed. Beyond updating model weights, these trajectories can improve the agent harness that constructs context, mediates tools, validates actions, and recovers execution. We introduce Harness-R1, the first method, to our knowledge, that makes failure-conditioned, lifecycle-wide editing of an existing executable runtime a learned capability. It post-trains a dedicated harness engineer with online reinforcement learning so that its edits are optimized for the realized task success they produce, rather than proposed by a fixed editor. A separate 9B engineer converts batches of target-agent failures into validated executable patches; fresh same-batch reruns of the frozen target provide outcome rewards, so training updates only the engineer. Cold-start supervised fine-tuning initializes this editing policy, which is then trained online with group-relative policy optimization. Across WebShop, ALFWorld, and DBBench, Harness-R1 raises vanilla Qwen3.5-9B success from 44.3% to 53.6% (+9.3 percentage points). After direct target-agent fine-tuning, a target-specific engineer raises the average further from 59.2% to 64.2% (+5.0 points); because these gains hold both before and after fine-tuning the target, Harness-R1 points toward co-evolving the harness engineer and the target agent.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 36 of its 44 references that are in the map. First posted on arXiv 3 Aug 2026.
Builds on
36 of 44 references.
Closest ancestors · 10
Same direction, newest first
- 2026Learning to Control LLM Agent Harnesses with Offline Reinforcement Learning5 Jul
- 2026HarnessBridge: Learnable Bidirectional Controller for LLM Agent Harness11 Jun
- 2026Self-Harness: Harnesses That Improve Themselves8 Jun
- 2026From Failed Trajectories to Reliable LLM Agents: Diagnosing and Repairing Harness Flaws4 Jun
- 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents21 May
- 2026Continual Harness: Online Adaptation for Self-Improving Foundation Agents11 May
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses28 Apr
- 2026FlowSteer: Towards Agents Designing Agentic Workflows via Reinforced Progressive Canvas Editing2 Feb
- 2025Weak-for-Strong: Training Weak Meta-Agent to Harness Strong Executors7 Apr
- 2024AutoFlow: Automated Workflow Generation for Large Language Model Agents1 Jul
Other references · 26
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,040
- 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 1,011
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2023Large Language Modelscited by 780
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
14 more
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 309
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
- 2026SkillRL: Evolving Agents via Recursive Skill-Augmented Reinforcement Learningcited by 278
- 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 193
- 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligencecited by 170
- 2025EvolveR: Self-Evolving LLM Agents through an Experience-Driven Lifecyclecited by 137
- 2026AutoHarness: improving LLM agents by automatically synthesizing a code harnesscited by 76
- 2025DeepAgent: A General Reasoning Agent with Scalable Toolsetscited by 71
- 2026HarnessX: A Composable, Adaptive, and Evolvable Agent Harness Foundrycited by 47
- 2026Skill1: Unified Evolution of Skill-Augmented Agents via Reinforcement Learningcited by 35
- 2025LoopTool: Closing the Data-Training Loop for Robust LLM Tool Callscited by 17
- 2026CODESKILL: Learning Self-Evolving Skills for Coding Agentscited by 12
- 2026Harness-Aware Self-Evolving: Co-Evolving Model Weights, Harness, and Task Solutionscited by 12
- 2026Self-Consolidation for Self-Evolving Agentscited by 5
Built on by
Citing papers per year: 2026: 16.
16 papers.
Sort:
By area:
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolutioncited by 16
- 2026HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?cited by 13
- 2026Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agentscited by 3
- 2026Self-Evolving Coding Agentscited by 2
- 2026EvoUndo: Recoverability-Constrained Self-Evolution for LLM Agent Harnessescited by 2
- 2026EvoHarness-RL: Learning Self-Evolving Runtime Harness for Long-Horizon LLM Agentscited by 1
- 2026Learning from Unreachable Rewards: Hint-Conditioned Reinforcement Learning for Generative Recommendationcited by 1
- 2026WeAgent-MMGenEdit: A Full-Stack Recipe for Multimodal Agentic Image Generation and Editingcited by 1
- 2026Thinking Before Thinking: Scaling Agentic Inference Through Meta-Reasoningcited by 1
- 2026A Responsive Present, a Shared Past, a Social Other: Teens' Overreliance on Companion AI Chatbotscited by 0
- 2026Harness Learning Enables Generalizable Test-Time Adaptationcited by 0
- 2026Turbo Harness: Instance-Adaptive Harness Optimizationcited by 0
4 more
- 2026GUI-HARVEST: Self-Improving GUI Agents through Evidence-Driven Harness Evolutioncited by 0
- 2026HERA: Harness-Environment Co-Evolution for Reliable Agentic Abstentioncited by 0
- 2026Harness^2: Recursive Agent Harnessing for an Open Worldcited by 0
- 2026HarnessTTT: Learn to Optimize Harness at Test-Time for Scientific Discoverycited by 0
- 2026HarnessTTT: Learn to Optimize Harness at Test-Time for Scientific Discovery12 Oct 2026
- 2026Harness^2: Recursive Agent Harnessing for an Open World9 Oct 2026
- 2026HERA: Harness-Environment Co-Evolution for Reliable Agentic Abstention5 Oct 2026
- 2026GUI-HARVEST: Self-Improving GUI Agents through Evidence-Driven Harness Evolution1 Oct 2026
- 2026Turbo Harness: Instance-Adaptive Harness Optimization30 Sep 2026
- 2026Thinking Before Thinking: Scaling Agentic Inference Through Meta-Reasoning29 Sep 2026
- 2026Harness Learning Enables Generalizable Test-Time Adaptation28 Sep 2026
- 2026A Responsive Present, a Shared Past, a Social Other: Teens' Overreliance on Companion AI Chatbots13 Sep 2026
- 2026Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agents10 Sep 2026
- 2026WeAgent-MMGenEdit: A Full-Stack Recipe for Multimodal Agentic Image Generation and Editing4 Sep 2026
- 2026HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?1 Sep 2026
- 2026EvoUndo: Recoverability-Constrained Self-Evolution for LLM Agent Harnesses28 Aug 2026
4 more
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolution26 Aug 2026
- 2026Learning from Unreachable Rewards: Hint-Conditioned Reinforcement Learning for Generative Recommendation12 Aug 2026
- 2026EvoHarness-RL: Learning Self-Evolving Runtime Harness for Long-Horizon LLM Agents5 Aug 2026
- 2026Self-Evolving Coding Agents4 Aug 2026
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolutioncited by 16
- 2026HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?cited by 13
- 2026Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agentscited by 3
- 2026Self-Evolving Coding Agentscited by 2
- 2026EvoUndo: Recoverability-Constrained Self-Evolution for LLM Agent Harnessescited by 2
- 2026EvoHarness-RL: Learning Self-Evolving Runtime Harness for Long-Horizon LLM Agentscited by 1
- 2026WeAgent-MMGenEdit: A Full-Stack Recipe for Multimodal Agentic Image Generation and Editingcited by 1
- 2026Thinking Before Thinking: Scaling Agentic Inference Through Meta-Reasoningcited by 1
- 2026Harness Learning Enables Generalizable Test-Time Adaptationcited by 0
- 2026GUI-HARVEST: Self-Improving GUI Agents through Evidence-Driven Harness Evolutioncited by 0
- 2026HERA: Harness-Environment Co-Evolution for Reliable Agentic Abstentioncited by 0
- 2026Harness^2: Recursive Agent Harnessing for an Open Worldcited by 0
- 2026Harness^2: Recursive Agent Harnessing for an Open World9 Oct 2026
- 2026HERA: Harness-Environment Co-Evolution for Reliable Agentic Abstention5 Oct 2026
- 2026GUI-HARVEST: Self-Improving GUI Agents through Evidence-Driven Harness Evolution1 Oct 2026
- 2026Thinking Before Thinking: Scaling Agentic Inference Through Meta-Reasoning29 Sep 2026
- 2026Harness Learning Enables Generalizable Test-Time Adaptation28 Sep 2026
- 2026Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agents10 Sep 2026
- 2026WeAgent-MMGenEdit: A Full-Stack Recipe for Multimodal Agentic Image Generation and Editing4 Sep 2026
- 2026HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?1 Sep 2026
- 2026EvoUndo: Recoverability-Constrained Self-Evolution for LLM Agent Harnesses28 Aug 2026
- 2026JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolution26 Aug 2026
- 2026EvoHarness-RL: Learning Self-Evolving Runtime Harness for Long-Horizon LLM Agents5 Aug 2026
- 2026Self-Evolving Coding Agents4 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnesses
- 2026Verify Smarter, Evolve Further: Efficient Harness Evolution through Behavior-Aware Verification
- 2026Grow the Harness, Not the Context: From Strategy-Free Scaffolds to Reusable Specialist Agents
- 2026Harness-Zero: Harness Distillation via Agent-as-Harness
- 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editable
- 2026Living-Harness Is an Interactive-Agent Evolver
- 2026Harnesses for Inference-Time Alignment over Execution Trajectories
- 2026MemoHarness: Agent Harnesses That Learn from Experience