mlsanityData to 7 Oct 2026

Learning to Control LLM Agent Harnesses with Offline Reinforcement Learning

arXiv 2607.05458 ↗First posted 5 Jul 2026cs.LG cs.AIcited by 3

On the map: LLM agents and tool use → Software engineering coding agents

also in 1 more
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

  1. 2026Strained Coherence: A Pre-Failure Signal in Coding Agent Execution Trajectories5 Jun
  2. 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses28 Apr
  3. 2025Process-Level Trajectory Evaluation for Environment Configuration in Software Engineering Agents29 Oct
  4. 2025ScoreFlow: Mastering LLM Agent Workflows via Score-based Preference Optimization6 Feb
  5. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation16 Aug

Other references · 25

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  3. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  4. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  5. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  6. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  7. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
  8. 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
  9. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,280
  10. 2021Offline Reinforcement Learning with Implicit Q-Learningcited by 1,245
  11. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
  12. 2023GAIA: a benchmark for General AI Assistantscited by 1,084
13 more
  1. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  2. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  3. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
  4. 2019Advantage-Weighted Regression: Simple and Scalable Off-Policy Reinforcement Learningcited by 750
  5. 2020AWAC: Accelerating Online Reinforcement Learning with Offline Datasetscited by 647
  6. 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 551
  7. 2024ToolSandbox: A Stateful, Conversational, Interactive Evaluation Benchmark for LLM Tool Use Capabilitiescited by 272
  8. 2023ADaPT: As-Needed Decomposition and Planning with Language Modelscited by 172
  9. 2021Offline RL Without Off-Policy Evaluationcited by 150
  10. 2024AgentGym: Evolving Large Language Model-based Agents across Diverse Environmentscited by 120
  11. 2025Process vs. Outcome Reward: Which is Better for Agentic RAG Reinforcement Learningcited by 68
  12. 2025AutoPDL: Automatic Prompt Optimization for LLM Agentscited by 27
  13. 2026The Last Harness You'll Ever Buildcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026HarnessBridge: Learnable Bidirectional Controller for LLM Agent Harness
  2. 2026A Control System, a Dataset, and a Recipe for Making Frozen LLM Agents Learn a Domain
  3. 2026Grow the Harness, Not the Context: From Strategy-Free Scaffolds to Reusable Specialist Agents
  4. 2026EvoHarness-RL: Learning Self-Evolving Runtime Harness for Long-Horizon LLM Agents
  5. 2026SkillAdaptor: Self-Adapting Skills for LLM Agents from Trajectories
  6. 2026Harnesses for Inference-Time Alignment over Execution Trajectories
  7. 2026Better Harnesses, Smaller Models: Building 90% Cheaper Agents via Automated Harness Adaptation
  8. 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents