Research

arXiv:2607.08716 – Proactive Memory Agent for Long-Horizon Agents

5 min read
Abstract editorial illustration of a network of linked nodes and timeline lines with a highlighted glowing point symbolizing a memory activated at the right time Image generated with GPT Image 2
Abstract editorial illustration of a network of linked nodes and timeline lines with a highlighted glowing point symbolizing a memory activated at the right time

TL;DR Too Long; Didn’t read

arXiv:2607.08716 – Remember When It Matters: Proactive Memory Agent for Long-Horizon Agents describes a separate memory agent that actively decides when a stored memory should be fed into the next action step for long-running AI agents. In tests with Terminal-Bench and τ²-Bench, this increases the success rate by 6.8 to 8.3 percentage points.

Key takeaways

  • In long agent tasks, important information fades in context, even though it is technically still present – the authors call this 'behavioral state decay'.
  • A separate memory agent observes the progress of a main agent and actively decides whether and when to feed a memory, rather than just passively holding it.
  • The memory bank distinguishes three types of entries: a private status, stable knowledge, and procedural experiences from previous attempts.
  • With Claude Sonnet 4.5, the success rate on Terminal-Bench increases from 37.6% to 45.9% (+8.3 points) and on τ²-Bench from 55.0% to 61.8% (+6.8 points).
  • A smaller open model (Qwen3.5-27B), which was trained on the intervention strategy via SFT and GRPO, captures part of the effect – the ability is thus learnable.
  • The method is intended as an add-on module and does not change the base instructions or tools of the main agent.

arXiv:2607.08716 – Remember When It Matters: Proactive Memory Agent for Long-Horizon Agents

Note: This is the summary of a current, (not yet) peer-reviewed arXiv preprint. The results described come from a single study and have not yet been independently verified.

What is it about?

AI agents that work on a task over many steps – such as executing command line commands or engaging in multi-step customer service interactions – often lose sight of important information over time. The paper “Remember When It Matters: Proactive Memory Agent for Long-Horizon Agents” refers to this phenomenon as “behavioral state decay”: requirements, observations from the environment, or previous failures may still be somewhere in the log or context window, but they practically no longer affect the agent’s next decision.

Instead of relying primarily on the storage and retrieval of information like previous approaches, the research team proposes a separate system: a second, parallel-running “Memory Agent” that observes the course of a main agent (the so-called Action Agent) and actively decides when a memory should actually be fed into the ongoing process.

What is it good for / what does it bring?

In the authors’ tests, the additional Memory Agent significantly improves performance without needing to change the actual main agent. On Terminal-Bench 2.0, a benchmark with 85 autonomous command line tasks, the success rate with Claude Sonnet 4.5 as the main agent increases from 37.6% to 45.9% – an increase of 8.3 percentage points. On τ²-Bench, which includes 278 interactive tasks from the areas of airline, retail, and telecommunications, the rate rises from 55.0% to 61.8% (+6.8 points). Even with the more powerful Opus 4.6 as the main agent, there are still gains of around 2.4 to 2.5 points.

The effect is not equally large across all task areas: In the airline sector of τ²-Bench, the authors observe an increase of about 10 points, while in the telecommunications sector, it is only about 2.6 points – an indication that the benefit of the method depends on the type of task.

Practically, this means: an agent that handles long tasks forgets less often why it must adhere to a certain rule, which environmental facts have already been observed, or which solution paths have already failed. This can mean fewer rule violations, fewer repeated failures, and overall more reliable results in practice.

How does it work (simplified)?

The system consists of two components that work in parallel: the unchanged main agent that performs the actual task, and a separate Memory Agent that becomes active at fixed intervals.

The Memory Agent operates in two phases. In the first phase, it maintains a structured “Memory Bank” with three types of entries: a private status that only internally records progress, stable knowledge such as requirements and verified observations from the environment, and procedural memories of previous attempts, their outcomes, and possible diagnoses. Through targeted tool calls, it can create, update, or delete entries.

Figure 1a from arXiv:2607.08716: System integration – the Action Agent (left) interacts with the environment, while the Memory Agent (right) runs in parallel.

Fig. 1a: System integration – the Action Agent (left) interacts with the environment, while the Memory Agent (right) runs in parallel and maintains the Memory Bank. Source: arXiv:2607.08716, License CC-BY 4.0.

In the second phase, the Memory Agent decides whether to provide the main agent with a brief, Memory Bank-based reminder before its next step – or whether to consciously do nothing. This explicit option to remain silent is considered crucial by the authors: only when memories are fed in at the right moment, rather than constantly filling the context with additional hints, does the method have a positive effect.

Figure 1b from arXiv:2607.08716: Internal structure of the Memory Agent – Phase 1 manages the Memory Bank, Phase 2 decides on selective interventions.

Fig. 1b: Internal structure of the Memory Agent – Phase 1 manages the Memory Bank (status, knowledge, procedural entries), Phase 2 decides on selective intervention based on this. Source: arXiv:2607.08716, License CC-BY 4.0.

The authors also demonstrate with a training experiment that this decision strategy is not necessarily tied to a very large model: a significantly smaller open model (Qwen3.5-27B), which was trained on the intervention strategy using supervised fine-tuning (SFT) and reinforcement learning (GRPO), transfers part of the effect to a withheld test dataset from Terminal-Bench (+3.5 points). This suggests that the ability to recognize the right moment for a reminder can indeed be learned.

Comparison variants also show that neither simply providing the complete Memory Bank in context nor forcing reminders at every step performs as well as the selective two-phase strategy – both alternatives fall several points short.

Classification & Limitations

The method is intended as an additional, interchangeable module: it does not change the basic instructions or tools of the main agent and can therefore fundamentally be combined with different underlying models. The authors themselves point out that the fixed timing with which the Memory Agent is activated may not be optimal – event-driven triggers, such as after an error or a recognizable context change, were not investigated in the work. Additionally, occasional misjudgments occur, such as overly confident conclusions or redundant memories, and the additional computational effort due to the extra inference steps of the Memory Agent is not quantified in the paper.

It remains important to note: this is an arXiv preprint that has (not yet) undergone a peer review process. The reported numbers come from the authors’ own experiments and have not yet been independently reproduced or verified.

Frequently asked questions

What is 'behavioral state decay'?

The authors of the paper refer to the phenomenon that important information in long agent tasks may still be present in the protocol or context window, but practically has no influence on the next decision of the agent.

What does the memory agent do differently than previous storage systems?

It not only stores information but actively makes the decision whether a stored memory should actually be fed into the action flow at the current moment – including the explicit option to do nothing.

On which benchmarks was the system tested?

On Terminal-Bench 2.0 (85 autonomous command line tasks) and τ²-Bench (278 interactive tasks from the areas of airline, retail, and telecommunications).

What is the measured effect?

With Claude Sonnet 4.5 as the main agent, the success rate increased by 8.3 percentage points on Terminal-Bench and by 6.8 percentage points on τ²-Bench; with the stronger Opus 4.6, the gains were smaller (+2.4 and +2.5 points).

Has the result been independently confirmed yet?

No. It is an arXiv preprint that has not yet undergone peer review. The numbers come from a single study by the authors.

Sources

  1. arXiv:2607.08716 – Remember When It Matters: Proactive Memory Agent for Long-Horizon Agents

← Back to the blog