-
Notifications
You must be signed in to change notification settings - Fork 0
The Codex
The Codex is your universe's encyclopedia — a structured collection of facts, rules, and world-building details that define how your story world works.
When you write down facts in the Codex, two things happen:
-
You stay consistent. It's easy to forget that you said a character's eyes are green in chapter 3 and then call them blue in chapter 20. The Codex is your single source of truth.
-
The AI stays consistent. DasBook's AI reads your Codex before helping you write. If your Codex says "Benny is a stag beetle," the AI won't accidentally call him a spider.
The Consistency Checker (the Alerts feature) also uses your Codex. It automatically scans your chapters and flags any text that contradicts a Codex rule.
Anything that's a fact about your world:
- Character details — "Sonny is a mockingbird from the Florida Panhandle. He speaks with a Southern accent."
- World rules — "Glass windows are called 'sorcery walls' by the animals."
- Geography — "The story is set in Boston, near the waterfront."
- Tone & style — "The narrative voice is warm and humorous, aimed at middle-grade readers."
- Terminology — "Humans are called 'the tall ones' by the birds."
The Codex is a tree — entries can have child entries. Use this to organize by topic:
Writing Guidelines
Tone & Voice
Sentence Structure
Audience Notes
Characters
Sonny
Benny
Tully
World Rules
Animal Society
Human Interactions
Click the green + at the top to add a root entry. Hover over any entry and click + to add a child under it.
These are different things:
- AI Rules (in the sidebar) — high-level instructions for the AI: "write in past tense," "this is a YA dark fantasy." These are sent to the AI on every interaction.
- Codex — specific facts about your world. The AI queries only the relevant parts when it needs them.
Think of AI Rules as the AI's general instructions, and the Codex as the AI's reference library.
You don't have to type codex entries by hand. Open the AI Chat (or click Dictate to use your voice) and just tell it:
"Add a codex entry: Sonny is a mockingbird from the Florida Panhandle. He flew to Boston for the Fourth of July fireworks and never left."
"Add a codex entry under Characters: Benny is a stag beetle. He has a thick dark shell, curved mandibles, and speaks very little."
"Create a codex category called World Rules, and add an entry that glass windows are called sorcery walls by the animals."
The AI creates the codex entries directly — organized under the right parent, with proper titles. You can build out your entire world bible by talking through it while your ideas are fresh.
- Be specific. "Benny is a stag beetle with a dark shell and curved mandibles" is better than "Benny is a bug."
- Update as you write. When you introduce a new fact in your story, add it to the Codex so the AI and consistency checker know about it.
- Use it for style too. "Dialogue uses em dashes for interruptions, not ellipses" helps the AI match your writing style.
Here's a trick: the AI is the one reading your Codex rules, so it's the best person to help you write them. You know what you mean — the AI can help you say it in a way that's clear and unambiguous to a machine.
Try this in the AI Chat:
"I want to add a codex rule that Sonny always sees the bright side of things, even when the situation is terrible. Can you help me phrase that clearly?"
The AI might suggest something like:
"Sonny's defining trait is compulsive optimism. He reframes every negative situation as positive, not out of denial but out of genuine inability to see the downside. This is not sarcasm — he truly believes what he's saying. Other characters find this infuriating, endearing, or both."
That's much more useful to the AI (and to you) than just writing "Sonny is optimistic."
Other things to ask the AI to help codex-ify:
- "I have a vague idea about how magic works in my world. Can you help me turn it into clear rules?"
- "Here's a paragraph describing my character. Can you break it into specific codex facts?"
- "I keep writing my villain inconsistently. What codex rules would help keep them consistent?"
The AI can't invent your world for you — but it can help you articulate what's already in your head in a way that keeps everything consistent.