The short answer
AI agent memory saves useful facts and instructions outside a model, the software that generates a response, then reads back notes for later work. Software picks what to keep. Notes go into files or a database, then back to the model when needed so someone doesn't have to explain the same details again.
What happens between learning something and using it?
A finance lead asks an AI tool to prepare the invoice run and explains a rule: hold back any invoice under dispute for review. The tool needs that rule next time, too. To make that happen, software has to save the rule and supply it in a later request.
The model works with the text supplied for a request, called its context. That can include rules, earlier messages and saved notes. The context window is the limit on how much the model can take in at once.
Keeping a whole chat doesn't mean the model will use every detail well. Long histories can exceed that limit, and stale notes can hurt answers even when all the text fits.
The memory process has several stages. A fact moves from a chat into storage, then back into use. Software can write notes during a task or afterward.
1. Choose what deserves to carry over
A chat holds passing requests as well as facts worth saving. The software needs a way to decide what belongs in later work.
Facts about a customer or a person's preferences are called semantic memory. A record of what happened during an earlier task is episodic memory. Procedural memory holds instructions for doing work. These types describe what gets kept, not how long the notes last.
In the made-up invoice example, the review rule describes a process. A note on how the team settled a past dispute records an event. Mixing them up could turn a one-off choice from last time into a rule for every invoice.
2. Write the information to storage
The chosen facts need somewhere to live. Software can write a note to a file in a folder. Or it can save a record in a database, where each entry has a name.
One design keeps an updated profile for a person or business. Another keeps a set of notes. A profile keeps the facts together, but edits to a large one can lose details or add errors. It's easier to add a new note, though software then has to find older notes on the same subject and resolve any changes.
Storage also needs a way to group records. A namespace is a label that does that, much like a folder. Labels can group notes by person or company so the software knows where to look.
3. Decide when the write happens
Saving during the task makes a new note ready for the next request. Engineers call that writing on the hot path: memory work happens before the main response is done. The choice of what to save can make the response slower.
A background process reviews notes apart from the user's current request. The user doesn't wait for that work to finish. But a new chat can start before the latest note is ready.
Both are documented design choices. For a change to the invoice rule, ask whether a new chat would know right away or only after a later update.
4. Find the right notes for new work
A later request starts the reading side of memory. Software can fetch a known record by its name or search a set of notes for useful entries.
Semantic search means searching by meaning, without needing the same words. In the made-up example, a request about bills awaiting payment could find a note about invoices under dispute. The words differ, but the subjects are linked.
A system can check memory before starting a task or read notes on demand as the work proceeds. Retrieval is the step that finds and returns stored text. Saving a note and finding it later are distinct steps, so test both.
5. Put the notes into the model's request
The software sends the saved text back to the model to use in its response. A memory tool can handle this as a request and result. The model asks to read a note, software fetches it from storage, and the result goes back to the model.
The software controls the storage. The note gives the model facts or rules for the current work. Saving it doesn't repeat the model's training, the process of learning patterns from data.
For the invoice run, the saved rule can now guide which invoices go into the review pile. Check whether the result follows the rule. A message saying the note was saved only tells you about the first half of the process.
Why can a saved memory still produce a mistake?
A finance lead changes the dispute process, but the old rule remains beside the new one. The notes now conflict. Adding a new note hasn't resolved which rule applies.
To keep a set of notes current, software has to find an old entry and edit or delete it. Some models favor adding new entries. Others favor changes to old ones. A single profile has a different risk: edits can lose facts that should have stayed.
The search can go wrong, too. Split-up notes can leave out links between facts that a profile would keep. A search result about one invoice under dispute doesn't always explain the company's whole payment process.
More text isn't a sound fix. Long inputs can include stale details that distract the model and slow its response. Memory needs edits and deletions when notes no longer belong.
Ask to see what happens when a fact changes. The test should show the first note, the change to storage and the result in a fresh chat. Check whether the old rule still appears.
What would that look like during an invoice run?
Consider a made-up agency getting ready to pay suppliers. The finance lead explains that invoices under dispute belong in a review list, with the reason beside the supplier's name.
The tool saves that rule. In a later chat, someone asks for the payment list. The software finds the process note, adds it to the model's context and uses the rule to prepare the list.
Then the process changes: each invoice under dispute must also name the person who will resolve it. The next test needs an invoice with no owner recorded. Does the output flag the missing owner, or follow the old format?
Check the saved rule as well as the finished list. That helps tell a failed update from a failed search, or a model that got the right note but didn't follow it.
How Viktor does this
A skill is a short set of instructions for a task, including when the instructions apply and how your team does the work.
Viktor records lasting preferences, goals, corrections or facts about you in your personal skill during the same run. He does that even when your main request concerns something else.
You can read what he has recorded under About you on the Skills page, and only you can see it. The Personalize Viktor documentation describes that personal skill.
He remembers processes across conversations through skills. He picks up the right skill when a task calls for it.
You can also teach him by recording your screen and talking through the steps. He writes a reusable skill from the recording.
Common questions
Does short-term memory disappear when a chat closes?
No, short-term memory can survive closing a chat if the software saves its state, meaning the messages and other details tied to that chat. Long-term memory carries facts across different chats, even if the first chat is still available.
Does saving a memory change the model itself?
No, saving a note in storage doesn't retrain the model. Software finds the note and sends the text with a later request. The model can draw on both that text and the knowledge it learned during training to form an answer.
Is memory the same as RAG?
No, memory carries information between conversations, while retrieval-augmented generation (RAG) finds material, such as a saved preference or policy document, to use when writing an answer to a new request.