What an AI Agent Should Remember

By Jhony Vidal
Published 1 November 2026
Updated 13 November 2026
4 min read

For: Product owners and engineers designing AI assistants

Separate useful preferences from task progress and facts that need a fresh lookup.

On this page

An AI assistant can save a conversation and still give an out-of-date answer. Keeping more history does not tell it which details are still true.

Suppose a product team first plans to launch on 8 November. They discuss that date with their assistant. A week later, they approve 22 November in the team’s release tracker, but the assistant keeps answering from the old conversation.

The problem is not that it forgot the first date. It is that the application never checked the approved date before answering.

When designing an assistant, separate what it should remember, what it needs only for the current task and what it must look up again. That decision matters more than how much conversation history you can store.

A bigger conversation is only one part of memory

The context window is the limit on how much information a model can use at once. The information supplied for one response can include instructions, messages, documents and tool results. An application can also save information outside that window and retrieve it later. Saving a note in a database does not, by itself, train the model.

Anthropic’s context engineering guide describes selective retrieval and structured notes as ways to manage what reaches the model. The part I find useful is the emphasis on choosing the material for the current task, rather than treating the whole history as equally relevant.

For the launch assistant, start with three kinds of information.

Three information stores feed the current response. Working state holds this task's progress. Reusable memory holds approved preferences with a source and scope. A source system holds changing facts such as the current launch date, which should be fetched again.
A design sketch, not a required architecture. These categories can start as a few records and links.

Working state is where we are in the task. Which release are we discussing? What has been checked? What is still unresolved? It should help the next step without becoming a permanent claim about the user or company.

Reusable memory holds things that are useful across tasks, such as an explicitly approved preference for short release summaries. A preference needs a scope. One person’s writing preference should not silently become the team’s policy.

The source system holds facts that change: release dates, delivery status, account permissions or whether a document has been approved. Store a link or identifier and fetch the current record when the answer depends on it.

Those distinctions can live in a relational database, files or an existing application. Semantic search may help find relevant material by meaning. It does not decide which version is authoritative.

Keep the receipt with the memory

A saved statement such as “Launch is on the 8th” loses the details needed to judge it. Was that an early suggestion, an approved decision or the assistant’s own inference?

For information worth keeping, use a small record:

KeepWhy it matters
The statement and its sourceLet the reader check where it came from
The person, team or task it applies toAvoid carrying it into the wrong conversation
When it was stated and when it appliesSeparate a recent note from a future effective date
Whether it was explicit or inferredAvoid presenting a guess as an instruction
When to refresh, replace or remove itGive change a defined path

Not every note needs every field. A temporary checklist can be much simpler. But if the system cannot say where a persistent belief came from, correcting it will be harder than it needs to be.

For the launch example, the approved release tracker decides the current date. The meeting notes explain why it changed. The old chat explains what the team considered earlier. A new casual message should not override the approved plan simply because it is newer.

A useful saved preference could look like this:

DetailExample
PreferenceKeep release summaries under 150 words
Applies toThis person’s summaries
SourceThe person’s explicit request
Keep untilThey change or remove it

The launch date belongs in the release tracker, not in that preference record. Before answering “When are we launching?”, fetch the release record and show its link beside the date.

Fictional decision history: an early chat proposes 8 November, an approved release record changes the date to 22 November, and a later question retrieves the approved record. The old proposal stays historical rather than overriding the current decision.
The dates are fictional. The important part is the explicit authority rule, not which sentence sounds most confident.

Write a handover another session can use

An agent that works across several sessions needs a useful way to resume. Save the objective, completed work, unresolved questions and links to evidence. “I made good progress” is not a handover.

Anthropic’s work on long-running agents uses progress records and other durable artefacts to help later sessions continue. That is an engineering account of one approach, rather than proof that every agent needs the same setup.

For a planning assistant, a helpful note might say: “Checked the release tracker. The approved date is 22 November. The customer announcement is still awaiting review.” It should link to the record and avoid turning “awaiting review” into “approved” during the next summary.

Summaries deserve checking too. Repeatedly shortening a conversation can remove the disagreement, condition or uncertainty that made a statement accurate. Keep a route back to the original evidence for decisions that matter.

Test change, forgetting and uncertainty

The LongMemEval benchmark tests several abilities, including reasoning across sessions, handling knowledge updates and declining to answer when information is missing. That is a useful way to think about memory evaluation. The question types are useful even when its older model scores are no longer a fair comparison.

Before adding more storage, run five small conversations through the application:

  1. Change an agreed fact. Does the next answer use the approved update?
  2. Put a preference in one person’s account. Does another person ever see it?
  3. Ask about something never supplied. Does the assistant admit the gap?
  4. Remove a stored preference. Does it stop influencing later answers, including through retrieved summaries?
  5. Resume an unfinished task. Can the assistant identify what remains without declaring it complete?

For deletion, define what the user action covers: the original record, search index, derived summaries and any retained history. A “forget” button should have behaviour the team can explain and test.

You can start this exercise on paper, with no paid service. Choose one assistant task and write down what it may keep, what it must fetch again and what it must never carry between users. Then try to break those rules with a changed decision.

For a related design decision, read how to give an AI feature a focused job. Decide what the person needs to check before deciding what the assistant should keep.

References

Put the idea to work

Choose a small local project to inspect a real result, or find your next reading route.


Tags

ai-engineeringarchitecture

Share

The Author

Jhony Vidal

Jhony Vidal

Lead AI Engineer