Usage Guide
This guide explains the current LibriScribe CLI workflow and how model selection behaves across setup modes.
Running LibriScribe
Start the interactive setup flow with:
libriscribe start
Or jump directly into Expert mode with a config file:
libriscribe start --config examples/expert-config.yaml
Setup Modes
LibriScribe now offers three setup modes:
1. Simple Guided Setup
Simple mode is optimized for speed. It asks for the core project information and uses the selected provider's default model from .env automatically.
Best for:
- fast first drafts
- minimal decision-making
- users who want provider defaults to do the work
2. Advanced Guided Setup
Advanced mode gives you more control over book structure and generation choices while keeping the workflow guided.
In addition to the normal project questions, Advanced mode lets you choose whether to:
- use the selected provider's default model from
.env - or enter one custom model ID for the project
Best for:
- users who want one project-wide model override
- users who still prefer an interactive setup flow
3. Expert: Configuration File
Expert mode loads a JSON or YAML config file and supports the most control.
Expert mode can define:
- the provider with
project.llm_provider - a project-wide model with
project.model - per-agent model overrides with
project.agent_models - workflow automation preferences
- whether chapter writing pauses between chapters or runs across the whole book automatically
- whether chapter failures should stop the run or continue to the next chapter
- output and formatting preferences
Best for:
- repeatable runs
- automation
- power users
- different models for different agents
Model Selection Behavior
LibriScribe resolves models in this order:
project.agent_models[agent_name]in Expert modeproject.modelfor the project- provider default from
.env
That means you can start simple with .env, move to one custom project model in Advanced mode, and graduate to per-agent control in Expert mode without changing the overall workflow style.
When full-book automatic writing is enabled, LibriScribe still keeps one summary confirmation before it starts, including a warning that the run may consume many tokens / credits.
Typical Flow
A typical full run looks like this:
- initialize the project
- generate/refine the concept
- generate the outline
- optionally generate characters
- optionally generate worldbuilding
- write chapters
- review/edit chapters
- format the manuscript
Useful CLI Commands After Setup
Once a project is initialized, the CLI also exposes focused commands for later stages:
libriscribe outlinelibriscribe characterslibriscribe worldbuildinglibriscribe writelibriscribe editlibriscribe formatlibriscribe researchlibriscribe resume
These commands are useful if you want to continue working on a project after the initial guided setup.
Narrative Quality Layer CLI
The Narrative Quality Layer adds three commands for inspecting and maintaining narrative consistency and prose quality:
Narrative graph rebuild
Re-extracts narrative facts from all chapters and writes narrative_graph.json:
libriscribe narrative rebuild --project my_project
Narrative invariant check
Checks all scenes in a specific chapter against the current narrative graph for continuity violations:
libriscribe narrative check my_project --chapter 2
Output shows any hard violations (dead characters, injured limbs, destroyed locations) and soft violations (advisory notes).
Prose quality analysis
Scores a chapter's prose across 5 axes and prints a bar chart to the console. Saves quality_chapter_{N}.json:
libriscribe quality my_project --chapter 1
Automatic quality loop during writing
When a chapter is written via libriscribe write or guided setup, the quality loop runs automatically:
- Option A: Prior chapter quality report injected as style hints into scene prompts (zero extra LLM calls).
- Option B: Each generated scene is scored; scenes below 0.65 are rewritten once with targeted instructions.