← News

Agents & MCPSources: arXiv · 20 Nov 2026

GrepMem keeps full agent history in plain text and searches it on demand

Researchers introduce GrepMem, a lossless memory mechanism for long-horizon LLM agents that pairs an append-only text log with regular-expression search, reporting large accuracy gains over lossy baselines.

In plain words

AI agents that work over long sessions often run out of context window space and must compress or drop earlier information, which can lose details needed later. GrepMem instead stores the agent's entire history as a plain-text file and uses regular-expression search to look up anything on demand. The authors report this simple approach beats methods that summarize or compress memory.

What was announced

The arXiv abstract states that long-horizon LLM agents often exceed their context windows, and that existing strategies such as summarization, masking, or structured memory force decisions about what to keep before future needs are known, which can introduce lossy compression. GrepMem is built from 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, it requires no embeddings, retrieval index, memory extraction, or additional models.

The authors trained Qwen3.5-9B with reinforcement learning under five context management strategies and evaluated it on multi-question research sessions, long-stream recall, and agent-trajectory question answering. They report 95-97% accuracy on ContextBench, versus at most 21% for lossy baselines, and an 8.8 percentage-point improvement over SUPO's summarization on BCP-Multi. GrepMem reportedly scales to longer input streams while staying on the accuracy-token-cost Pareto frontier across all five evaluation tasks. The abstract concludes that a plain-text log and grep offer a competitive alternative to complex structured memory infrastructure.

What it does not show

  • Evidence is limited to the paper's abstract; experimental setup, baselines, and evaluation details cannot be verified beyond what the abstract states.
  • The reported accuracy figures are the authors' own claims and have not been independently confirmed.
  • The abstract does not describe real-world deployment, latency, or cost beyond the accuracy-token-cost frontier claim.

For security and IT teams

Scope
The available evidence covers only the paper's abstract, so implementation details and full experimental results are not visible.

Sources

Source-support review completed 27 Nov 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 27 Nov 2026

New to the subject? AI from the Ground Up starts from the beginning.