TL;DR
Large language model (LLM) agents often struggle to learn from their mistakes in real-time, one-shot environments because their execution histories are cluttered with task-specific noise. Evo-Harness introduces online harness learning, a framework where a frozen agent continuously updates an external, structured "skill harness" of general and topic-specific guidance. By distilling noisy, single-shot failures into reusable procedural knowledge, Evo-Harness consistently boosts agent performance across diverse real-world benchmarks without modifying model parameters.
What Problem Does This Paper Address?
LLM agents excel at planning and tool use but usually treat failures as isolated events. When an agent fails, it doesn't automatically translate that failure into a lesson for the next task. Existing "experience-based" methods try to fix this by storing raw trajectories or using offline learning.
However, in real-world deployments, agents face a continuous stream of novel tasks where they only get one shot to succeed or fail. Raw trajectories are incredibly noisy—they mix up broadly useful strategies with highly specific details (like a specific filename or temporary URL). Simple retrieval methods (like case banks) often fetch irrelevant or overly specific past experiences, which can confuse the agent. The authors address this by asking: How can a frozen LLM agent effectively learn on the fly from noisy, single-shot experiences?
Methods
The authors propose Evo-Harness, which operationalizes online harness learning. Instead of updating the model's weights (which is expensive or impossible for proprietary models), the system maintains an external, structured set of reusable guidance entries called a harness.
The core mechanism is context-to-harness skill compilation, which happens in two main stages:
- Execution Reflection: When the agent fails or receives negative feedback, the solver model reflects on the full execution context (instruction, trajectory, errors) to extract a structured candidate memory consisting of a lesson, a trigger condition, evidence, and a scope hint. Successes are ignored to avoid task-specific clutter.
- Harness Evolution: An "evolver" LLM takes these candidate memories and compares them against the existing harness. It performs fine-grained editing operations:
ADDnew skills,MERGEcompatible signals,REVISEexisting guidance, orSKIPredundant/noisy inputs.
The harness maintains two levels of skills: Cross-task patterns (broad, generalizable workflows) and Task-type procedures (localized knowledge for specific domains or interfaces).
Datasets
The framework was evaluated across five diverse, realistic benchmarks:
- TerminalBench2: 89 command-line and scripting tasks evaluated via Docker verifiers.
- SWE-bench Lite: 300 real GitHub issues from Python repositories evaluated via unit tests.
- CL-Bench: 1899 adaptive reasoning tasks graded by a rubric judge.
- $\tau$-bench: 165 customer-service tool-use tasks across airline and retail domains.
- WebArena-Infinity: 80 hard web navigation tasks (e.g., email management, settings configuration).
Key Insights and Ideas
- Failures are the Best Teachers: Evo-Harness explicitly filters out successful trajectories during the reflection phase. Successes often contain incidental, task-specific details that add noise; failures clearly demarcate the agent's current operational boundaries.
- Self-Judgment is a Trap: One of the most striking findings is that self-generated feedback (asking the LLM if it succeeded) actually hurts performance compared to not evolving at all. Agents need objective, environment-grounded feedback (like test failures or verifier errors) to compile reliable skills.
- The Granularity Trade-off: Rich diagnostic feedback helps in complex reasoning tasks (like CL-Bench), but sparse pass/fail signals can actually perform better in software engineering tasks (like SWE-bench). Detailed error messages sometimes cause the evolver to create rules that are too specific to a single bug, harming generalizability.
- Cross-Model Synergy: Skills evolved by a smaller, cheaper model (like Claude Sonnet) can successfully transfer to and improve a stronger model (like Claude Opus) on unseen tasks, showing that the compiled skill harness is an interpretable, model-agnostic asset.
Key Results
Using Claude Opus 4.6 as the base solver, Evo-Harness achieved the best results across all five benchmarks, significantly outperforming baselines like XSkill, ACE, and Evo-Memory:
- TerminalBench-2: Jumped from 62.92% (No-Evolve) to 73.03% (a ~10% absolute gain), where procedural recovery from command-line errors is critical.
- CL-Bench: Improved from 29.54% to 34.02%.
- SWE-bench Lite: Increased from 63.67% to 67.00%.
- $\tau$-bench: Rose from 72.73% to 76.97%.
- WebArena-Infinity: Increased from 72.50% to 76.25%.
Ablation studies showed that both general cross-task guidance and localized topic-level guidance are necessary, but their relative importance depends heavily on the benchmark (e.g., topic guidance matters more for heterogeneous reasoning, while general workflows matter more for repository debugging).
Limitations and Future Work
- Single-Agent Focus: The study is strictly limited to single-agent systems. The authors note that multi-agent or embodied systems would introduce complex coordination and environmental feedback loops not covered here.
- Natural Language Constraints: The harness currently stores guidance purely as natural language text. Exploring other formats, such as executable code skills or structured programmatic rules, remains an open direction.
- Exploratory Task Sensitivity: In highly exploratory categories (like Empirical Discovery & Simulation), harness evolution occasionally showed less stable gains, indicating that overly specific guidance might stifle necessary exploration.
Summary updated