Skip to content

LLM Suite Writing Mode

speedyrulz edited this page Nov 22, 2026 · 7 revisions

Writing Mode

The Writing page (Ctrl+7, or Writing in the left rail) is for writing a novel with a local model. You write; the model drafts, continues and rewrites when you ask, and nothing it writes goes into your text until you accept it.

New in 0.21.0; consistency check, tracked state, character interviews and voice notes added in 0.22.0; recording, training-data export, adapter hints and the writing benchmark added in 0.23.0. Not yet tried with a real model.

Projects

A project is a plain folder of Markdown files, so you can also open it in Obsidian, VS Code or a sync client while LLM Suite is open.

In the folder What it is
manuscript/ One Markdown file per scene.
bible/ One Markdown file per story-bible entry.
style.md Your style notes; they go into every request.
outline.json, project.json The outline and the project settings. LLM Suite keeps these; edit them by hand only if you know the format.
state.json Tracked state: facts per character or thing, scene by scene (see Tracked state).
.rulz/ History snapshots, the unsaved-text journal, the trash, and checks.json (dismissed check findings).

Projects live in Documents\RulZ Novels unless you pick another folder in Settings → Writing. Use New project, a recent project, or Open folder… on the left of the page.

Outline

Chapters hold scenes. Each scene has a title, beats (what happens), a POV character, the characters present, a target word count, a status and a summary. Add, rename, reorder (drag, or the up and down buttons) and delete chapters and scenes in the tree. Files in manuscript/ that are not in the outline are listed with Add to outline.

  • Plan chapters asks the model for a chapter plan of the book; Plan scenes asks for the scenes of one chapter.
  • Summarize writes a scene's summary from its text, or a chapter's from its scene summaries. A summary is marked out of date when the scene's text changes.

Each of these comes back as a card with Accept, Edit and Reject; only Accept changes the outline. On a chapter or scene plan, the X on an item leaves out just that chapter or scene and Accept adds the rest; Reject all throws the whole plan away (since 0.26.1). Names the model gives that are not in your story bible are shown on the card and left out.

Story bible

Entries for characters, places, objects and anything else, each with a name, aliases, keyword triggers, a priority and an Always include switch. An entry is put into a request when:

  • it is set to Always include, or it is the scene's POV or one of the characters present;
  • its name, an alias or a trigger appears in the scene's beats, the text before the cursor, the selection or your note (whole words, any letter case);
  • it was used earlier in the same scene;
  • another included entry mentions it (at half priority).

The editor

Scene text is Markdown with soft wrap. Ctrl+F searches. The toolbar has:

Action What it does
Draft scene Writes the scene from its beats (when the scene is empty).
Continue Writes on from the cursor.
Rewrite Rewrites the selection: Tighter, More vivid, Different tone…, Show, don't tell or Custom… with your own note.
Expand / Condense Makes the selection longer or shorter.
Dialogue Writes dialogue for the current beat.
Check Reads the scene for problems (see Consistency check).
Update state Asks what changed in the scene (see Tracked state).

Add a note for the model, and ask for up to four alternatives. The result shows as a pending change, with Accept or Reject for each change, Accept all and Reject all, and a tab for each alternative. The text cannot be edited while a change is pending; if it changed some other way since the request was sent, Accept is refused and you can regenerate. Stop ends a request.

Side panel

Ctrl+B shows or hides it.

  • Scene: the scene's title, beats, POV, present, target words, status and summary.
  • Context: what the last request was made of: each part's tokens against its share of the context, the bible entries included and why, and what was shortened or left out to fit. A request that does not fit is not sent.
  • Checks: findings of the last check for this scene.
  • State: the tracked state at this scene.
  • Interview: chat with a character (see Character interview).
  • Project: title, a point-of-view and tense line, the model (the active chat model or a loaded one), sampling (including Repetition and variety), adapters, the token budget and style.md.

Consistency check

Check in the scene toolbar, or Check chapter in a chapter's menu (one scene after another, with progress and Stop), asks the model to read the scene against the story bible, the story so far and the tracked state, and list problems: continuity, character, timeline, point of view and tense. The whole scene must fit in the context; if it does not, the check is not sent.

Each finding quotes the scene and is underlined there, with a dot in the margin. In the Checks tab:

  • Jump selects the quoted text.
  • Fix asks for a Rewrite of that text with the problem as the note; it comes back as a pending change you accept or reject.
  • Dismiss hides the finding for this scene; it stays dismissed after later checks. Bring back shows dismissed findings again.

A finding whose quote is no longer in the text is listed without a mark. Findings are kept until the project is closed.

Tracked state

state.json holds facts about characters and things: where they are, what they know, what they carry, their condition, their relationships, or anything else. Each fact is true from one scene until another, in reading order, so the outline decides what is true where.

  • Update state asks the model what changed in the current scene. The changes come back as a card above the side panel; accept or reject each one, then Apply. Nothing is written before that, and the card is refused if the scene text changed since.
  • The State tab shows the state before or after the current scene, or All facts. Add, edit, end (from this scene) or remove facts.
  • Facts whose scene or entry was deleted, or that end before they start after a scene move, are listed for repair. Lines of state.json that cannot be read are kept as they are and listed, with Remove.
  • If state.json itself cannot be read, the state is read-only until the file is fixed (or, when it is missing or empty, Start empty state).

The state before the scene goes into every request: for always-included characters in its own part after the story so far, for matched entries inside their entry. It takes at most 8% of the context; when it does not fit, whole characters are left out, the POV character last.

