Why this works
An AI character doesn’t remember a story the way you do. Before each reply, the app sends the model a bundle of text, and the model writes from that alone. Once a roleplay is longer than the bundle can hold, the oldest messages stop being sent. Why AI roleplay forgets explains the causes in detail, and how AI memory works explains the machinery apps build around it.
Every step below does one of two things. It puts an important fact somewhere that is sent with every reply, or it makes the text that is sent shorter and clearer so more of the story fits.
Step 1: Use names, every time
“I hand Mara the letter from her brother Tomas” gives the AI two names to hold on to. “I hand her the letter” gives it none. Lorebooks trigger on names, and memory search matches them.
- Use a person’s name at least once in any message where they matter.
- Name places and objects that will come back: the inn, the ship, the sword.
- When the AI invents someone you like, use the name in your next message so it sticks.
- Keep names distinct. Two characters called Mara and Maren will get swapped.
Step 2: Keep a pinned note of what’s true right now
Most apps have a box the AI reads on every reply, whatever it’s called. Character.AI lets you pin messages to Story Memory, with 15 pins on the free plan and 30 on (c.ai) lite and c.ai+ (plan table). Janitor AI has a Chat Memory box you keep up to date yourself. SillyTavern has an Author’s Note. LoreWeaver has session notes and pinned memories.
Use it for the facts that change scene to scene and would hurt to lose:
- Injuries, disguises, what someone is carrying.
- Who knows which secret.
- Where everyone is and what time it is.
- The promise or deadline the scene is building toward.
Write short, plain lines, such as “Mara’s left arm is broken and in a sling.” Delete lines when they stop being true, because an old note the AI keeps reading is as bad as a missing one.
Step 3: Save a summary every so often
On apps without automatic memory, a summary is how the early story stays in view. After a big scene, or whenever the chat starts to feel long:
- Step out of the story and ask for a summary, for example “(OOC: Summarize the story so far in ten bullet points, with names, places, and any open promises.)”
- Read it and correct it. A summary with a wrong fact will spread that fact everywhere.
- Paste it into the memory or notes box from Step 2, replacing the previous summary.
- Delete the summary request and reply from the chat if your app allows it, so they don’t take up room.
Keep the summary to what still matters. Ten lines that cover the open threads do more than a long retelling.
Step 4: Move side characters and places into a lorebook
A lorebook entry is read only when its keywords come up, so it can hold far more than a pinned note without costing room on every reply. Give each recurring person, place, and faction its own entry, keyed to names, nicknames, and titles. Lorebooks explained covers how entries fire, and if you’re on Character.AI, its Lorebook works the same way with a few limits.
A good test of whether something belongs in a lorebook is whether the story needs it in every scene. If not, take it out of the definition and give it an entry.
Step 5: Keep the character definition short
The character definition is sent with every reply, and every word in it is a word of recent story that doesn’t fit. A long backstory full of side characters and history leaves little room for what just happened, which is exactly what the character forgets.
- Keep who the character is, how they talk, and what they want.
- Move history, side characters, and places into lorebook entries.
- Replace long example conversations with one or two short ones.
How to write an AI character shows what a lean definition looks like.
Step 6: Know your context size
The context window is the cap on what’s sent with each reply, and it varies a lot. Janitor AI’s free tier, for example, has a context limit of around 9,000 tokens. On LoreWeaver, context runs from 6,400 tokens on the free plan to 100,000 on Legendary.
A bigger window keeps more of the recent story word for word, which helps most in busy scenes. It doesn’t replace the steps above, because a long story eventually outgrows any window. Context windows explained shows what fits in each size.
Step 7: Fix mistakes before you answer them
When a reply gets something wrong, such as a dead character walking in or a name changing, regenerate it or edit it before you reply. If you play on, the wrong version becomes part of the story, and from then on the AI reads its own mistake as fact.
A few more habits help:
- Restate a fact inside the scene when it’s about to matter. “I remind Mara of the oath she swore at the river” works better than hoping the AI recalls it.
- Don’t repeat the same reminder every message. It crowds out the story, and the character may start repeating it back.
- Keep one story in one chat. Starting a new chat to clear confusion usually clears everything.
How LoreWeaver does this for you
LoreWeaver does most of these steps automatically, so you can play and step in only when something needs fixing:
| The manual step | What LoreWeaver does |
|---|---|
| Asking for summaries | Saves memories from the story every few replies, and keeps a running recap of the story so far that you can read, edit, or lock |
| Pasting summaries back in | Picks the memories that fit each moment and sends them with the reply |
| A pinned note | Session notes of up to 500 tokens, plus pinned memories that reach every reply |
| A lorebook | Lore cards that join a reply when pinned, or when your message or the recent story names their title or a tag |
| Checking what the AI saw | A context inspector on the latest reply, listing the memories and lore cards it used |
Each plan sets how many memories a story keeps: 30 memories per story on Free, 300 on Plus, 1,200 on Pro, and every one on Ultra and Legendary. Memories belong to the story they were saved in, so keep one campaign in one session and branch it for what-ifs. You can also press Remember now to save the latest replies right away, or write a memory yourself.
You can try it without an account: play any Hub world as a guest for 20 replies. The free plan adds 25 premium replies a day on top of the fast free storyteller.
Sources
- Character.AI blog: Smarter Memory for Smarter Chats, May 21, 2026
- Character.AI help center: About (c.ai) lite, for pins by plan
- Janitor AI help center: Chat Memory and context management
- Janitor AI help center: janitor+ subscription FAQ, for the free context limit
All checked November 16, 2026.



