# MemoHarness: Agent Harnesses That Learn from Experience

- **ID:** 470
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2607.14159
- **Authors:** Yue Huang, Wenjie Wang, Han Bao, Yuchen Ma, Xiaonan Luo, Yi Nian, Haomin Zhuang, Zheyuan Liu, Yue Zhao, Xiangliang Zhang
- **Venue:** arXiv / University of Notre Dame
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **License:** CC BY 4.0
- **License family:** Permissive (auto-classified)
- **Tags:** memoharness, agent-harness, terminal-bench, experience-bank, test-time-adaptation, notre-dame
- **Topics:** LLM agents, harness engineering
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/470

## 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.

## Attributes

- **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

## From the source (fetched 2026-10-03)

- **Published:** Jul 14, 2026 (arXiv)
- **arXiv categories:** cs.AI, cs.CL (arXiv)
- **Citations:** 12 (Semantic Scholar)
- **References:** 26 (Semantic Scholar)

## Abstract

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.

## 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

- [LongHarness Bench: Stress-Testing Language Model Harnesses for Long-Context Reasoning](https://papers.projxon.ai/entries/821) (paper 2026, #821)

## Similar entries

- [RRSI: Regularized Recursive Self-Improvement of Agent Harnesses](https://papers.projxon.ai/entries/1026) (paper, #1026)
- [Harness Learning Enables Generalizable Test-Time Adaptation](https://papers.projxon.ai/entries/851) (paper, #851)
- [The Anatomy of an Agent Harness](https://papers.projxon.ai/entries/1243) (post, #1243)
- [Raven: The Harness of Harnesses for Composable Agentic Intelligence](https://papers.projxon.ai/entries/1249) (paper, #1249)
- [Mixture of Self-Improving Branches For Agent Harness Optimization](https://papers.projxon.ai/entries/1193) (paper, #1193)
- [SelfSearch: Reward-Free Search for Self-Improving Agents](https://papers.projxon.ai/entries/1262) (paper, #1262)
