AI Memory
What Is AI Agent Memory?
Memory for an AI agent is anything it can retrieve about past work that is not in its current context window. It comes in three kinds, and the one agents lack is almost never the one they are given.
What AI agent memory is
Memory for an AI agent is anything the agent can retrieve about past work that is not already in its current context window. That definition is deliberately mechanical, because the mechanism is the whole point: a language model holds no state between calls, so everything it appears to remember was placed in the prompt by something outside the model.
This is why memory is an architecture question rather than a model question. A more capable model reasons better over what it is given. It does not change what it is given.
The three kinds of agent memory
Conversation history is the record of what was said. It is the easiest to keep and the least useful to re-read: it grows without bound, and the information it contains is buried in the exchange that produced it.
Document retrieval is the record of what is written somewhere. A corpus is prepared in advance by humans, indexed, and searched at query time. It answers questions about a body of knowledge that exists independently of the agent.
Operational state is the record of what has been decided, done, and constrained. It is written by the agents themselves as work proceeds, it is small relative to the transcript that produced it, and it is the thing another agent needs in order to continue rather than restart.
Which kind agents are actually missing
Most systems that describe themselves as having memory have one of the first two. Chat history is kept and replayed, or a vector index is bolted on and consulted. Both are real capabilities, and neither answers the question an agent picking up someone else work has to ask: what has already been decided here, and what is still open?
That question is answered by operational state, and operational state is the kind that has to be produced deliberately. Nothing generates it as a side effect. An agent that is never asked to record a decision will not have recorded one, no matter how much of its transcript is retained.
How agent memory differs from RAG
RAG indexes documents and answers what information exists here. Agent memory keeps the state of work in progress and answers what has already been decided, and what is left to do. The distinction is not about the storage technology, which is often the same vector index in both cases. It is about who writes and when.
A RAG corpus is authored ahead of time and is stable between queries. A memory is authored by agents at runtime and changes as the work changes, which means it also has to represent supersession: a fact that was true last week and is not true now. A document index has no natural way to say that.
The two layers coexist. A system can retrieve a policy document from a corpus and, separately, recall that the team decided to deviate from that policy for one client three sessions ago.
What this means when you build one
Storing more is not the goal, and it is usually the failure mode. Every item an agent writes has to be re-read by some future agent under a token budget, so the useful memory is the small typed one, not the exhaustive one.
Venkai is a store for the third kind. It holds facts, decisions, constraints, preferences, events and relationships as typed objects, retrievable by relevance across sessions and across models, over REST, a Python SDK, or MCP. It orchestrates nothing and replaces no document index.
FAQ
Is agent memory just a database?
It sits on one, the same way a filesystem sits on a disk. The part that makes it memory rather than storage is that the agent decides what to write, and retrieval returns what is relevant to the task at hand rather than everything that matches a key.
Do agents need memory if the context window is large enough?
A window of any size still starts empty at the next session. Size governs how much an agent can hold at once; memory governs what comes back after the window is gone. They are different limits and only one of them is solved by a bigger model.
What should an agent not store?
The dialogue itself. Turn-by-turn transcripts are where the volume is and where the least durable information lives. What survives a task is the facts it established, the decisions it took, and the constraints it discovered.