Skip to content

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.

Write showing scene 1.1 of Salt and Signal, with the gutter to the right of the text, the minimap at the far right and the book bar above.Write showing scene 1.1 of Salt and Signal, with the gutter to the right of the text, the minimap at the far right and the book bar above.

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.

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.

The list of entries open after typing @Tob in scene 1.1, with Tobias Venn at the top.The list of entries open after typing @Tob in scene 1.1, with Tobias Venn at the top.
Scene 1.1 after choosing Tobias Venn, with a mention in the text.Scene 1.1 after choosing Tobias Venn, with a mention in the text.

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.

The slash menu open in scene 1.1 with its items grouped under AI, Codex and Insert.The slash menu open in scene 1.1 with its items grouped under AI, Codex and Insert.

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.

Scene 1.1 shown as Markdown source after switching from Rich text.Scene 1.1 shown as Markdown source after switching from Rich text.

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.

The Label list open on scene 1.2, with check marks beside the selected labels.The Label list open on scene 1.2, with check marks beside the selected labels.
Scene 1.2 with Ready to write in place of Needs research.Scene 1.2 with Ready to write in place of Needs research.
The Plan with scene 1.2 showing Draft pending and the new label Ready to write, which the card cuts off after Ready. Needs research is gone.The Plan with scene 1.2 showing Draft pending and the new label Ready to write, which the card cuts off after Ready. Needs research is gone.

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.

Write scoped to chapter 1, with only scenes 1.1 and 1.2 shown.Write scoped to chapter 1, with only scenes 1.1 and 1.2 shown.

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.

The Format list open with Narrow and Indented chosen. The list runs past the right edge of the window, so Wide does not show.The Format list open with Narrow and Indented chosen. The list runs past the right edge of the window, so Wide does not show.

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.

Write in Focus with chapter 1 scoped, narrow indented text and the book bar faded.Write in Focus with chapter 1 scoped, narrow indented text and the book bar faded.
Write after Esc, with the sidebar and minimap back and the scope set to Full manuscript.Write after Esc, with the sidebar and minimap back and the scope set to Full manuscript.

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.

Tobias in Find at 1 of 3, with the word marked in scene 1.2 and in its beat.Tobias in Find at 1 of 3, with the word marked in scene 1.2 and in its beat.

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.

The Replace panel with Tobias in Find, Toby in Replace with, and the matches listed.The Replace panel with Tobias in Find, Toby in Replace with, and the matches listed.

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.

The Replace panel with midnight in Find, and the match inside the cited quote in scene 1.1 marked Locked: inside a cited passage.The Replace panel with midnight in Find, and the match inside the cited quote in scene 1.1 marked Locked: inside a cited passage.

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.

The Replace panel with Keeper Edith in Find and the match marked Locked: spans a link.The Replace panel with Keeper Edith in Find and the match marked Locked: spans a link.
The toast Replaced 2 in 2 scenes after Replace all, with Undo.The toast Replaced 2 in 2 scenes after Replace all, with Undo.
Scene 1.2 reads Toby Venn after Replace on one match, with the toast Replaced 1 in 1 scene and the chapter 4 match still listed.Scene 1.2 reads Toby Venn after Replace on one match, with the toast Replaced 1 in 1 scene and the chapter 4 match still listed.
The Replace panel with turned slowly in Find and the note 1 in a pending draft. Replace all skips them.The Replace panel with turned slowly in Find and the note 1 in a pending draft. Replace all skips them.
The Replace panel after Undo, with the matches back.The Replace panel after Undo, with the matches back.

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.

Version history for scene 1.2 listing Edited with the Current tag, AI draft applied and an earlier Edited version.Version history for scene 1.2 listing Edited with the Current tag, AI draft applied and an earlier Edited version.

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.

A version selected in Version history, with the words only in the current text marked and the word counter.A version selected in Version history, with the words only in the current text marked and the word counter.
The restore prompt: Replaces the current text with the version from the selected time, with Restore and Cancel.The restore prompt: Replaces the current text with the version from the selected time, with Restore and Cancel.
Version history after a restore, with a new Restored row and the toast offering Undo.Version history after a restore, with a new Restored row and the toast offering Undo.
Version history after Undo, with a second Restored row holding the text from before the restore.Version history after Undo, with a second Restored row holding the text from before the restore.

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.

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.

The book bar reading Unsaved with a Retry button after the server refused a save.The book bar reading Unsaved with a Retry button after the server refused a save.
The book bar reading Saved after Retry.The book bar reading Saved after Retry.

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.

The book bar reading Offline · 1 change waiting while the typed text stays in the scene.The book bar reading Offline · 1 change waiting while the typed text stays in the scene.
The book bar reading Saved after the connection returned.The book bar reading Saved after the connection returned.

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.

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.

The book bar reading Updated elsewhere with a Reload button.The book bar reading Updated elsewhere with a Reload button.
The scene after Reload, showing the text saved in the other tab.The scene after Reload, showing the text saved in the other tab.

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.

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.