Skip to content

Knowledge base

The Knowledge base lists the people, places and ideas in a book. Each entry has a name, aliases, a summary, longer notes and a timeline of facts that change as the book goes on. Codex uses entries to underline names in your text, to link scenes, and to send the entry’s name and summary with an AI draft.

Address: the Knowledge base has no page of its own. Its sidebar is on the left of the Plan (/books/<id>/plan) and Write (/books/<id>/write). Select an entry in the sidebar and its window opens over the screen, and the address gains #entry=<entry id>. Open that address to see the same entry. The address also gains #kb=<entry id> while an entry is highlighted. Selecting the open entry again closes its window. The Layout screen starts with the sidebar hidden. Use the sidebar button in the book bar to show or hide it.

The entry window for Edith Marrow open over the Plan of Salt and Signal, with the sidebar on the left listing People, Places and Ideas.The entry window for Edith Marrow open over the Plan of Salt and Signal, with the sidebar on the left listing People, Places and Ideas.

The sidebar groups entries by category and shows, beside each name, how many scenes use the entry. The window has three tabs: Entry, Used in and Timeline. The panel on the right has Details, Always in context, Source, Related and the dates.

Type in Search Knowledge base to narrow the list. The search matches names and aliases, so toby finds Tobias Venn through his alias Toby Venn. When nothing matches, the sidebar says No entries match.

The sidebar after searching for toby, showing only Tobias Venn under People.The sidebar after searching for toby, showing only Tobias Venn under People.

The funnel beside the search hides categories. Clear a category’s checkbox to leave it out of the list, and select Show all to bring every category back. Reload the page and the filter resets.

The category filter open, with a checkbox for People, Places and Ideas and the Show all button.The category filter open, with a checkbox for People, Places and Ideas and the Show all button.

In a book that belongs to a series, entries shared by the series appear under From <series name>, and the book’s own entries appear under This book. See Series.

  1. Select New Entry at the top of the sidebar. To add the entry to a particular category, select the plus on that category’s heading instead.
  2. Type the name and press Enter.
  3. Fill in the summary, the notes and the details.

New Entry starts in the first category the book lists.

The New entry in People window with the name Nell Harker typed and nothing saved yet.The New entry in People window with the name Nell Harker typed and nothing saved yet.

Codex saves nothing until the entry has a name. If you close the window with the name empty, Codex makes no entry.

The new entry Nell Harker with its summary filled in, listed under People in the sidebar.The new entry Nell Harker with its summary filled in, listed under People in the sidebar.

If another entry in the book, or in its series, already has the name as its name or an alias, Codex does not create the entry. The window says "Harrowmouth" is already a name or alias of Harrowmouth. and shows a Create anyway button. Select Create anyway to make a second entry with the same name, or change the name.

The new entry window with the name Harrowmouth, the message that it is already a name or alias of Harrowmouth, and the Create anyway button.The new entry window with the name Harrowmouth, the message that it is already a name or alias of Harrowmouth, and the Create anyway button.

The check ignores capital letters, so harrowmouth is also taken.

The Entry tab has a Summary of one or two lines and the Content below it. The summary appears on cards and goes to the AI as short context. The content is free text with a small formatting bar for a heading, a quote, a list and an @ mention of another entry. Under the content you see a word count and when the entry was last edited.

Codex saves the text 3 seconds after you stop typing, when you leave a field and when you close the window. Aliases, the category and Always in context save at once.

The Details part of the panel lists the fields the entry’s category has. Select Field to add one of your own, with a label and a value.

Under the name, the line Also matches lists the aliases. Select Alias, type another name and press Enter. Press Escape to drop what you typed. To remove an alias, select the cross beside it.

Write underlines every alias, and the name, wherever it appears in your scenes. To see it, type Mrs Marrow in a scene.

Scene 1.1 in Write with the words Mrs Marrow underlined with dots as an alias of Edith Marrow.Scene 1.1 in Write with the words Mrs Marrow underlined with dots as an alias of Edith Marrow.
The entry Edith Marrow with a third alias, Edie, added under the name.The entry Edith Marrow with a third alias, Edie, added under the name.

