Learning to Control LLM Agent Harnesses with Offline Reinforcement Learning
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large language model (LLM) agents are usually improved by changing prompts, models, or hand-written workflows, while the execution harness around the model is treated as fixed infrastructure. We argue that this harness is itself a learnable control layer. We formalize harness operation as a finite-horizon Harness MDP, where a lightweight controller selects structural execution actions while the LLM executor remains frozen. The controller is trained from offline rollouts using advantage-weighted regression with only terminal task-rubric rewards. We also separate final task quality from a post-hoc Harness Maturity Score, which measures whether the harness follows reliable execution patterns rather than only whether the final answer is correct. This separation gives a finite-buffer view of harness learning: final-quality gains require high-return support in the offline buffer, while process behavior can shift whenever it aligns with advantage-weighted actions. Across six controlled domains and two public-benchmark adapters, the learned controller consistently improves verification behavior and selectively improves final task quality, with the largest gains on adapted tau-bench retail, adapted AgentBench DB-Bench, and coding with a calibrated structural verifier. Ablations against behavior cloning and Forced CHECK show that the gains are not explained by imitation or by simply adding checks. These results identify harness control as a learnable layer for frozen LLM agents, while showing that offline support limits when better process control becomes better final answers.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 30 of its 41 references that are in the map. First posted on arXiv 5 Jul 2026.
Builds on
30 of 41 references.
Closest ancestors · 5
Same direction, newest first
- 2026Strained Coherence: A Pre-Failure Signal in Coding Agent Execution Trajectories5 Jun
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses28 Apr
- 2025Process-Level Trajectory Evaluation for Environment Configuration in Software Engineering Agents29 Oct
- 2025ScoreFlow: Mastering LLM Agent Workflows via Score-based Preference Optimization6 Feb
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation16 Aug
Other references · 25
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
- 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,280
- 2021Offline Reinforcement Learning with Implicit Q-Learningcited by 1,245
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
- 2023GAIA: a benchmark for General AI Assistantscited by 1,084
13 more
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
- 2019Advantage-Weighted Regression: Simple and Scalable Off-Policy Reinforcement Learningcited by 750
- 2020AWAC: Accelerating Online Reinforcement Learning with Offline Datasetscited by 647
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 551
- 2024ToolSandbox: A Stateful, Conversational, Interactive Evaluation Benchmark for LLM Tool Use Capabilitiescited by 272
- 2023ADaPT: As-Needed Decomposition and Planning with Language Modelscited by 172
- 2021Offline RL Without Off-Policy Evaluationcited by 150
- 2024AgentGym: Evolving Large Language Model-based Agents across Diverse Environmentscited by 120
- 2025Process vs. Outcome Reward: Which is Better for Agentic RAG Reinforcement Learningcited by 68
- 2025AutoPDL: Automatic Prompt Optimization for LLM Agentscited by 27
- 2026The Last Harness You'll Ever Buildcited by 5
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Harness-R1: Learning to Edit Executable Runtime Harnesses from Agent Failure Trajectoriescited by 13
- 2026RLHarness: Co-evolving Procedural Skills with Reinforcement Learning for Long-horizon Multimodal Reasoningcited by 0
- 2026From Migration to Calibration: Preserving Agent Capabilities across Models, Jurisdictions, and Scalecited by 0
- 2026From Migration to Calibration: Preserving Agent Capabilities across Models, Jurisdictions, and Scale28 Sep 2026
- 2026RLHarness: Co-evolving Procedural Skills with Reinforcement Learning for Long-horizon Multimodal Reasoning26 Sep 2026
- 2026Harness-R1: Learning to Edit Executable Runtime Harnesses from Agent Failure Trajectories3 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026HarnessBridge: Learnable Bidirectional Controller for LLM Agent Harness
- 2026A Control System, a Dataset, and a Recipe for Making Frozen LLM Agents Learn a Domain
- 2026Grow the Harness, Not the Context: From Strategy-Free Scaffolds to Reusable Specialist Agents
- 2026EvoHarness-RL: Learning Self-Evolving Runtime Harness for Long-Horizon LLM Agents
- 2026SkillAdaptor: Self-Adapting Skills for LLM Agents from Trajectories
- 2026Harnesses for Inference-Time Alignment over Execution Trajectories
- 2026Better Harnesses, Smaller Models: Building 90% Cheaper Agents via Automated Harness Adaptation
- 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents