Simple event log may be enough for AI agent memory, researchers say
Researchers at Hatchery report that an AI agent searching its own event log with SQL queries matches or beats specialised memory systems on major memory benchmarks. They argue that compressing information before storage discards details that matter later.
A blog post from Hatchery examines how AI agents built on large language models can retain memory across sessions. The authors conclude that an agent which runs SQL queries and full-text search over its own event log matches or outperforms specialised memory systems on all major memory benchmarks. They add that this approach improves as models become more capable.
The problem
Language models cannot form long-term memories, and their knowledge is frozen at the training cutoff. The authors compare this to the protagonist of the film Memento, who has lost the ability to form new memories and relies on photographs and notes. To keep context, developers build systems that encode, consolidate and retrieve past information.
The researchers' argument
The work draws on Richard Sutton's "bitter lesson": general methods such as search and learning beat systems built on human domain knowledge. The authors argue that specialised memory systems lose task-relevant detail when they compress information. Searching an event log instead defers compression until a question is asked.
The post compares existing systems. Mem0 extracts standalone facts from each exchange and stores them in a vector database. Supermemory places facts in a temporal graph. Codex summarises idle sessions into markdown files, while Letta and Claude rely on files and agent-driven search.
Experimental setup
The researchers' system has no encoding or consolidation stage: every conversation turn is stored verbatim in a SQLite database. For tasks spanning sessions, the agent uses a library called Tardigrade with four tools: listing sessions, full-text search (FTS5), reading a window of a session, and SQL queries. For single-session tasks, three tools are available: describing the log's structure, searching and querying.


