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.
ProofPaper ↗
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 AgentsarXiv (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
- Oct 19, 2026Fake News, Real Crashes: Information Injection Attacks on LLM Financial Trading Agents
- Oct 19, 2026Productive State-Space Exploration for Multi-turn RL in LLM Agents
- Oct 19, 2026AdaExploreBench: Benchmarking LLM Agents for Proactive Exploration and Test-time Adaptation in Evolving Environments
- Oct 18, 2026SoK: PIAtlas: Decomposing the Unbounded Prompt Injection Attack Space
- Oct 17, 2026AgentSoV: Virtual Sensing for LLM Multi-Agent Systems via Stream of Variation
- Oct 17, 2026Pair-Aware Optimization: Coordinating Exploration and Refinement for Jailbreaking LLM Agents