Writing with an agent
An agent such as Claude Code can do most of the route in The flow at a glance for you. It works through the MCP tools, and everything it does shows up in the same screens you use. The stages below name the tools an agent can use on Salt and Signal and the decisions you make yourself.
You need a connected agent. To connect one, see Connect an agent. Every call runs as you, with your role on the book. See Agents in Codex.
Create a token with the scopes the work needs
Section titled “Create a token with the scopes the work needs”Mara creates one token for the whole route. It needs codex:write for outlines, prose, the Knowledge base and layout, and codex:references for sources and permission letters. Add codex:generate only if the agent should start AI drafts, because each one spends your model budget. Every token has codex:read.


See Tokens and scopes for the steps.
Stage by stage
Section titled “Stage by stage”The tool names are the ones the agent sees. The tool reference lists the arguments of each.
| Stage | What the agent can do | Tools |
|---|---|---|
| Series and book | List your books, start a book or a series, change a book’s settings, reorder a series. | list_books, create_book, create_series, update_series, update_book |
| Structure | Read the outline and add, rename, move or cut acts, chapters and scenes in one batch. | get_outline, edit_outline, resume_work |
| Research | Add entries, categories and links, find where an entry is used, and add or fix sources. | upsert_kb_entry, manage_kb_category, link_kb_entry, find_kb_usages, merge_kb_entries, add_source, update_source |
| Draft | Read the prose, plan beats, edit a passage, offer or generate a draft and apply or discard it, and take a write back. | read_manuscript, upsert_beat, edit_prose, draft_prose, submit_draft, resolve_draft, list_revisions, undo |
| Clear | Read what blocks print, cite a source, change a use, draft the permission letter and record that you sent it. | get_clearance, cite_source, update_source_use, draft_permission_letter, manage_permission, export_references |
| Lay out | Preview the pages, render a proof of one chapter and choose the template and trim. | preview_layout, update_book |
| List what blocks the export, queue it and read the job. | export_for_printer, get_job |
To pick up a book where you stopped, ask for resume_work. It returns the scene you last edited, every pending draft, the scenes that wait on you and the open copyright risks.
Drafts stay pending until you decide
Section titled “Drafts stay pending until you decide”An agent can start a draft with draft_prose, or hand in text it wrote with submit_draft. Either one lands in the same Apply, Retry and Discard panel you see in Write. The shot below shows that panel on the pending draft for scene 1.2.


draft_prose never applies the draft. The agent applies or discards it with resolve_draft. To apply, resolve_draft needs the scene’s current version, and a stale version fails with conflict, so a draft cannot overwrite text you changed in the meantime. An undo can reverse an apply or a discard. If you want to read every draft first, tell the agent to stop at the pending draft. See Drafting.
Decisions that stay with you
Section titled “Decisions that stay with you”An agent cannot make these decisions. Codex refuses the tool call, or has no tool for the step.
- Sign off a source.
record_clearance_decisionwithsign_offfails withblockedand writes nothing. The error carries the summary of uses and words and a link to References, where you select Mark as cleared. The Keeper’s Ledger below is ready for that step. - Accept fair use. It fails the same way, and Codex does not keep the reason the agent sends. In References, you type the reason in the fair use form, and the source keeps it.
- Record a granted permission.
manage_permissionwithrecord_grantneeds the signed letter as a file, so it returnsblockedwith the link to References. - Send the letter. Codex does not send mail. The agent drafts the letter, you send it, and the agent then records
mark_sent.


An agent can take your decision back. record_clearance_decision with reopen removes a sign-off, and not_a_quote dismisses an unflagged quote. An undo cannot restore either.
Sharing is also yours. There are no sharing tools. To move a book, an agent calls update_book or create_series. Both refuse with needs_confirmation and write nothing until the agent repeats the call with confirm set to true. An undo cannot reverse a move, because a book that leaves a series gets a copy of its Knowledge base entries.
Print readiness
Section titled “Print readiness”At the last stage the agent calls export_for_printer with mode set to preflight. The result lists what blocks the export, what only warns and what is a note, and it queues nothing. A copyright risk is a block. With a block open, mode queue fails with blocked and queues nothing, as the Export for printer dialog does.


The dialog and the tool use the same check. To clear the block, you or the agent follow the steps in Clearing quotes and citing. The agent can draft the letter and track the reply. You send the letter and record the grant. See Getting to print for the message.
The worker builds a queued export, and the agent cannot undo it. It needs a host that can print. See Requirements.
Prompts to start from
Section titled “Prompts to start from”Codex offers the prompts resume, draft-scene, print-readiness and triage-references. The print-readiness prompt walks through the copyright clearance one source at a time, then the layout preview and the preflight. See Example prompts.