If a name or an alias belongs to another entry, Codex refuses the alias and says which entry has it. For example, adding The Mouth to Edith Marrow shows "The Mouth" is already a name or alias of Harrowmouth. Select Add anyway to save it on both entries, or change the alias.

The alias The Mouth typed on Edith Marrow, with the message that it is already a name or alias of Harrowmouth and the Add anyway button.The alias The Mouth typed on Edith Marrow, with the message that it is already a name or alias of Harrowmouth and the Add anyway button.

Codex saves a short or common alias but warns you. An alias of three letters or fewer, or one that matches 25 or more words in the book, gets a message such as Matches 106 other words in the book. Underlines every "the".

The alias the typed on Edith Marrow, with the warning that it matches other words in the book and underlines every the.The alias the typed on Edith Marrow, with the warning that it matches other words in the book and underlines every the.

To rename an entry, change its name at the top of the window. As you type, a box appears with Keep "<old name>" as an alias. It is ticked, so text that used the old name still counts as this entry. To drop the old name, clear the box first, then press Enter or click away. Once you press Enter or click away, Codex saves the rename and the box goes.

The name Fresnel lens changed to Fresnel optic, with the box Keep Fresnel lens as an alias ticked.The name Fresnel lens changed to Fresnel optic, with the box Keep Fresnel lens as an alias ticked.
The entry Fresnel optic after the rename was saved with the alias box cleared, so Fresnel lens is not an alias.The entry Fresnel optic after the rename was saved with the alias box cleared, so Fresnel lens is not an alias.

The reference id on the right of the tabs, such as e:fresnel-lens, stays the same when you rename the entry. Select the copy button beside it to copy the id.

If you clear the name, the entry keeps its old name and the window says An entry needs a name. If another entry has the new name, the window shows the reason and a Rename anyway button.

The Used in tab lists every scene that uses the entry, grouped by chapter in book order. The count at the top gives the number of scenes and how many fall under each kind: Mention, Summary, Linked, Beat, Beat context, Timeline, Printed and Name in text.

The Used in tab for Edith Marrow, listing the scenes that use her, with the kind of use beside each scene.The Used in tab for Edith Marrow, listing the scenes that use her, with the kind of use beside each scene.

Each row has an Open in Write link. Two buttons change how a scene uses the entry.

  • Make mention turns the first plain use of the name in the scene into a mention. It shows for scenes whose kind is Name in text.
  • Unlink removes a link between the scene and the entry. It shows for scenes whose kind is Linked. A toast offers Undo.

The scenes you linked on the Plan by dragging an entry onto a scene card show as Linked here.

The Used in tab for Edith Marrow after Make mention turned a plain use of her name into a mention.The Used in tab for Edith Marrow after Make mention turned a plain use of her name into a mention.
The Used in tab for Harrowmouth after Unlink, with the toast that offers Undo.The Used in tab for Harrowmouth after Unlink, with the toast that offers Undo.

If no scene uses the entry, the tab says No scene uses this entry yet.

To link an entry to a scene, open the Plan and drag the entry from the sidebar onto the scene’s card. The card shows the entry as a chip, and the scene appears in the entry’s Used in tab as Linked. To link many scenes, repeat the drag.

The Plan with Harrowmouth dragged onto the card for scene 1.2, which now shows a Harrowmouth chip.The Plan with Harrowmouth dragged onto the card for scene 1.2, which now shows a Harrowmouth chip.

In Write, drag an entry from the sidebar into the text. A mention chip appears where you drop it.

Scene 1.1 in Write with a mention chip for Edith Marrow where it was dropped.Scene 1.1 in Write with a mention chip for Edith Marrow where it was dropped.

Select an entry in the sidebar of the Plan and close the window that opens. Codex highlights every scene that uses the entry and dims the others.

The Plan with Edith Marrow selected in the sidebar, her scenes outlined and the other scenes dimmed.The Plan with Edith Marrow selected in the sidebar, her scenes outlined and the other scenes dimmed.

