← Latest papers
💬 NLP

MemoHarness: Agent Harnesses That Learn from Experience

MemoHarness is an adaptive agent optimization framework that enhances LLM performance across diverse tasks by decomposing the control layer into six dimensions and dynamically tailoring harness configurations for each case using a dual-layer experience bank derived from past executions, all without requiring test-time labels or additional search.

Original authors: Yue Huang, Wenjie Wang, Han Bao, Yuchen Ma, Xiaonan Luo, Yi Nian, Haomin Zhuang, Zheyuan Liu, Yue Zhao, Xiangliang Zhang

Published 2026-07-17
📖 4 min read☕ Coffee break read

Original authors: Yue Huang, Wenjie Wang, Han Bao, Yuchen Ma, Xiaonan Luo, Yi Nian, Haomin Zhuang, Zheyuan Liu, Yue Zhao, Xiangliang Zhang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a brilliant, super-smart robot assistant. You give it a task, and it tries to solve it. But here's the catch: the robot doesn't just need to be smart; it needs to know how to use its brain. It needs a set of instructions on how to organize its thoughts, when to look up information, how to ask for help, and how to double-check its work before giving you the answer. In the world of artificial intelligence, this set of instructions and tools is called an "agent harness." Think of it like the dashboard, steering wheel, and GPS in a car. The engine (the AI model) might be powerful, but if the dashboard is broken or the GPS is stuck on an old map, the car isn't going to get you where you need to go. For a long time, scientists have been trying to make these robots smarter by making the engines bigger. But this paper asks a different question: what if we just fixed the dashboard? What if we could teach the robot to learn from its own mistakes and adjust its driving style for every single trip, rather than using the same stiff, one-size-fits-all instructions for everything?

This is exactly what the researchers behind MemoHarness set out to do. They realized that most AI agents today are like cars with a fixed steering wheel: they use the same setup for every problem, whether it's a simple turn or a complex highway merge. The team built a new system that acts like a "learning driver." Instead of just searching for one perfect set of instructions to use forever, MemoHarness lets the agent learn from its past trips. It keeps a detailed diary of what worked, what failed, and why. When a new task comes up, the agent doesn't just guess; it looks at its diary, finds similar past situations, and tweaks its own instructions on the fly to fit the specific challenge.

The paper introduces a clever way to break down the "harness" into six distinct parts, like adjusting different knobs on a control panel: how the agent gathers information (Context), what tools it uses (Tool), how it thinks and speaks (Generation), the order of its steps (Orchestration), what it remembers (Memory), and how it finalizes its answer (Output). By treating these as separate, editable surfaces, the system can diagnose exactly what went wrong. Did it forget to check a map? Did it try to drive too fast? Did it forget to remember a key detail?

In their experiments, the team tested this system on three very different types of tasks: acting like a computer terminal to fix software, writing code, and solving complex financial reasoning puzzles. The results were promising. On the computer terminal tests, MemoHarness improved the success rate from 0.722 to 0.806, beating the best fixed setups they compared it against. It also showed that these learned habits could "transfer" to new, unseen tasks and even work well on different types of AI models without needing to be retrained. For instance, when they took the harness learned on one model and applied it to six other models, the average success rate jumped by +0.098.

The authors suggest that this approach is a practical way to make AI more adaptable without needing to build a new engine every time. However, they are careful to note that while the results are strong, they are based on specific tests and simulations. They don't claim to have solved every problem or proven that this works perfectly in every single real-world scenario. They also found that while the system uses more data to "read" its diary, most of that data can be cached (stored for quick reuse), keeping the cost competitive. In short, MemoHarness suggests that giving an AI the ability to reflect on its own experience and adjust its own control panel might be the key to making it truly helpful, turning a rigid machine into a flexible, learning partner.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →