A bigger context window
You can paste more, but a long campaign outgrows any window, and more text means more paragraphs that disagree. The model still has to pick between them.
The canon-drift problem
Every "Claude invented a pantheon" and every "ChatGPT forgets my NPCs" has one cause: the AI is searching your campaign as text, not querying it as records. Grimoire for Gamemasters keeps your campaign as records, and tells the AI client you connect what to read first.
Free tier, no credit card. Bring your own AI client.
The canon-drift problem
Canon drift is when an AI assistant confidently states things that aren't true in your campaign: a god you never created, an NPC relationship that doesn't exist, a backstory invented whole. AI forgets your campaign because it's searching text, not querying structured state.
This is not a question of how smart the model is. The newest model does the same when its window into your world is text, and the failure takes three predictable shapes.
A model sees what fits in its context window and nothing more. Every session adds more lore than fits, so sooner or later you choose what to paste, and the model works from part of your canon.
Given search over your wiki, the model gets excerpts ranked by how well their words match. It cannot tell a canonical page from a stub, or a current fact from one a later session replaced.
When nothing it finds answers the question, the model invents an answer, in the same confident voice it uses when it knows. From your side of the chat, the two read the same.
What doesn't fix it
You can paste more, but a long campaign outgrows any window, and more text means more paragraphs that disagree. The model still has to pick between them.
It reasons better over what it is given, and it is given the same text. A sharper reader of the wrong page still reads the wrong page.
Tags, links and headings help you find things. A search returns excerpts, and the labels that mark a page as canon seldom make it into them.
Pinned notes reach every chat, and the model still reads them as text. A pin decides which pages it gets, not how it reads them.
Its other jobs, from portraits to recaps, can be useful. If it answers canon questions by reading pages of text, the same three causes hold.
These are all reasonable things to try, and each leaves the cause where it was.
Two different categories
Recap and transcription tools keep what was said at the table: who said what, and how the fight ended. That helps with continuity. But a transcript keeps every retcon and every line the table took back, and more of what was said never tells an AI what is true now.
A campaign database keeps what is true now. When an NPC dies, you, or your AI client, file the recap and update the NPC's record. Search a wiki instead, and an AI can fetch two pages that disagree: an older plan where the NPC is alive, and a newer recap where they are dead, with nothing to say which is current. Grimoire keeps both. The plan stays in your session prep, and your wiki keeps the story for continuity, but the NPC's record says what is true now: the records are the canon, and the current state of the game is built from them.
Two of the app's dashboard cards for Calendra, the sample campaign. The established facts of this world: each key event a recap marked canon, with its session. Under it, the threads still hanging: each open thread, with how long ago it was opened and the session that last touched it.
What does fix it
The retrieval problem goes away when the model can ask structured questions of typed data instead of fuzzy-searching a text blob.
| Text wiki | Structured state | |
|---|---|---|
| Data shape | Pages with prose | Typed entities with typed fields and explicit relationships |
| Retrieval | Search excerpts ranked by relevance | Direct query: give me the canonical answer |
| Canon | Implicit. Pages argue with each other via prose | Read first. The client is told that the campaign's own canon takes precedence over general knowledge |
| Hallucination | Likely when a search returns nothing that fits | Bounded. The model can ask "do you have this?" and get a clean yes/no |
Ask who Wren Ashgrove answers to in Calendra, the sample campaign, and the model reads her Superior field and gets one name back: Keeper Ansel Mott. Ask about a priestess the campaign never made, and no record comes back to build on.
This is the architectural fix. It's not magic, and it's not a smarter model. It's the retrieval problem any database-backed application solves.
Four rows of Calendra's NPC table, with the fields Name, Faction and Superior: Wren Ashgrove, The Almanac, Superior Keeper Ansel Mott; Keeper Ansel Mott, The Almanac; Tamsin Reed, The Almanac, Superior Wren Ashgrove; Rowan Hale, The Almanac, Superior Keeper Ansel Mott. On a phone the Faction field is not drawn.
How Grimoire implements this
When an AI client connects, Grimoire's MCP server tells it what to read first: the Campaign Bible and World Foundations, then where the story stands. It also tells the client that the campaign's own canon takes precedence over general knowledge of any game system or setting.
A World Foundation can carry an AI Guidance line, your directive for how the AI should use that concept. A GM's client reads it with the foundation, and a player's never does.
Calendra's World Foundations graph, its five foundations and the ties between them, and the panel a GM opens on The Border Stones, one of them: its section, Fundamental Laws, marked GM Secret; its description, "Standing stones fix the lines between the seasons. Only the Almanac may move them."; and its AI Guidance, "Never say who is moving the stones. That mystery is the party's to solve.". On a wide screen two gold notes arrive in turn: "Not for players" on the GM Secret mark, then "Sent to the GM's AI" on the AI Guidance heading.
Everything else is a typed record in one of fourteen categories, and every tie between them is a field.
Grimoire MCP has 67 tools: a client reads the records one layer at a time, and a GM's client can write them back.
Calendra's Political Web as its GM sees it, with the AI Context filter on: the records in play, Wren Ashgrove, Keeper Ansel Mott, The Almanac and The Thaw, and the ties between them. In play means a recent session touched a record, or the GM marked it by hand.
Every record is Common Knowledge, Player Knowledge or GM Secret, and a GM's client reads all three, labelled. A player's AI access is off until you turn it on. Then it is read only and sees what that player's portal shows, with any Campaign Bible or World Foundations you share. GM Secrets are enforced server-side.
It works with apps that connect to a remote MCP server with sign-in. We have tested Claude (web, desktop, mobile), Claude Code, ChatGPT (web) and Cursor; ChatGPT needs Developer Mode, on Plus or Pro.
Two AI clients ask Grimoire MCP the same question, "Who is Wren Ashgrove tied to?", and each calls get_knowledge_graph for the political graph. The GM's answer lists Wren Ashgrove's ties, her GM Secret tie to The Thaw marked with a padlock. Maya's, a player's, lists the ties her portal's web draws, with no GM Secret tie: Calendra shares its Political Web with players.
By the numbers
Loading a working understanding of a campaign (its world rules, where the story stands, its records and their key ties) takes a measurably different number of tokens depending on how the campaign is stored.
The figures below come from a real Notion-plus-MCP setup, assembling that same working state.
Roughly a 7x token ratio for equivalent coverage.
| Wiki + AI | Grimoire + AI | |
|---|---|---|
| Tokens to load equivalent working state | ~50,000 across 30+ fetches | ~6,800 across 5 calls |
| AI guidance | Written into pages, read as prose | An AI Guidance line on a World Foundation, sent to a GM's client |
| Typed relationships | Stored as prose links | First-class typed edges |
| Loading | Whole pages, as a search returns them | One layer at a time, as deep as the question needs |
A short list
Canon drift hits hardest when:
A published adventure may be in a model's training, and a one-shot fits in a paste. The fix matters most for long homebrew campaigns, too big to keep in your head and too specific for a model to know.
Questions, answered
Because most setups hand it your campaign as text: notes pasted into a chat, or excerpts a search pulls from a wiki. Excerpts drop the labels that say which page is current or whether an answer exists, so the model picks between paragraphs, and when nothing fits, it invents one in the same confident voice. The cause is what it reads, not how smart it is.
No. A bigger window lets you paste more, but a long campaign still outgrows it, and more text means more paragraphs that disagree. The model still has to choose between them, so the cause stays.
Let the model ask typed questions of structured records instead of searching text: an NPC's faction is a field that names a record, and a question about something that does not exist gets no near match to build on. In Grimoire the server also tells the AI client to read the Campaign Bible and World Foundations first, and that the campaign's own canon takes precedence over general knowledge of any game system or setting.
No. Grimoire works fully without AI: the same typed records answer your own questions, and the Political Web, the Timeline and the Geography are drawn from them. Each player joins free from your invite link into a portal of their own, and an AI client you connect later reads the same records.
No. A smarter model still answers from what it was given, and handed text, it still picks between paragraphs. The fix is to change what it reads, not which model reads it.
It helps when the graph is drawn from the records the campaign already keeps. A second graph synced by hand beside a wiki drifts from it, and the model then reasons over the stale copy. In Grimoire the Political Web, the Timeline and the Geography are drawn from your records, so there is one source to keep current.
No, they keep different things. A recap tool keeps what was said at the table; a campaign database keeps what is true now, in records that change when the story does. In Grimoire a filed recap moves the campaign's in-world date and adds the facts it marks as canon.
Grimoire is one implementation of that fix. Free to start, bring your own AI client.