Character interview

The Interview tab is a chat with a character, in their voice, who knows only what they know by the current scene: their bible entry, their tracked state, and summaries of earlier scenes where they were the POV or present. Each character has a separate conversation per scene; Clear starts it again. Conversations are not saved.

Add to voice notes appends an answer (or the selected part of it) to a ## Voice section in the character's entry, through the entry's normal save. For Dialogue, or a selection that names a character, that character's voice notes come first in the request.

How a request is put together

A novel does not fit in a model's context, so each request is assembled, in this order: system text with your style notes, always-included entries, the story so far (summaries of earlier chapters and scenes), the tracked state, this scene, the other entries that matched, the latest text, and the task. The parts at the start change least, so llama-server can reuse its prompt cache between requests. The latest text is taken in steps, so it does not shift with every new paragraph.

Your text is kept safe

  • Saves are atomic: a crash or a full disk never leaves half a file.
  • Unsaved text is journalled a few hundred milliseconds after each edit. After a crash, the page offers Restore or Discard.
  • If another program changed a file you are editing, a banner offers Reload from disk or Keep mine; keeping yours first stores the other version in history.
  • History lists snapshots of each file, with a preview and Restore.
  • Deleted scenes, chapters and entries go to Trash in the project, where Restore puts them back. Empty trash moves them to the Windows Recycle Bin.
  • If project.json or outline.json cannot be read, the project opens read-only with a message and Show in folder, and nothing is written until the file is fixed.
  • Closing the window or quitting first saves or journals the open text.

Writing from your phone

Since 0.26.0 you can write from an Android phone with RulZ Writer for Android: turn on Settings → Phone access → Let my phone connect and scan the QR code. The phone opens projects in the Writing folder and edits them with the same save rules; its AI actions run here on the computer and are not recorded.

Recording and training data

Recording is on by default and can be turned off in the Project panel. Every AI action is written to .rulz\records\<day>.jsonl in the project: the request, the alternatives you looked at, what you did with the result (accepted, mixed, rejected, abandoned, or edited cards) and, once you stop editing for a few seconds or leave the scene, the final text. Recording never makes your writing wait, and a project opened read-only is never written. The panel shows how much has been recorded; Delete records… moves the files to the Recycle Bin.

Export training data… writes a new folder outside the project with:

  • train.jsonl: prompt and final text pairs for supervised fine-tuning (SFT).
  • pairs.jsonl: preference pairs for DPO, the alternative you accepted over the ones you viewed, and optionally your edited text over the model's.
  • manifest.json: what was exported and what was left out.

Cut-off, rejected, abandoned and very short outputs are left out, and a damaged line is counted and skipped rather than stopping the export.

Adapters

When a project uses a LoRA adapter, the Project panel shows the base model it was trained on and warns if the project's model is a different one. The PEFT converter on My Models says where a converted adapter can be used.

Writing benchmark

Benchmark on the Writing start page compares 2 to 6 candidates (a model, its adapters and sampling settings). Each writes the same prompts with the same seeds; you then vote on pairs without seeing which candidate wrote which (A, B, Tie or Skip, keys 1, 2, 3 and S), and an Elo scoreboard ranks them once the run is over (Show scores shows them earlier). Adjust settings on a candidate (new in 0.24.0) changes its sampling (temperature, min P, top P and K, repeat penalty, DRY, XTC, avoid words; the Sampling list then shows Custom) and its load settings (the same form as loading a model, with a memory estimate). Both start from what you picked and apply to that run only: presets and the model's saved settings are not changed, and Use the model's saved settings undoes load changes. Every candidate is loaded with exactly its own settings, its custom ones or else the model's saved ones. Settings for all candidates (new in 0.25.0) sets the same sampling and load settings for every candidate in the run; a setting a candidate changed in its own Adjust settings still wins for that candidate, and the candidate shows which ones it overrides. Every output's generation speed and prompt speed are saved, and the scoreboard shows each candidate's average Tokens/s and Prompt t/s, weighted by tokens (prompt speed counts only tokens the server actually processed, not ones reused from its cache). Speeds never appear while you vote. Use the bundled prompts or your own. Each run is one file you can stop and resume; a damaged file is listed but never rewritten. While a benchmark runs, chat, batch runs, the hardware benchmark and loading or unloading models wait for it.

RulZ AI Tools Suite

The apps

RulZ AI Trainer

README (full reference) Releases

RulZ AI Trainer Optimizer

Using the app

Help

README (full reference)

Rulz Training Captioner

Getting started

Using the app

Models and GPUs

Reference

README (full reference)

RulZ LLM Suite

Using the app

Reference

Contributing

README (full reference)

RulZ Coding Agent

Using the app

Reference

Contributing

README (full reference)

RulZ Image Organizer

Using RulZ

More

README (full reference)

RulZ Image Tournament

Using the app

Developers

README (full reference)

RulZ Image Crawler

Getting started

Using the app

Help

README (full reference)

RulZ Image Preparer

Getting started

Using the app

Reference

README (full reference)

RulZ Image Grid

Using the app

Help

README (full reference)

RulZ Huggingface Manager

Using the app

Help

README (full reference)

RulZ ComfyUI Launcher

Using the app

Help

README (full reference)

RulZ Model Merger

README (full reference)

RulZ Simple Video Clip Extractor

Getting started

User guide

Help

README (full reference)

Clone this wiki locally