mlsanityData to 24 Nov 2026

Forget Freely, Grep Later: Lossless, Index-Free Memory for Long-Horizon LLM Agents

arXiv 2611.25123 ↗Submitted 18 Nov 2026Announced 20 Nov 2026cs.CL cs.AIcited by 0

On the map: LLM agents and tool use → Agent memory systems

Abstract (arXiv)

Long-horizon LLM agents often exceed their context windows, forcing them to discard information that may be needed later. Existing context management strategies rely on summarization, masking, or structured memory, requiring decisions about what to preserve or how to retrieve it before future needs are known. However, these methods can introduce lossy compression, potentially discarding details needed for future tasks. To address this limitation, we introduce GrepMem, a simple, lossless, and index-free memory mechanism built on two components: an append-only plain-text log of the agent's complete history and a regular-expression search tool for on-demand recall. Unlike structured memory systems, GrepMem requires no embeddings, retrieval index, memory extraction, or additional models. We train Qwen3.5-9B with reinforcement learning under five context management strategies and evaluate on multi-question research sessions, long-stream recall, and agent-trajectory question answering. GrepMem achieves 95-97% accuracy on ContextBench, versus at most 21% for lossy baselines, and outperforms SUPO's summarization by 8.8 percentage points on BCP-Multi. GrepMem scales effectively to increasingly long input streams while remaining on the accuracy-token-cost Pareto frontier across all five evaluation tasks. Our results show that a plain-text log and grep provide a simple but competitive approach to long-horizon agent memory, without requiring complex structured memory infrastructure.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 24 of its 40 references that are in the map. Submitted 18 Nov 2026, announced 20 Nov 2026.

Builds on

24 of 40 references.

Closest ancestors · 7

Same direction, newest first

  1. 2026When Your Agent Opens the Chat App: Agent-Controlled Search over Raw Chat Logs Rivals Structured Memory13 Aug
  2. 2026AMA-Bench: Evaluating Long-Horizon Memory for Agentic Applications26 Feb
  3. 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization16 Sep
  4. 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions7 Jul
  5. 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents18 Jun
  6. 2025A-MEM: Agentic Memory for LLM Agents17 Feb
  7. 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memory20 Jan

Other references · 17

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
  4. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,255
  5. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
  6. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
  7. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,602
  8. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,507
  9. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 278
  10. 2025WebSailor: Navigating Super-human Reasoning for Web Agentcited by 253
  11. 2025WebDancer: Towards Autonomous Information Seeking Agencycited by 208
  12. 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 73
5 more
  1. 2026OpenResearcher: A Fully Open Pipeline for Long-Horizon Deep Research Trajectory Synthesiscited by 49
  2. 2025CoAct-1: Computer-using Multi-Agent System with Coding Actionscited by 44
  3. 2026Is Grep All You Need? How Agent Harnesses Reshape Agentic Searchcited by 26
  4. 2026Self-Evolving LLM Memory Extraction Across Heterogeneous Taskscited by 4
  5. 2026Skill Reuse as Compression in Agentic RLcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026SimpleMem: Efficient Lifelong Memory for LLM Agents
  2. 2026LazyMem: Retrieve Broadly, Construct Selectively for Efficient Long-Term Agent Memory
  3. 2026Can Agents Forget When Asked? A Benchmark for Memory Unlearning in LLM Agents
  4. 2026EdgeMem: LLM-Free Agent Memory Construction and Retrieval via Evidence-Preserving Multi-Anchor Hypergraph
  5. 2026ElasticMem: Latent Memory as a Learnable Resource for LLM Agents
  6. 2026DeferMem: Query-Time Evidence Distillation via Reinforcement Learning for Long-Term Agent Memory
  7. 2026MEMOIR: A Training-Free Memory Lifecycle for Long-Horizon LLM Agents
  8. 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning