ResearchResearch paperLarge Language Models1 source · Oct 19, 2026

REM: What to Store, When to Recall, What to Forget in Experience Memory for Coding Agents

We introduce REM (Reusable Experience Memory), a framework that manages the memory lifecycle from inside the agent's think-act loop through three explicit decisions.

Key points

  • Large language model (LLM) agents now autonomously complete long-horizon tasks, such as repository-level coding, through hundreds of think-act steps, yet the experience each run produces is rarely reused on the next.
  • Prior memory systems concentrate on retrieval, finding the most relevant past trajectory.
  • On repository-level bug fixing (SWE-ContextBench Lite), REM retrieves the related trajectory more accurately than every state-of-the-art memory system (68.7% vs. 55.6% match@1) and improves, in every replicate, end-task resolution (27.6% vs. 24.9%) at 17% lower cost.
  • Altogether, these results demonstrate that the bottleneck in experience reuse is not retrieval fidelity but how experience is stored and governed across its lifecycle, opening a control-theoretic perspective on agent memory.

Sources (1)

  • [1]REM: What to Store, When to Recall, What to Forget in Experience Memory for Coding Agents
    arXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 19, 10:59 PM
    We introduce REM (Reusable Experience Memory), a framework that manages the memory lifecycle from inside the agent's think-act loop through three explicit decisions.
    Large language model (LLM) agents now autonomously complete long-horizon tasks, such as repository-level coding, through hundreds of think-act steps, yet the experience each run produces is rarely reused on the next.

Extractive summary: sentences quoted from the sources.

Before this

  1. Oct 19, 2026Fake News, Real Crashes: Information Injection Attacks on LLM Financial Trading Agents
  2. Oct 19, 2026Productive State-Space Exploration for Multi-turn RL in LLM Agents
  3. Oct 19, 2026AdaExploreBench: Benchmarking LLM Agents for Proactive Exploration and Test-time Adaptation in Evolving Environments
  4. Oct 18, 2026SoK: PIAtlas: Decomposing the Unbounded Prompt Injection Attack Space
  5. Oct 17, 2026AgentSoV: Virtual Sensing for LLM Multi-Agent Systems via Stream of Variation
  6. Oct 17, 2026Pair-Aware Optimization: Coordinating Exploration and Refinement for Jailbreaking LLM Agents

Related