mlsanityData to 7 Oct 2026

MemoHarness: Agent Harnesses That Learn from Experience

arXiv 2607.14159 ↗First posted 14 Jul 2026cs.AI cs.CLcited by 14

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

Abstract (arXiv)

An agent harness is the external control layer that turns a base LLM into an executable agent by managing context, tools, orchestration, memory, decoding, and output handling. While harness design strongly affects agent behavior, most automatic improvement methods optimize narrower artifacts such as prompts, pipelines, or workflows, and deployed agents usually reuse a single global harness for all cases. We introduce MemoHarness, an adaptive harness optimization framework that learns from its own executions. MemoHarness decomposes the harness into six editable control dimensions, stores per-case diagnoses and distilled global patterns in a dual-layer experience bank, and adapts the learned harness to each test case using retrieved experience without test-time labels, feedback, or additional search. In our evaluation across shell-agent, code-generation, and analytical-reasoning benchmarks, MemoHarness improves over the fixed harnesses we compare against and shows selective transfer to unseen suites and base models. Its additional context can also remain cost-competitive when much of the retrieved experience is cacheable. These results provide evidence that execution experience is a practical substrate for building agent harnesses that are more adaptive than a single static configuration, while leaving broader claims about statistical robustness and component attribution to future work.

Key facts. Cited by 14 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 19 of its 26 references that are in the map. First posted on arXiv 14 Jul 2026.

Builds on

19 of 26 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024AutoFlow: Automated Workflow Generation for Large Language Model Agents1 Jul
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 17

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  4. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  5. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  6. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  7. 2023Large Language Modelscited by 774
  8. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  9. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
  10. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 515
  11. 2024A StrongREJECT for Empty Jailbreakscited by 352
  12. 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
5 more
  1. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
  2. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
  3. 2025REASONING GYM: Reasoning Environments for Reinforcement Learning with Verifiable Rewardscited by 121
  4. 2023LawBench: Benchmarking Legal Knowledge of Large Language Modelscited by 111
  5. 2026Natural-Language Agent Harnessescited by 54

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 14.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses
  2. 2026Adapting the Interface, Not the Model: Runtime Harness Adaptation for Deterministic LLM Agents
  3. 2026TTHE: Test-Time Harness Evolution
  4. 2026Adaptive Auto-Harness: Sustained Self-Improvement for Agentic System Deployment on Open-Ended Task Streams
  5. 2026ModularRSI: Modular and Generalizable Recursive Harness Self-Improvement
  6. 2026Grow the Harness, Not the Context: From Strategy-Free Scaffolds to Reusable Specialist Agents
  7. 2026Harness-R1: Learning to Edit Executable Runtime Harnesses from Agent Failure Trajectories
  8. 2026Self-Harness: Harnesses That Improve Themselves