How memory works in Shiro
Updated October 18, 2026
AI characters can't read an endless story at once, so Shiro uses three kinds of memory to keep long stories consistent.
Recent messages
Every reply is written with the most recent part of the chat in view. How much depends on the chat style: Spark remembers the least and Prism the most.
The story so far
When a chat grows longer than its style can keep in view, the older part is folded into a short summary of the story so far: names, relationships, key events, promises and where you are now. The character reads that summary along with the recent messages, so the story isn't forgotten. The summary is updated as the story goes on, and redone if you edit or rewind an earlier part.
Pinned memories
Some facts must never be lost or changed: your character's name, a promise, how two characters met, an injury. Pin them. Press and hold any message and choose Pin as memory, or open Pinned memories from the chat menu and write one yourself. The character always keeps pinned memories in mind, in every reply.
Each chat can have 3 pinned memories, or 25 with shiro+. Keep them short and factual, for example "We met at the lighthouse during the storm" or "Mira is afraid of deep water."
What each kind of memory is good for
- Recent messages carry the details of the current scene: what was just said, where everyone is standing, the mood.
- The story summary carries the shape of the whole story: how you met, what happened in earlier chapters, how relationships changed.
- Pinned memories carry the facts that must stay exactly right, no matter how long the story gets.
When a character forgets
If a character forgets something, it usually fell out of the recent messages and wasn't important enough to make the summary in detail. Pin it, or mention it again naturally in your next message ("*touches the scar the wolf left last winter*"), and the character will pick it up. If it happens often in a long story, a style with a longer memory (Nova or Prism) helps. See chat styles explained.
Memory and editing
When you edit a message, regenerate a reply or rewind the story, memory follows the story as it now stands. The character won't remember a reply you replaced or a part you rewound. More in steering, fixing and rewinding a story.
Tips
- Pin facts, not instructions. "She owes me a favor" works better than "remember to be nice".
- Update pins as the story changes; remove ones that no longer matter.
- Starting a new chat with the same character starts a new story with a fresh memory.
More guides
- Getting started with Shiro
- How to create a great AI character
- Roleplay writing tips for better stories
- Chat styles explained
- Safety and community guidelines
- What you get with shiro+
- Frequently asked questions
- How to write a great first message in a roleplay
- Character personality ideas by genre
- How to write a character greeting that starts a story
- Voice calls and character voices
- Turn your original character into an AI character
- Roleplay story ideas by genre
- Steering, fixing and rewinding a story
- Using a persona: how characters see you
- Sharing your characters and finding an audience
- Making a great character portrait
- How AI characters work
- What to look for in an AI character chat app
- Friends, messages and status notes