Berk Bayri

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.