The highlight stays when you open Write, or select Highlight in Write on the Used in tab. A chip in the toolbar shows the entry’s name and a position such as 1 of 1. The arrows on the chip move to the previous and next use. The minimap marks the scenes that use the entry.

Write with a chip for Edith Marrow in the toolbar, showing the position and the previous and next arrows.Write with a chip for Edith Marrow in the toolbar, showing the position and the previous and next arrows.

Ctrl+click or Cmd+click a mention or an underlined name in the text to open that entry’s window.

The entry window for Edith Marrow open over Write after a Ctrl+click on a mention.The entry window for Edith Marrow open over Write after a Ctrl+click on a mention.

To clear the highlight, select the cross on the chip.

Write after the highlight chip was cleared, with no chip in the toolbar.Write after the highlight chip was cleared, with no chip in the toolbar.

The Timeline tab has facts that are true from a point in the book onward. It starts with Start of book, and each note follows in book order under From scene <number>.

To add a note, select Add a note at…, choose the scene, type the note and select Add note. Codex puts the note at the start of that scene as a Codex addition, so you can also see and edit it in Write. To add one from Write, type /codex in the scene, choose Codex addition, pick the entry and type the note in the card.

Scene 1.1 in Write with a Codex addition card for Edith Marrow at the start of the text.Scene 1.1 in Write with a Codex addition card for Edith Marrow at the start of the text.

Select Edit on a note to change its text, and Save to keep the change. A toast offers Undo after an edit.

The Timeline tab for Edith Marrow with the add form open: the scene list and the note text From here Edith is head keeper and signs the logbook.The Timeline tab for Edith Marrow with the add form open: the scene list and the note text From here Edith is head keeper and signs the logbook.
The Timeline tab with an edited note under From scene 1.1 and an Undo toast.The Timeline tab with an edited note under From scene 1.1 and an Undo toast.
The Timeline tab after the note was added, listed under From scene 1.1.The Timeline tab after the note was added, listed under From scene 1.1.

A note must have text. Codex refuses an empty note with Write the note first. A note placed after the entry’s first use in the book shows This note comes after the entry's first use in scene <number>. This warning blocks nothing.

Related, in the panel, lists the entries linked to this one. Select Link entry to pick another entry. To unlink one, point at its chip and select the cross. A toast offers Undo. The link shows on both entries.

Edith Marrow with Tobias Venn shown as a chip under Related.Edith Marrow with Tobias Venn shown as a chip under Related.
Edith Marrow with no Related entries after unlinking Tobias Venn, with an Undo message.Edith Marrow with no Related entries after unlinking Tobias Venn, with an Undo message.
The Link entry picker open on Edith Marrow, listing the other entries in Salt and Signal.The Link entry picker open on Edith Marrow, listing the other entries in Salt and Signal.

Source shows the source from References that the entry points to, with its status. Select Open in References to see it. An entry with no source says No source linked.

Tick Always in context and Codex sends the entry’s name and summary with every AI draft in the book, even when the beat does not mention it. Codex sends entries you add to a beat with that draft whether or not this box is ticked.

Edith Marrow with Always in context ticked.Edith Marrow with Always in context ticked.

To add an entry to one beat only, select Context on the beat in Write and pick the entry.

The beat in scene 1.2 with Harrowmouth added as context.The beat in scene 1.2 with Harrowmouth added as context.

See Beats and AI drafts.

Select the category name at the top left of the window to open the list.

The category list open on Fresnel lens, with People, Places and Ideas and New category.The category list open on Fresnel lens, with People, Places and Ideas and New category.

Pick a category to move the entry there.

Fresnel lens after it moved to Places.Fresnel lens after it moved to Places.

Select New category to make one, give it a name and pick one of five colours, then select Create. Codex moves the entry into it.

The New category form with the name Tools and a colour chosen.The New category form with the name Tools and a colour chosen.

Codex refuses a name the Knowledge base already has, for example The Knowledge base already has a category named People.

