Coding Agents Don’t Need Bigger Context Windows — They Need a Context Compiler
Most coding agents treat prompt construction like retrieval: gather more files, add more context, hope the model figures it out. But that approach breaks down fast.
Most AI memory systems keep the newest information—not the most important. Here's how I used the Ebbinghaus forgetting curve to build a better memory engine for LLMs.
Most coding agents treat prompt construction like retrieval: gather more files, add more context, hope the model figures it out. But that approach breaks down fast.
arXiv:2610.18052v1 Announce Type: new Abstract: Long-term memory has become a core component of large language model (LLM) agents. As agents accumulate personal information over long-term use, users...
The paper introduces WikiTrace, an evidence‑linked memory system for large language model agents that stores lessons alongside the original trajectories that produced them. By allowing agents to verify and refine lessons against their source data, WikiTrace reduces memory‑induced degradation—situations where agents fail tasks due to incorrect or misapplied lessons. Experiments on five agentic benchmarks show that WikiTrace consistently outperforms existing memory approaches and a baseline using the same insights alone.
The paper introduces WikiTrace, an evidence‑linked memory system for large language model agents. WikiTrace stores each lesson as a concise insight tied to a summary of its success or failure and the raw trajectory that produced it, allowing agents to verify and correct lessons before applying them. Experiments on five agentic benchmarks show that WikiTrace outperforms existing memory approaches and reduces memory‑induced degradation.
arXiv:2608. 02515v1 Announce Type: cross Abstract: Long-running assistants and agents consume interaction streams that eventually outgrow the context.
The paper introduces the Weighted Memory Tree (WMT), a hierarchical memory system for large language model agents that organizes execution histories into tasks, subtasks, and actions while assigning each memory a dynamic retention score. Event-based updates and selection-based decay allow WMT to preserve useful information, fold completed trajectories, suppress low-utility content, and retain access to folded context. Experiments on GAIA-Text with Qwen3-8B, Gemma 4 E4B, and Llama-3.1-8B show that WMT improves accuracy by an average of 9.97 percentage points and reduces prompt-token usage by 32.8%, while also limiting the persistence of unreliable information.
LLMs don’t fail because they forget—they fail because they remember too much. As conversations grow, prompts accumulate redundant and low-value tokens, driving up cost and latency while silently degrading output quality.
arXiv:2607. 22562v1 Announce Type: new Abstract: Managing long-context dependencies remains a primary bottleneck in LLM agents, as redundant and irrelevant information can degrade multi-step reasoning.
The paper investigates whether large language models (LLMs) that store persistent memories can truly forget information upon user request. It shows that existing LLMs cannot delete such memories even when they claim to have forgotten them, and that simply removing matching messages is ineffective due to message dependencies. The authors introduce DeLLM, a framework that builds relevant context dynamically and uses a provenance graph to identify which messages must be removed, achieving a high deletion rate while preserving utility.
The paper investigates how large language model agents can over-rely on agentic memory, a phenomenon where retrieved memories distort inference even when they are correctly stored and retrieved. It shows that memory is helpful when past experience fully transfers to the current task but becomes misleading under partial query-memory overlap, a pattern confirmed by controlled experiments. To address this, the authors propose MEMTRIM, a plug‑and‑play framework that indexes memory evidence at write time and limits its reuse at read time, thereby reducing over-reliance without retraining and preserving useful memory benefits across models and memory architectures.
arXiv:2606. 18829v1 Announce Type: new Abstract: Memory benchmarks for LLM agents largely assume single-user settings, leaving shared assistants for hospitals, workplaces, campuses, and households understudied.
arXiv:2605.12978v2 Announce Type: replace Abstract: Learning from past experience benefits from two complementary forms of memory: episodic traces -- raw trajectories of what happened -- and consolid...