MemoHarness: Agent Harnesses That Learn from Experience
Summary
Decomposes the harness into six control surfaces (context, tool, generation, orchestration, memory, output) plus a dual-layer experience bank of per-case diagnoses and distilled global patterns. Training-time search (T=10) starts from a minimal harness with GPT-5.3-Codex; test-time adaptation retrieves similar successes/failures with no labels or extra search. On Terminal-Bench 18-task held-out split, 0.806 vs Codex 0.722 (+0.084); LiveCodeBench 0.900→0.967; FinanceAgent 0.600→0.767. Cross-model mean +0.098 (GLM-5 +0.233). Reported cost $6.89 vs Codex $10.28 because 13.32M of 14.18M input tokens were cached. Authors note the 18-task split, no CIs, and incomplete component ablations.
- Venue
- arXiv / University of Notre Dame
- Source
- arxiv
- Access
- free
- License
- CC BY 4.0
- License family
- Permissive
- Language
- en
- Purpose
- Learn an adaptive agent harness from execution experience and specialize it per test case without test-time labels
- Scale
- Terminal-Bench 89 tasks 80/20 (18 held-out); LiveCodeBench; FinanceAgent; transfer MMMLU/HumanEvalFix/StrongReject/Reasoning-Gym-Easy/LawBench/SWE-Bench Pro; 7 base models; T=10 search iterations
- Used for
- Unknown
- Time period
- 2026-07-14 (arXiv 2607.14159 v1)
- Author type
- human
- Added
- Aug 14, 2026
- Verified
- Aug 14, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- Jul 14, 2026
- arXiv categories
- cs.AI, cs.CL
- Citations
- 12
- References
- 26
Abstract (from 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.
Tags
Topics
LLM agents, harness engineering
Research notes
- Primary: arxiv abs (CC BY 4.0, cs.AI). Code https://github.com/HowieHwong/MemoHarness (88 stars at check). Notre Dame / LMU Munich / USC; corresponding xzhang33@nd.edu. HF paper page 2 upvotes. Discord posted abs link. Paper not a dataset; no datasets_local row.
Cited by, within this collection
Similar entries
- Paper RRSI: Regularized Recursive Self-Improvement of Agent Harnesses
- Paper Harness Learning Enables Generalizable Test-Time Adaptation
- Post The Anatomy of an Agent Harness
- Paper Raven: The Harness of Harnesses for Composable Agentic Intelligence
- Paper Mixture of Self-Improving Branches For Agent Harness Optimization
- Paper SelfSearch: Reward-Free Search for Self-Improving Agents