To rename or recolour a category, or to delete it, point at its heading in the sidebar and select the three dots. Type a new name and select Rename, or pick a colour. Delete category works only on an empty category. It deletes at once with no confirmation, and a toast says Deleted category <name>. The toast has no Undo. The People category has 2 entries, so Delete category says Move or delete its 2 entries first. Categories from a series appear under From <series name> and have no menu here.

The New category form with the name People and the message that the Knowledge base already has that category.The New category form with the name People and the message that the Knowledge base already has that category.
The sidebar after People was renamed to Characters.The sidebar after People was renamed to Characters.
The sidebar after the empty Ideas category was deleted, with the toast Deleted category Ideas.The sidebar after the empty Ideas category was deleted, with the toast Deleted category Ideas.
The category menu with the message that the category has entries and cannot be deleted.The category menu with the message that the category has entries and cannot be deleted.
The category menu open on the People heading, with the name box, the Rename button, five colours and Delete category.The category menu open on the People heading, with the name box, the Rename button, five colours and Delete category.

If you have two entries for the same thing, open the one you want to remove, select the three dots and choose Merge into. Pick the entry to keep. The dialog says what moves, for example 0 scene links, 0 additions, 0 related. "Harrow Mouth" becomes an alias. Select Merge to confirm.

The Merge Harrow Mouth into dialog with Harrowmouth chosen and the line that says what moves.The Merge Harrow Mouth into dialog with Harrowmouth chosen and the line that says what moves.

Scenes and mentions that pointed to the merged entry now point to the one you kept, and the old name becomes an alias of it. The window closes and a toast says Merged <name> into <target>. Codex archives the merged entry. A merge has no Undo in the app. Codex adds the merged entry’s text to the entry you kept, under Merged from <name>.

The Plan after Harrow Mouth was merged into Harrowmouth, with the toast Merged Harrow Mouth into Harrowmouth.The Plan after Harrow Mouth was merged into Harrowmouth, with the toast Merged Harrow Mouth into Harrowmouth.

To delete an entry, open its three dots menu and choose Delete entry. The dialog says how many scenes use it. For an entry in use it reads It is used in 4 scenes. Mentions turn into plain text, links and beat context are removed. Codex deletes the timeline notes as well. Select Delete to confirm.

The Delete Edith Marrow dialog, saying the entry is used in four scenes and what happens to them.The Delete Edith Marrow dialog, saying the entry is used in four scenes and what happens to them.

A toast says Deleted <name> with an Undo button.

The Plan after Edith Marrow was deleted, with the toast Deleted Edith Marrow and an Undo button.The Plan after Edith Marrow was deleted, with the toast Deleted Edith Marrow and an Undo button.

Undo brings back the entry, its mentions, its links, its beat context and its timeline notes. If a scene or its text changed in the meantime, Codex refuses the Undo with Could not undo: a scene or text changed after the entry was deleted, so it stays deleted. and the entry stays deleted.

The Plan after Undo, with Edith Marrow back under People in the sidebar.The Plan after Undo, with Edith Marrow back under People in the sidebar.

In a book that belongs to a series, the three dots menu has Move to series. It makes the entry visible to every book in the series, and mentions and links keep working. If the series already has an entry with that name, the dialog offers Merge into the series entry or Cancel. A series entry shows a Series label beside its category. Only someone with write access to the series can change it.

The Move to series dialog for Fresnel lens.The Move to series dialog for Fresnel lens.
Fresnel lens after the move, with the Series label beside its category.Fresnel lens after the move, with the Series label beside its category.

With the View only or Comment only role, the sidebar and entry windows are read only. New Entry, the category menus and the three dots menu do not appear, and you cannot drag entries onto scenes. With the Edit role you can change everything on this page except series entries, which need write access to the series. See Sharing a book.

Keys What happens
Escape Closes the entry window.
Ctrl+click or Cmd+click on a mention or an underlined name in Write Opens that entry’s window.
Enter in the name box Saves the new name.
Enter in the alias box Adds the alias.
Escape in the alias box Drops what you typed.