Glossary
Agent memory
How an AI agent keeps information across steps and sessions: short-term context plus stored long-term facts.
Agent memory is the set of mechanisms that let an AI agent retain information beyond a single model call. Short-term memory is the working context of the current task, and long-term memory is information stored outside the model, such as past interactions, user preferences or learned facts, and retrieved when relevant.
Language models are stateless: they only see what is sent in each request. Anything an agent seems to remember was either included in the prompt or looked up from storage and put there.
Long-term memory is usually built with the same pieces as [RAG](/glossary/rag): a database, often with vector search, plus rules for what to save, what to retrieve and what to forget.
Memory improves continuity and personalization, and it adds privacy, accuracy and security questions: what is stored, who can see it, and what happens when it is wrong.
Start in 60 seconds
Put this to work on your project.
Get an AI-assisted, architect-reviewed scope, cost range, and timeline. Free, no login.