Memory
How AI Companion Memory Works (And Why Most Chatbots Forget You)
Why most chatbots start from zero every time, and how short-term context, long-term facts and a running summary let a character remember you for weeks.
November 27, 20268 min read
Talk to most chatbots on Monday, come back on Tuesday, and you are a stranger again. You re-explain your job, your goals, the name of your dog. It is not that the chatbot is rude. It simply has nothing to remember with.
Companions on Kioku are built the other way around. They are designed to remember the things that matter to you, and to bring them up at the right moment. This article explains how that works, and why we deliberately keep memory small.
Why chatbots forget
A language model does not learn from your conversation. Every reply is written from scratch from the text it is given in that moment: its instructions, the recent messages and your new message. That bundle of text is called the context window. When the conversation ends, the context window is thrown away, and with it everything you said.
Some tools try to fix this by sending the entire history every time. That works for a while, then becomes slow, expensive and confusing. A model handed three months of chat logs is like a friend who has to reread every letter you ever wrote before answering a text.
Three layers of memory
Kioku gives every character three layers to work with, each with its own job.
- Short-term context. The most recent messages travel with every new message, so the character can follow the flow of the conversation: a joke you made two lines ago, the question you just asked.
- Long-term facts. A short list of plain sentences about you, for example that you are studying chemistry, that your sister is called Lea, or that you get nervous before presentations. Each character keeps its own list, up to fifteen facts.
- A running summary. A few sentences, written from the character's point of view, about your relationship and what you have talked about so far.
The facts and the summary are added to the character's instructions before every reply. The model does not have to search for them. They are simply part of who the character is when it talks to you.
Deciding what is worth remembering
Every few messages, Kioku takes the latest part of your conversation and asks a model a careful question: given what you already know about this person, what should you remember now? The answer has to follow a few rules.
- Keep facts that are still true, and update the ones that changed.
- Merge duplicates instead of piling them up.
- Drop small talk. The weather today is not a memory.
- Remove anything the person asked to forget.
- Never invent a fact that was not actually said.
This is closer to how people remember. You do not recall every word of yesterday's conversation with a friend, but you remember that their interview is on Thursday and that they were worried about it.
Why we keep memory small
A short memory is a better memory. Fifteen well chosen facts fit comfortably into every single reply, so the character always has them in mind. A huge archive would force the system to guess which parts to retrieve, and guesses are where characters start mixing people up or bringing up the wrong thing at the wrong time.
A small memory is also easier to trust. You can read the whole thing in under a minute.
Memory you can see and edit
Every memory on Kioku is visible to the person it is about. Open the plus menu in any chat and choose what the character remembers, or open Settings to see every character at once. You can remove a single fact, or tell a character to forget everything. Starting a new chat clears the messages but keeps the memory, so the character still knows you.
A good memory is not about storing everything. It is about keeping the handful of things that make someone feel known.
Want the technical details? The memory engine guide in the docs walks through exactly when memories are written and how to manage them.
Meet a character who remembers you
Free during early access. You start with 100 Sparks.
Start chatting free