Recursive Experiential-Working Memory Evolution for Long-Horizon Agent Harnesses

Zhaochen Yu, Yingcheng Wu, Zhenfei Yin, Kaiyuan Chen, Zhe Zhao, Mengdi Wang, Shuicheng Yan, Ling YangarXiv 2026

TL;DR

Recuris introduces a recursive Experiential–Working Memory architecture for LLM agent harnesses that dramatically improves performance on long-horizon tasks without fine-tuning the underlying model. By coupling a verified working memory with a skill-based experiential memory, it enables precise failure localization and targeted, validation-gated memory evolution. This approach achieves state-of-the-art results across various benchmarks, with performance gains that actually widen as tasks get longer.

What Problem Does This Paper Address?

LLM agents excel at short, discrete tasks but frequently stumble when facing long-horizon challenges—complex workflows requiring dozens of sequential steps. As the interaction history grows, the context window fills up with outdated information, completed steps, and execution noise. This creates a major bottleneck: agents lose track of unresolved goals and struggle to retrieve or correctly invoke the right skills at the right time.

Furthermore, existing recursive self-improvement (RSI) methods usually try to fix failures by rewriting the entire memory system based purely on final success or failure. This "coarse" updating provides no insight into why the agent failed, making self-improvement highly unstable and prone to regressing on previously solved tasks.

Methods

The authors present Recuris, an architecture that operates entirely within an externalized agent harness, leaving the base LLM frozen. It splits memory management into two distinct, coupled loops:

  1. Within-Task Verified EM–WM Coupling: Instead of searching the full chat history, Recuris uses a compact Working Memory (WM) to track verified task progress and open goals. This WM guides the retrieval of reusable skills from Experiential Memory (EM) at specific execution events (e.g., when drafting a tool call). Crucially, state updates are evidence-grounded: environment feedback must explicitly verify a goal is complete before WM updates its status.
  2. Bounded Cross-Task Skill Memory Evolution: When an agent fails, Recuris generates a highly detailed, structured execution trace. A fixed Meta-Agent analyzes this trace to pinpoint exactly which component failed (the skill itself, the state tracking, the invocation policy, or the verification checker). It then generates a targeted patch for only that component. This patch must pass a validation gate (tested against a held-out development set) before being deployed.
Overview of Recuris within-task and cross-task loops.

Datasets

The authors evaluated Recuris across four long-horizon benchmarks:

  • $\tau^2$-Bench ($\tau^2$-Retail and $\tau^2$-Airline): Complex, policy-constrained tool-use dialogue environments.
  • SkillFlow: A benchmark designed for lifelong skill discovery, where tasks are organized into families sharing a procedural execution flow.
  • Terminal-Bench 2.1: A benchmark featuring realistic command-line interface tasks executed in isolated Docker environments, used to test test-time adaptation.

Key Insights and Ideas

  • Long-horizon failure is an execution problem, not a retrieval problem: The authors discovered that agents don't fail because they forget what to do (read-action recall remains high across long tasks); they fail because they lose track of whether they actually executed the required actions (write actions).
Analysis showing that long-horizon failure stems from execution (required-write recall) rather than retrieval (read-action recall).
  • Component-level attribution is a superpower: Pinpointing failures using structured traces is vastly more accurate (64.8%) than guessing based on final task outcomes alone (13.0%). This allows for precise, surgical updates rather than destructive full-memory rewrites.
  • The critical mechanism is domain-dependent: Different tasks rely on different parts of the harness. For instance, $\tau^2$-Airline heavily relies on "write review" (pre-checking actions), while $\tau^2$-Retail depends on the "status board" (how state is presented). Recuris dynamically adapts to these differences because it reads the repair target directly from failure traces.

Key Results

Recuris improved task success in 35 out of 37 model–benchmark pairs tested, spanning models from 3B open-weight variants to top-tier frontier models.

  • Frontier Model Boosts: On $\tau^2$-Retail, it added +17.8 points to GPT-5.6 Sol and +15.6 points to Claude Opus 5 (bringing it to an impressive 87.9% success rate).
  • Longer Tasks, Larger Gains: Unlike typical agent frameworks where performance decays over time, Recuris's advantage widened as the interaction horizon grew, reaching a +32.2 point gain on the longest tasks (>31 turns).
  • Dramatic Failure Reduction: Common long-horizon failure modes plummeted: hallucinated completions dropped by 86%, and omitted writes decreased by 80%.
Recuris performance improvements across model scales, task lengths, and failure modes.

Limitations and Future Work

  • Task Structure Dependency: Cross-task evolution relies on shared structure (shared tools, policies, or task families). On completely isolated tasks with no shared structure (like Terminal-Bench 2.1), cross-task evolution failed to find effective patches, requiring a fallback to within-task test-time adaptation.
  • Memory Redundancy: The evolution loop tends to grow the memory continuously. Across eight patches, it added 51 skills but deprecated none, leading to near-duplicate pairs surviving. The authors note that a pruning operator would be a natural and necessary future addition to keep the memory lean.

Summary updated

BibTeX
@misc{yu2026recursive,
  author = {Zhaochen Yu and Yingcheng Wu and Zhenfei Yin and Kaiyuan Chen and Zhe Zhao and Mengdi Wang and Shuicheng Yan and Ling Yang},
  title = {{Recursive Experiential-Working Memory Evolution for Long-Horizon Agent Harnesses}},
  year = {2026},
  eprint = {2608.24876},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.24876},
}
Figure