Write
Write shows the whole manuscript as one continuous page, chapter after chapter. Use it to write scenes, mention Knowledge base entries, find and replace words, and go back to an earlier version of a scene. For beats and AI drafts, see Beats and AI drafts.
Address: /books/<id>/write. A link ending in #scene=1.2 or #chapter=1 scrolls to that scene or chapter.


Each scene has a gutter to the right of its text with its number, labels, summary, linked entries, a Label button and its word count. The minimap on the right has a tick for each scene and a mark for each chapter. Select it, or drag on it, to jump. An empty scene shows a hollow tick, and a scene with a draft waiting shows a highlighted tick. The toolbar has a chapter list with arrows, the scene you are reading, and Find in manuscript. The Scope list, Format and Focus are in the book bar.
Write and edit
Section titled “Write and edit”Select the text of a scene and type. Codex saves 3 seconds after you stop typing, and when you leave the scene. The book bar shows Unsaved, then Saving…, then Saved.
Type @ after a space to mention an entry. The list narrows as you type. Choose an entry with Up, Down and Enter, or select it.




Type / after a space to open the / menu. It lists Scene beat, Continue writing, Codex addition, Mention entry, Chapter reference, Source reference, Figure, Split scene here, Block quote, Table and Divider. The menu dims Source reference until you select a passage or the sentence before the caret has text.


A scene shows as Rich text. Press Ctrl+/ to see the Markdown instead, and press it again to go back. See Prose format. Codex underlines names and aliases from the Knowledge base. Ctrl+click an underlined name to open its entry. See Knowledge base. Every key is in Keyboard shortcuts.


Change a scene’s labels
Section titled “Change a scene’s labels”To label a scene, select Label in its gutter and tick or untick labels. Each change saves at once. The Plan shows the new labels and the scene’s word count.






Focus on part of the book
Section titled “Focus on part of the book”The Scope list narrows Write to a whole act, one chapter or one scene. The counts beside it show words, pages and reading time for that scope.


Format sets the text width (Narrow, Medium, Wide), paragraphs (Spaced, Indented), whether scene beats and summaries show, whether Codex underlines names, and the Preview pane. Codex remembers these settings per book in your browser. Preview in Layout opens Layout at the scene you are in.


Select Focus in the book bar to hide the sidebar, toolbar, minimap and gutters. The text, its beats and its AI drafts stay, and the book bar fades until you point at it. Codex keeps saving. Press Esc to leave Focus.




Find and replace
Section titled “Find and replace”Type in Find in manuscript to mark every match in the prose, beats and AI drafts of the scope. The count shows how many. Press Enter for the next match and Shift+Enter for the previous one. Press Esc to clear the search. Find does not search summaries, and Focus hides the toolbar that holds it.


To replace, type the text in Find, then select Replace and type the new text. Search in has Prose, Summaries and Beat instructions. Prose is on by default. Match case, Whole word and Include archived scenes are off. The panel counts matches across the scope, including chapters that are not on screen, and lists up to 50 of them. With only Prose on, the panel leaves out beats, so its count can be lower than the count in Find.


Select a match and then Replace to change that one, or Replace all to change every one that can change. Codex does not change a passage inside a cited quote or paraphrase, and it does not change a match that spans a link. Those matches say Locked: inside a cited passage or Locked: spans a link. A match in a pending AI draft stays as it is, and the panel says, for example, 1 in a pending draft. Replace all skips them. A mention keeps its link when you change its text, and the Knowledge base entry keeps its name. A toast reports what changed, for example Replaced 3 in 2 scenes, and offers Undo, which takes back the whole Replace all as one action. If Codex cannot save some text first, the toast says Some text could not be saved, so nothing was replaced.


For example, a search for Keeper Edith crosses from ordinary text into a linked name. Find can show 0 for text that crosses a link. Replace checks the saved text and marks that match Locked: spans a link.










Go back to an earlier version
Section titled “Go back to an earlier version”Every scene keeps its history. To see it, point at a scene’s heading in the gutter, open the three-dot menu and choose Version history. A panel opens on the right and lists versions, newest first, with the time, how the text came about and the word count. The labels are Edited, AI draft applied, Imported, Restored and Replaced by another session. An agent’s edit reads Edited by and the agent’s name, for example Edited by claude-code, or Edited by an agent if it gave no name. The current version has a Current tag.


Select a version to compare it with the text now. Codex marks words only in the current text and strikes through words only in the version. The counter reads, for example, −7 words. To restore a version, select Restore this version and then Restore. The prompt says Replaces the current text with the version from 14:02. The current text stays in history. A toast says Restored the version from 14:02. and offers Undo. A restore adds a new row, so nothing is lost. On a version that holds the text you have now, Restore this version is disabled. On the Current row the panel also says This is the current version. Esc, or the close button, closes the panel. Up and Down move between versions.








An archived scene’s history is read-only. With the View or Comment role you can read history but not restore. If the scene changed elsewhere since you loaded it, the panel says Updated elsewhere. Restoring now replaces that text; it stays in history.
When a save fails
Section titled “When a save fails”Your text stays in the editor while a save fails.
If the server refuses a save, the book bar says Unsaved · Retry. Select Retry to send the text again.




If your browser is offline, the book bar says Offline · 1 change waiting, and Codex also keeps the text in your browser. The edit saves by itself when the connection returns.




If the server has refused an edit or you are offline, Codex asks You have changes that are not saved. Leave anyway? before it follows a link to another screen. Closing the tab shows your browser’s own prompt. If you choose to stay, the editor stays as it was.
Updated elsewhere
Section titled “Updated elsewhere”If another tab or person saves a scene you have open, the book bar says Updated elsewhere with a Reload button. Select Reload to show the saved text.




If you keep typing instead, Codex saves your text over the other text and keeps the other text as a version called Replaced by another session, so you can restore it.
Books shared with you
Section titled “Books shared with you”With the View or Comment role you can read and search the text but not edit it. Replace and the Label button do not appear. See Sharing a book.