mlsanityData to 14 Oct 2026

Harness-R1: Learning to Edit Executable Runtime Harnesses from Agent Failure Trajectories

arXiv 2608.02276 ↗First posted 3 Aug 2026cs.AIcited by 16

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

  1. 2026Learning to Control LLM Agent Harnesses with Offline Reinforcement Learning5 Jul
  2. 2026HarnessBridge: Learnable Bidirectional Controller for LLM Agent Harness11 Jun
  3. 2026Self-Harness: Harnesses That Improve Themselves8 Jun
  4. 2026From Failed Trajectories to Reliable LLM Agents: Diagnosing and Repairing Harness Flaws4 Jun
  5. 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents21 May
  6. 2026Continual Harness: Online Adaptation for Self-Improving Foundation Agents11 May
  7. 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses28 Apr
  8. 2026FlowSteer: Towards Agents Designing Agentic Workflows via Reinforced Progressive Canvas Editing2 Feb
  9. 2025Weak-for-Strong: Training Weak Meta-Agent to Harness Strong Executors7 Apr
  10. 2024AutoFlow: Automated Workflow Generation for Large Language Model Agents1 Jul

Other references · 26

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  4. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  5. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
  6. 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
  7. 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,040
  8. 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 1,011
  9. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
  10. 2023Large Language Modelscited by 780
  11. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
  12. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
14 more
  1. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 309
  2. 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
  3. 2026SkillRL: Evolving Agents via Recursive Skill-Augmented Reinforcement Learningcited by 278
  4. 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 193
  5. 2025A Survey of Self-Evolving Agents: What, When, How, and Where to Evolve on the Path to Artificial Super Intelligencecited by 170
  6. 2025EvolveR: Self-Evolving LLM Agents through an Experience-Driven Lifecyclecited by 137
  7. 2026AutoHarness: improving LLM agents by automatically synthesizing a code harnesscited by 76
  8. 2025DeepAgent: A General Reasoning Agent with Scalable Toolsetscited by 71
  9. 2026HarnessX: A Composable, Adaptive, and Evolvable Agent Harness Foundrycited by 47
  10. 2026Skill1: Unified Evolution of Skill-Augmented Agents via Reinforcement Learningcited by 35
  11. 2025LoopTool: Closing the Data-Training Loop for Robust LLM Tool Callscited by 17
  12. 2026CODESKILL: Learning Self-Evolving Skills for Coding Agentscited by 12
  13. 2026Harness-Aware Self-Evolving: Co-Evolving Model Weights, Harness, and Task Solutionscited by 12
  14. 2026Self-Consolidation for Self-Evolving Agentscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 16.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnesses
  2. 2026Verify Smarter, Evolve Further: Efficient Harness Evolution through Behavior-Aware Verification
  3. 2026Grow the Harness, Not the Context: From Strategy-Free Scaffolds to Reusable Specialist Agents
  4. 2026Harness-Zero: Harness Distillation via Agent-as-Harness
  5. 2026Harness Handbook: Making Evolving Agent Harnesses Readable,Navigable, and Editable
  6. 2026Living-Harness Is an Interactive-Agent Evolver
  7. 2026Harnesses for Inference-Time Alignment over Execution Trajectories
  8. 2026MemoHarness: Agent Harnesses That Learn from Experience