A language model has no memory of its own between calls; it only knows what is sent to it each time. Agent memory is everything a builder adds so that an agent remembers what matters: what was said earlier in a conversation, a customer's preferences, which tasks it already finished, or which approach worked last time. For a business buyer memory is what makes an assistant feel continuous rather than starting from zero, and it raises real questions about storage, privacy and cost.
How it works
Builders usually separate memory into layers:
- Short-term or working memory. The recent conversation and intermediate results, passed into the model's context window. When it gets too long, older parts are summarised or dropped.
- Long-term memory. Facts stored outside the model, in a database or vector database, and retrieved when relevant, much as in retrieval-augmented generation.
- Structured state. Records such as customer ID, open tickets or task progress kept in ordinary database tables.
- Procedural memory. Instructions or examples updated over time, for example a note that a particular supplier always sends invoices as images.
The hard parts are deciding what to save, when to retrieve it, and when to forget it. An account management assistant, for instance, might store each customer's preferred contact times and past issues, retrieve them when that customer's name comes up, and ignore everything else so the context stays small.
What it means for cost
Memory adds design and running costs:
- Storage and retrieval. Extra databases, embeddings and queries add infrastructure and latency.
- Token use. Every remembered item passed to the model costs tokens on every call, so careless memory increases running costs.
- Quality. Wrong or outdated memories cause confident mistakes, so builds need ways to correct or expire them.
- Privacy. Remembered details are often personal data. Users may need to see or delete them, and retention rules apply.
Ask a builder what the agent will remember, where it is stored, who can see it, and how a user or administrator can correct or delete it.
Common questions
Why does a chatbot forget what I said earlier?
Either the conversation outgrew the model's context window and older messages were trimmed, or the system was not designed to store anything between sessions. Both are design choices that a builder can change, at some cost.
Is agent memory the same as training the model?
No. Memory is stored and retrieved alongside the model; the model's weights do not change. That makes memory quick to update and easy to delete, which training does not allow.