An AI agent needs only a short preferences file, written procedures and the ability to search its own past conversations. Most dedicated memory systems add cost without adding much. Agent memory explains the alternatives neutrally.
Memory is one of the most heavily marketed parts of the agent ecosystem, and vendors pitch vector databases and knowledge graphs as what makes agents personal. If plain files and search do the same job, teams can skip building and syncing a second copy of their data.
The position rests on what agents already do well, which is searching text with ordinary tools such as grep, the standard Unix text-search command. It also rests on the measured limits of embedding search and on the cost of processing memories before anyone asks for them.
Background
Most memory products are built on retrieval-augmented generation (RAG), a design named in a 2020 paper that paired a text generator with a dense vector index of Wikipedia.[11] Text is split into chunks, each chunk is turned into an embedding, and at question time the nearest chunks are added to the model's prompt. Graph variants extract people, projects and relationships into a knowledge graph. Many systems also run a background step that rewrites raw conversations into tidier memories before any task needs them.
The alternative keeps raw history as text and gives the agent ordinary search tools. Coding agents do this already for source code, where about half of their tool calls are reads and searches.[8] In my own work, code assistants used to find files through RAG. By mid-2026 agents searching the repository with ordinary tools had replaced that, and I joked about RAG-based file lookup as a tale from the early days of AI.[12]
My position
Dedicated agent memory systems are mostly unnecessary.[1] An agent needs a way to capture preferences, a way to capture workflows and a way to see what was done in the past, and each already has a plain implementation.[10] Preferences go in one file, an AGENTS.md for a code repository or a memory.md for a long-running bot. Procedures become skills, which the agent can write and prune itself; I ran a nightly job that turned the day's sessions into new skills and a weekly job that deleted the unused ones.[9] The past is a search over old sessions, run when a task needs it.[3]
RAG and graph memory duplicate data that already exists and give you a second store to maintain. They also make you process everything up front, spending time and tokens to turn memories into a usable shape before you know whether you'll ever need them. This is the step Anthropic calls "dreaming" (see Agent memory). In my experience most of those processed memories are never used.[2]
My own setup follows this. A session search tool was one of the first plugins I added to my workbench,[13] and my bots keep a small memory file for reminders while search over their past threads does the rest.[4] I have not needed anything heavier.
Evidence
Retrieval by embedding has a ceiling. An embedding is a fixed-length list of numbers, and a 2025 paper proved that the length of that list caps how many different sets of top results a search can return. The authors then built a simple dataset on which state-of-the-art embedding models fail.[5] Keyword search has a different weakness. It misses text that uses different words for the same idea. An agent can work around that by trying several phrasings, which it does cheaply, and it can read what comes back to judge whether it found the right thing.
A study of RAG systems found that many wrong answers come from retrieved context that was not sufficient to answer the question, and that large models tend to answer anyway.[6] This applies to any retrieval method, including search. What it argues for is letting the agent keep searching until it has enough, which an agent with search tools can do and a one-shot retrieval step cannot.
The closest benchmark evidence comes from a neighboring design. Hatchery, a company that builds agent memory tools, reported in a blog post, "The Bitter Lesson for Agent Memory", that an agent writing SQL queries over its own log of past events matched or beat published memory systems on agent-memory benchmarks, and that summarizing in advance added little as models improved.[7] That is a database query, not a text search over files, so it does not test grep directly. It does share the property this position depends on, because the raw record is kept and the agent searches it when a question arrives instead of relying on memories prepared in advance. The result fits the bitter lesson, the observation that general methods using more computation tend to overtake hand-built structure. When the post came out in December 2026, a month after I called memory systems mostly garbage, I quoted it with one word, "VINDICATED".[16]
The reaction to my post was also informative. Several people who sell memory systems replied that I was wrong, and when I looked at what they had built, it was the plain files and search I was describing.[15]
My failed experiment points the same way. Spool was a local event bus that pulled my email, calendar, browser history, GitHub and X activity into one stream for agents, built on the hunch that the most complete context would produce the best decisions. An agent could query it and get a rough sense of what I was doing, but no task I had needed it.[14] I replaced it with bots that fetch from a source when a task asks for it.
Criticism and counterpoints
Search depends on the agent knowing what to look for. A graph can surface a connection between two projects that nobody thought to query, and summaries can bring an old decision forward without a search. My answer is that a capable model asked to look around will find most of these, but I have not measured how many it misses.
The name of the position is also loose. Running grep and putting the matches in the prompt is retrieval followed by generation, so critics fairly point out that it is a kind of RAG. What I argue against is narrower, namely the embedding index, the second copy of the data and the processing done before any question is asked. I have made the same point from the other side. In September 2026, quoting another team's work, I wrote that they were reinventing RAG from first principles, and that reports of RAG's demise had been greatly exaggerated.[17][18]
I also do some processing ahead of time myself. The nightly skill extraction described above reads every session before anyone asks a question, and in June 2026 I suggested that a harness could resume a forked copy of a finished session in the background and prompt it to reflect on what happened.[19] What I would defend is the output. Skill extraction leaves a few skills a person can read and delete, with no parallel store of rewritten memories. Where that line sits is a judgment call.
Search also costs something on every task, while preprocessing costs once. For an agent that answers the same kinds of questions thousands of times, a precomputed index may be cheaper overall. Large organizations with millions of documents are a different case from one person's history, and this position is about the second.
Raw transcripts also keep everything, including material a person would rather an agent forgot. A curated store is easier to audit and prune.
History and timeline
- 2020: Lewis et al. publish the paper that names retrieval-augmented generation.[11]
- Jun 2026: I run nightly skill extraction from my sessions[9] and suggest background self-reflection on finished sessions.[19]
- Jul 2026: I joke about RAG-based file lookup as a tale from the early days of AI.[12]
- Aug 2026: A session search tool is among the first plugins in my workbench.[13]
- Sep 2026: I build Spool to collect context about me[14] and write that reports of RAG's demise are exaggerated.[18]
- Oct 2026: I write that grepping past sessions beats sophisticated RAG memory.[3]
- Nov 2026: I post that memory systems are mostly garbage,[10][1] and vendors reply.[15]
- Dec 2026: Hatchery's blog post reports that queries over raw event logs match or beat memory systems.[7][16]
What would change my mind
A memory system that beats plain search on my own work at lower total cost, measured by an eval, would change my mind. I have not seen one yet.
See also
Change log
- 2026-12-03: Enriched with a timeline, the vendor reaction, the Hatchery result as I saw it, and a counterpoint on my own processing ahead of time.
- 2026-12-03: Enriched with the original RAG paper, dated evidence from my own tools and a counterpoint on what counts as RAG.
- 2026-12-02: Rewritten as an argued position with counterpoints.
- 2026-11: Published the argument as a post.[1]
- 2025-05: First reading on retrieval limits.
References
- ^ Memory systems are mostly garbage (post, Nov 2026)
- ^ RAG memory duplicates data and wastes tokens; agents grep fine (@trashpandaemoji, Nov 2026)
- ^ Grepping past sessions beats sophisticated RAG memory (@trashpandaemoji, Oct 2026)
- ^ Bots with a memory file, thread search as the main memory (@trashpandaemoji, Oct 2026)
- ^ Weller et al., On the Theoretical Limitations of Embedding-Based Retrieval
- ^ Joren et al., Sufficient Context: A New Lens on Retrieval Augmented Generation Systems
- ^ Hatchery, The Bitter Lesson for Agent Memory
- ^ About half of a coding agent's tool calls are reads and searches (@EntireHQ, May 2026)
- ^ Nightly skill extraction from past sessions (@trashpandaemoji, Jun 2026), since deleted
I'm slowly starting to lean into automations a bit more. - Weekly skill to look at my past sessions and delete unused skills - Nightly skill to look at the past day's sessions to extract skills - Nightly loop for Neon Pilot that hardens the Neon Pilot codebase (code quality,…
- ^ Memory systems are mostly garbage: preferences, workflows and the past (@trashpandaemoji, Nov 2026)
- ^ Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- ^ A tale from the early days of AI, when finding files meant RAG (@trashpandaemoji, Jul 2026), since deleted
Gather around children for a tale about the early days of AI. Before we had agents and everyone adopted the Codex UI, we had auto completion in our IDEa and in order to find files we had to rely on something called RAG. It was a wild time. You had to read code, and hit tab to…
- ^ A session search tool among my first workbench plugins (@trashpandaemoji, Aug 2026), since deleted
@_ymichael @sawyerhood This is great. I've been adding plugins the last few hours and so far I've added: 1. An excalidraw plugin so I can whiteboard […] 3. A session search tool
- ^ A local event bus as a single stream of context about me (@trashpandaemoji, Sep 2026), since deleted
I'm starting to experiment with this idea. I built a local event bus that gets data published to it from various sources. My email and calendar, browser history, github, twitter interactions, and various random sources like hooking it up to my meshtastic node and arxiv. The goal is to try to get as much context into a single source, a single stream of context that I would receive. My hunch is that, if it hits my eyeballs or concerns me, then I want events fired into this event bus. So far its pretty interesting but no major use case as fell out of it yet. An agent is able to query the data and get a general, rough sense of what I'm currently doing and what interests me. A rough first use case is to have a persistent agent wake up and inspect the event bus every so often and keep notes and keep an eye out for anything particularly interesting. I don't really have a specific need yet though. Still exploring this space. The rough feeling I have is that if I have a single place where an agent can look to gather context about me that's as complete as possible, it can do a better job making decisions on my behalf.
- ^ Memory vendors reply, and their systems are what I describe (@trashpandaemoji, Nov 2026)
- ^ Vindicated, on the bitter lesson for agent memory (@trashpandaemoji, Dec 2026)
- ^ They're reinventing RAG from first principles (@trashpandaemoji, Sep 2026), since deleted
They're reinventing RAG from first principals lol
- ^ The reports of RAG's demise have been greatly exaggerated (@trashpandaemoji, Sep 2026), since deleted
The reports of RAG's demise have been greatly exaggerated
- ^ A background task that resumes a forked session to self-reflect (@trashpandaemoji, Jun 2026), since deleted
@ryanvogel Alternatively, since you guys control the harness, you can spin up a background task that resumes a forked session with a prompt to self-reflect.