Agents Don't Need Memory, They Need Documentation
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Buying for a business?Offer from Amazon

Get business pricing on tech for your team

  • Business-only prices and quantity discounts
  • Tax-exempt purchasing
  • Multiple users, one account, clear invoices
As an affiliate, we earn on qualifying purchases.

A recent technical analysis argues that current AI agent memory systems, which rely on Retrieval-Augmented Generation (RAG) and vector databases, are fundamentally flawed. The author proposes replacing these with structured, document-based memory where agents actively read and update Markdown files. This approach aims to provide complete context and auditability, moving away from unreliable snippet retrieval.

A new technical analysis challenges the prevailing approach to AI agent memory, arguing that documentation, not vector-based retrieval, is the correct solution for maintaining project context. The author, writing on liao.gg, contends that current memory plugins relying on Retrieval-Augmented Generation (RAG) fail to provide reliable understanding because they treat past conversations as static truths rather than evolving knowledge. This critique suggests that the industry’s focus on embedding similarity and snippet retrieval is solving the wrong problem, leaving agents confused and prone to errors despite having access to vast amounts of stored data.

The analysis identifies a core architectural flaw in existing memory plugins: they generate isolated snippets from conversation transcripts and insert them into a vector database. When a user prompts the agent, the system retrieves the five most similar snippets based on embedding proximity. According to the report, this method results in a “lottery over RAG snippets,” where the agent may receive irrelevant or outdated information. Even if the retrieval works occasionally, the agent lacks a holistic understanding of the project, as it only sees fragments rather than the complete structural context.

The author outlines five specific failures of this recall-based system. First, similarity search cannot determine which information is current or correct. Second, snippets lose critical context, such as motivations and environmental factors. Third, the system treats past conversations as absolute truth, even though codebases change daily. Fourth, agents cannot search for knowledge they do not know they lack. Finally, the vector store is unauditable, making it impossible to track which memories are stale, incorrect, or never retrieved. The report argues that these issues stem from the false assumption that agents need to “remember” better, rather than needing structured, up-to-date records.

To address these failures, the analysis proposes document-based memory. Instead of a hidden vector database, agents should maintain a structured workspace of Markdown files containing instructions, specifications, and research. The agent’s workflow shifts from a simple prompt-build loop to a prompt-consult-build-update cycle. Before working, the agent reads relevant documents from this “brain.” After completing a task, the agent updates the documents to reflect new decisions or changes. This method ensures that the agent has access to complete, auditable, and current context, similar to how human teams use documentation to track project history.

At a glance
analysisWhen: Published recently, referencing trends…
The developmentA technical blog post titled ‘Agents don’t need memory, they need documentation’ argues that RAG-based memory plugins for AI agents are ineffective and proposes a document-based alternative.

Impact on AI Agent Reliability

This shift in perspective matters because AI agent reliability is currently a major bottleneck for autonomous coding and project management. If agents continue to rely on RAG-based memory, they will remain prone to hallucinations and context errors, limiting their utility in complex software development. By moving to document-based memory, developers gain transparency and control over what the agent knows. This approach aligns with human workflows, where documentation serves as the single source of truth. For teams building agentic systems, this implies a need to redesign how context is managed, prioritizing explicit, structured records over opaque embedding stores.

Amazon

Markdown documentation software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Evolution of Agent Context Tools

The concept of agent context has evolved rapidly. Initially, developers used simple files like AGENTS.md to provide basic instructions. However, as projects grew, a single file became insufficient. This led to the emergence of memory plugins that attempted to automate context retention using vector databases and embedding models. These tools became popular as AI agents began handling longer, multi-session tasks. The current critique builds on this history, noting that while AGENTS.md files were a step in the right direction, they were often the only documentation available. The proposed Operator Memory system described in the report formalizes this into a comprehensive workspace, addressing the limitations of both single-file instructions and automated RAG systems.

“You get a lottery over RAG snippets, injected on every prompt, hoping the right ones float up.”

— Author of the report on liao.gg

Amazon

project documentation tools for developers

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Scalability of Document Systems

While the analysis strongly critiques RAG-based systems, it remains unclear how document-based memory scales for extremely large codebases with thousands of files. The report does not provide detailed benchmarks comparing the token usage or latency of reading multiple Markdown files versus retrieving vector snippets. Additionally, it is not yet clear how widely the Operator Memory plugin has been adopted or if it has been tested in enterprise environments with strict compliance requirements. The long-term maintenance burden of keeping documentation updated manually or via agent updates is also a potential challenge that requires further real-world validation.

Amazon

AI project management documentation

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Adoption of Agent Documentation

Developers and AI tool providers may begin experimenting with structured documentation as a primary memory mechanism. Expect to see new tools that automate the creation and maintenance of Markdown-based knowledge bases for agents. The industry may shift towards hybrid models that combine lightweight retrieval with explicit document consultation. Further research is needed to determine the optimal balance between token costs for reading documents and the accuracy gains from structured context. As agentic workflows become more common, the demand for auditable memory systems is likely to increase, driving innovation in this space.

Amazon

structured knowledge base software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

What is the main problem with current AI agent memory plugins?

Current plugins use Retrieval-Augmented Generation (RAG) to retrieve similar snippets from a vector database. This method often retrieves irrelevant or outdated information because it relies on embedding similarity rather than understanding context or currency.

How does document-based memory differ from RAG?

Document-based memory uses structured Markdown files that the agent actively reads and updates. Unlike RAG, which retrieves isolated fragments, this approach provides complete context and allows for auditability of what the agent knows.

What is Operator Memory?

Operator Memory is a plugin described in the report that implements document-based memory. It provides a workspace where agents can store and retrieve instructions, specs, and research without using vector databases or embeddings.

Why is RAG considered unauditable?

Vector databases store information as embeddings, which are numerical representations of text. It is difficult to inspect these embeddings to determine which memories are stale, incorrect, or unused, making debugging and quality control challenging.

Source: hn

FALL

Fall Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

Webinar follow-up personalization tool for B2B consultants

A new webinar follow-up personalization tool for solo B2B consultants is in pilot testing, aiming to improve reply rates and lead engagement.

Is Canada Europe’s Best Bet For AI Collaboration Success?

Ursula von der Leyen’s proposal to deepen EU-Canada ties could position Canada as Europe’s key AI ecosystem partner, reshaping AI supply chains.

Karpathy’s Pelican

OpenAI’s Andrej Karpathy’s Pelican project is gaining visibility amid speculation about its purpose and future development.

Grok And ChatGPT Join Gemini In Pentagon’s Enterprise genAI Portal

Grok and ChatGPT have been integrated into the Pentagon’s enterprise generative AI portal alongside Gemini, marking a significant step in military AI adoption.