What is agent memory?
“Memory is, occasionally, a prediction.”
A language model forgets everything when a session ends. Each new session starts from the system prompt and whatever you put in its context window, which is the text the model can see at one time. If an agent learned yesterday that a database column is named differently from what the docs say, it will make the same mistake today unless that lesson was written down somewhere it can read.
Anthropic's post defines agent memory as exactly that written-down part: knowledge Claude gains from experience, from users and from tasks, kept between sessions as context it can read later. In practice this is usually a folder of plain files that the agent can list, read and edit.
The post is careful about what memory is not. It is not a change to the model's weights, the numbers set during training. It is not in-context learning, which only lasts for one conversation. And it is not compaction, where Claude summarises its own older turns to keep working in a fresh context window.
Read next: Agent memory, defined in one page


