AI models forget a lot. In fact, AI models don't have a memory at all. Every time you press Continue, it reads the entire context (more on that later) and writes what comes next as if it were seeing it for the first time. Anything outside the context doesn't exist.
How AI memory works
AI models have no way to remember anything that they were not trained on (like your story). Making the AI remember the important parts is part of what FicMachine does. The app sends a block of text called the context each generation. The context is composed of:
- AI Instructions: Tells the AI how to narrate, style, premise, setting, etc. These are always sent.
- Cards: mostly characters, but also places, lore or a summary of past events. A card is sent when any of its keywords appears in the recent story, or when you pin it.
- The most recent part of the story: as much as it can fit in what's left.
The size of the context is measured in tokens (~0.75 of a word each). With 2,000 tokens, the AI reads about 1,500 words. That's a few pages.
You can see this prompt yourself. In the editor, press Inspect Context to see what the AI sees.
What gets cut?
Context is one of the main costs of running an AI service. So context size needs to be limited in order to keep the service afloat.
The things that go first are the oldest parts of the story. If those are never put into a card, the AI will forget.
- A character's eye color mentioned in chapter one. If that character appears three chapters later but there's no eye color in the card, the AI will not know about it.
- A promise or a secret set up early and not mentioned ever again.
- The king sends you on a quest and five episodes later, deep in the dungeon, the AI has no idea what you're doing there.
- Rules of the world you established in the narrative (a character explaining how magic works) instead of in the instructions.
Takeaway: If it's not in the context, the AI has no idea it exists.
How to keep it tight
Move rules into AI Instructions. For example, facts about your setting that always need to be remembered.
Give every character a card. Keep it short: name, look, how they talk, what they want. Set keywords for their name or nickname.
Pin what's about to matter. If you want the AI to introduce an old character when it feels right, make sure it knows about it.
Re-mention things in the prose. Write or edit details like "Mara rubbed the scar on her hand". That puts the detail back in the window.
Check what's there. When the AI forgets, open the Inspect Context view.
Why not just send the whole story?
Because it's crazy expensive!
And slow.
And also the AI wouldn't remember anyway.
The AI re-reads the entire context in every generation. Long contexts are slower and more expensive. That's why every AI tool sets a memory limit, and why larger memory needs to be a paid feature. But also, AI recall degrades the further back they need to process, and at some point every model hits a limit. For example, Lunaris 8B has an 8,000 token limit. It can't process more than that.
However, there's good news. If the beginning of the context is identical to the last generation, the AI can reuse the work it did before, and work a lot less for the text that differs. This is called prompt caching and it allows us to provide more context by using a growing window that keeps the beginning fixed and appends to the end.
How FicMachine's memory works now
On the premium models (DeepSeek, Gemma, Mimo and Hemmingway), FicMachine Premium uses a dynamic window instead of a sliding one:
- The window starts at 6,000 tokens and grows as you write, up to 12,000 (about 9,000 words).
- The start stays fixed, so the AI can reuse its work after a turn.
- When it reaches 12,000, it trims back to 6,000 and starts growing again.
Important: For the window to keep growing, the beginning must remain identical. Most of the time you will be editing the last paragraphs and generating continuations with the AI, so the window will keep growing. However, doing anything else almost always breaks prompt caching. Here's what resets the window back to 6,000:
- Editing the AI instructions
- When a new card gets triggered
- Editing an active card (name or description)
- Switching models
The free plan keeps a fixed 2,000 tokens (no prompt caching), but you get free unlimited generations on three models. Cards and Instructions work the same way, and 2,000 tokens is good enough if your story has a small number of characters and background lore.
However! If your ever-growing world-building ambitions and multi-generational plot development needs require more, well... then let me introduce you to the Premium plan. It's $7.99/month and gives the AI up to 12,000 tokens (6x the free plan) and better models and unlimited generations.
Either way, you will benefit from knowing how to manage memory (even on longer contexts). So I hope the above was useful for you. The AI generates a paragraph or two at a time. What you choose to keep matters more than how much context you can fit.
With all that said, happy writing!