Agent memory
Information an AI agent can carry beyond a single exchange, either inside its current context window or in a store outside the model that it can write to and read from later, such as notes, past interactions, user preferences or files.
Agent memory is whatever lets an AI agent use information from earlier work. The model itself does not remember anything between calls. Its weights stay the same, and each request starts with only the text placed into its context window. Memory is built around the model by the harness.
There are two broad layers. Short-term memory is the running conversation, the plan, recent tool results and notes kept inside the current context. Long-term memory sits outside the model: a file of saved notes, a database of past interactions, a profile of user preferences or a vector database that is searched when something seems relevant. The agent, or the system around it, decides what to write there and what to bring back into context later.
Memory is not learning
A larger archive does not make an agent better at its job. It can store every past mistake and still repeat them, because nothing turned those episodes into a corrected rule. The AI myth that agent memory means the agent learns covers this gap. Improvement needs someone, or some process, to review what was stored, keep what was validated and throw out the rest.
Memory can also make results worse. Stale notes, wrong assumptions saved early and irrelevant history pulled into context all compete with the task at hand. This slow build-up is close to what this glossary calls context debt.
Decisions to make before switching it on
Memory is a data store, so it carries data questions. Who can see what the agent remembers about a customer or an employee? How long is it kept, and can a person ask for it to be deleted? Can one user's memory leak into another user's session? Can an attacker plant a false memory that changes later behaviour? These belong in AI governance before rollout.
Related terms
Agentic AI
AI systems that pursue a goal by planning, using tools and taking multi-step actions with some autonomy, rather than only answering a single prompt.
Context window
The amount of text, measured in tokens, that a language model can take into account in one request: the instructions, the conversation so far, any attached documents and the answer it is writing.
RAG
Retrieval-augmented generation: a pattern where a model is given relevant documents or data retrieved at question time, so its answers rest on current, specific sources rather than only its training.
Vector database
A database built to store vector embeddings and quickly find the ones closest in meaning to a query. It is the usual retrieval layer behind RAG systems and semantic search.
Context debt
The growing difficulty of knowing what a persistent AI agent currently believes, where that belief came from, and how to correct it, as the agent accumulates memory over time.
Harness
The software around a model that manages context, tool use, sub-agents and the execution environment. It shapes real-world capability, so it must be evaluated with the model, not ignored.
AI governance
The rules, owners and checkpoints that decide what an AI system may access, decide and change, and who answers when it goes wrong. Governance that treats every agent the same is a weak control.