Agent memory
Agent memory is how an AI agent keeps and recalls information beyond a single model call, from what it holds in context for the current task to notes and records it stores for later sessions.
A language model does not learn from being used. Each call sees only what is in its context window, and its parameters stay fixed. So whatever memory an agent has is built by the software around the model: information is either kept in the context or written to outside storage and fetched back when it is needed.
Researchers often borrow terms from cognitive science. The 2023 CoALA framework by Theodore Sumers, Shunyu Yao, Karthik Narasimhan and Thomas Griffiths names four kinds. Working memory holds what the agent is using right now. Episodic memory stores past experiences, such as earlier attempts at a task. Semantic memory holds knowledge about the world and about the agent itself. Procedural memory is know-how, partly inside the model's weights and partly in the agent's own code. Retrieval moves information from long-term stores into working memory; learning writes it back.
Two 2023 papers shaped the field. In Generative Agents, Joon Sung Park and colleagues gave 25 simulated characters in a small town a running record of everything they experienced, a habit of reflecting on it to form higher-level conclusions, and retrieval to plan their days; one character's plan for a Valentine's Day party spread through the town without further prompting. MemGPT, by Charles Packer and colleagues, borrowed the idea of tiered memory from operating systems, moving information in and out of the model's limited context much as a computer moves data between memory and disk.
Products now ship this as a feature. Anthropic's memory tool lets Claude keep files in a memory directory, check it before starting a task and update it as it works, while the developer's application decides where the files actually live. Its documentation tells developers to block attempts to reach files outside that directory and to strip sensitive information before storing anything.
Memory makes agents far more useful across days and weeks of work, and it brings the questions any stored record does: what is kept, for how long, who can read it, and how it gets corrected. A wrong note will be read back as fact in every later session until someone fixes it.
Only if they are built to. The model itself forgets everything once a call ends, so any memory comes from the surrounding software, which either keeps earlier text in the context window or saves notes and records and retrieves them later. Many agent products now include such a memory feature, usually with settings to view or delete what is stored. The context window is the text the model can see in a single call, and it is lost when the session ends or the window fills up. Agent memory covers everything the agent keeps beyond that, such as files, databases or summaries, and brings back into the context when relevant. Both fetch stored information into the model's context. Retrieval-augmented generation usually searches a collection of documents that someone else prepared, such as a company's manuals. Agent memory is typically written by the agent itself as it works, recording what it learned, decided or was told. It can be, because memory stores whatever the agent chose to record, which may include personal details. The practical safeguards are the usual ones for any stored data: limit what is written, control who can read it, set retention periods and give users a way to see and delete it.Common questions
Do AI agents remember past conversations?
What is the difference between agent memory and the context window?
How is agent memory different from retrieval-augmented generation?
Is agent memory a privacy risk?
Search for "long-term memory for LLM agents", "episodic and semantic memory agents" or the names of papers such as MemGPT and Generative Agents. Reliable sources include the research papers on arXiv, survey papers that compare memory designs, and the documentation of agent platforms, which states where memories are stored and how they can be deleted. Treat claims that an agent learns like a person with care: most memory systems are stored text retrieved by search.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.