Novel Mage Feature

Codex (Lorebook)

Attach world-building that automatically grounds generations and chats.

The Codex is Novel Mage's world-building database a structured repository for every character, location, faction, artifact, magic system, historical event, and rule in your fictional world. Every entry you create in the Codex is automatically available as context for AI generation and chat, without requiring you to manually copy and paste it into each prompt.

Most writers already keep notes somewhere a Word document, a Notion page, a physical notebook. The Codex isn't just a cleaner place to store those notes. The distinction is that it's wired directly into Novel Mage's AI system. When you write a scene involving Elena Voss, the Codex entry for Elena Voss her physical description, backstory, motivations, relationships, speech patterns, and story role is automatically injected into the AI's context. The AI generating her dialogue knows who she is. It doesn't default to a generic character voice because you forgot to paste her profile into the prompt.

Codex entries have a flexible structure. You can use Novel Mage's built-in templates for character, location, faction, and item types, or create freeform entries with custom fields. Entries can link to each other Elena Voss's entry can reference the Ironhold faction she belongs to, which links to the city of Vael, which links to the political history of the Sundering. These relationships help the AI understand your world as a system, not as isolated facts.

Key benefits

  • Automatic AI context injection no manual copying of character or world notes
  • Covers characters, locations, factions, items, magic systems, and custom types
  • Linked entries the AI understands relationships between world elements
  • Built-in templates plus freeform custom fields
  • One authoritative source for all world-building, accessible everywhere in Novel Mage

How it works

Create entries in the Codex panel from any view in Novel Mage. Use a built-in template or write freeform. Add as much or as little detail as you have even a sparse entry is better than no entry for AI grounding. Link entries to each other using the relationship fields. When you write in a chapter that mentions a codex entity, Novel Mage detects the reference and loads the relevant entries into the AI context automatically. You can also manually pin specific codex entries to a chapter for precise control.

When to use it

1.

Fantasy and science fiction writers managing large, complex world-building across a series

2.

Writers who've had AI generate inconsistent character descriptions or forget established facts

3.

Tracking character development state across a long manuscript who knows what, who has what

4.

Building a shared world bible for a series that multiple AI-assisted sessions must stay consistent with

Related features

Try Codex (Lorebook) in Novel Mage

Novel Mage is $99 once lifetime access. Every feature including codex (lorebook) is included. Fully offline, local AI support, your data stays on your machine.

Free to download. No credit card required.