Write novels like a professional author β with an entire editorial team at your command.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β "The difference between an amateur and a professional β
β writer is a systematic process." β
β β
β β Novel OS Philosophy β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Novel OS is not just a writing tool β it's a complete editorial infrastructure for producing professional-quality novels using multiple specialized AI agents working in concert.
Traditional AI writing generates one response and forgets everything. Novel OS is different. It builds a persistent, intelligent writing environment where:
- π§ Everything is remembered β characters, timelines, world rules, plot threads
- π€ Agents collaborate β each specialist hands off to the next with full context
- π‘οΈ Quality is enforced β no chapter advances until it passes multiple gates
- π― Consistency is guaranteed β automated fact-checking catches every contradiction
Think of it like hiring a full-time editorial team: a story architect, a prose craftsman, a line editor, a fact-checker, and a voice coach β all working on your novel simultaneously, around the clock.
graph TD
A["ποΈ Architect\nPlanner"] <--> B["βοΈ Scribe\nDrafter"]
B <--> C["π Editor\nRefiner"]
C <--> D["π‘οΈ Guardian\nValidator"]
A --> SM["π§ State Manager\nCentral Memory"]
B --> SM
C --> SM
D --> SM
SM --> SC["π¨ Style Curator\nVoice & Consistency"]
style A fill:#1e3a5f,stroke:#4a9eff,color:#fff
style B fill:#1a4731,stroke:#4ade80,color:#fff
style C fill:#3b1f5e,stroke:#a78bfa,color:#fff
style D fill:#5e1f1f,stroke:#f87171,color:#fff
style SM fill:#1f3a4f,stroke:#fbbf24,color:#fff
style SC fill:#4a1f4a,stroke:#e879f9,color:#fff
| β Traditional AI Writing | β Novel OS |
|---|---|
| Single prompt, single output | Multi-agent collaborative pipeline |
| Forgets everything between sessions | Persistent JSON state β nothing is lost |
| Characters act inconsistently | Full character database with psychology, arcs, locations |
| Plot holes and dropped threads | Automated continuity guardian catches every error |
| Style drifts between chapters | Style curator locks your voice across 300+ pages |
| Manual continuity checking | Automated 4-category validation at every chapter |
| One-size-fits-all approach | Extensible agents per genre (thriller, romance, fantasyβ¦) |
The Architect is your master story engineer. Before a single word of prose is written, the Architect lays the structural foundation.
What it does:
- Designs 3-act structure (or Hero's Journey, Save the Cat, etc.)
- Maps every character's complete arc β start, transformation, end
- Plans narrative beats, chapter-by-chapter
- Detects plot logic violations before they happen
- Integrates subplots so they interweave naturally
Output: A detailed outline.json with acts, beats, and scene-level chapter breakdowns
The Scribe is your novelist. It receives the Architect's chapter outline and transforms it into immersive, emotionally resonant prose.
What it does:
- Writes in deep Point of View (no head-hopping)
- Crafts dialogue that sounds distinct per character
- Embeds sensory details (sight, sound, touch, taste, smell)
- Opens every scene with a hook; ends every chapter with tension
- Maintains scene goals β obstacles β resolution structure
Output: A polished draft saved to outputs/manuscript/chapter_XXX_draft.md
The Editor elevates without homogenizing. It refines the Scribe's draft without erasing voice.
Five editing modes available:
| Mode | Focus |
|---|---|
line |
Awkward phrasing, verb strength, rhythm |
developmental |
Scene goals, escalation, transitions |
pacing |
Slow sections, compression, momentum |
dialogue |
Natural speech, subtext, distinct voices |
tension |
Stakes, micro-tension, chapter endings |
Output: chapter_XXX_revised.md + quality score delta (before/after)
The Guardian is a forensic analyst for fiction. Nothing escapes its notice.
Four validation categories:
- Character Continuity β Does she still have blue eyes? Does he know the secret yet?
- Timeline Continuity β Can he travel from London to Paris in 3 hours?
- World Consistency β Are the magic system's rules being respected?
- Plot Continuity β Was the foreshadowing from Chapter 4 resolved?
Output: A CONTINUITY_REPORT with PASS / WARNING / FAIL status and suggested fixes
The Style Curator ensures that Chapter 32 sounds like the same author as Chapter 1.
Built-in style profiles:
| Profile | Characteristics |
|---|---|
| Lyrical / Literary | Elevated vocab, metaphor-rich, complex sentences |
| Minimalist / Gritty | Short sentences, simple words, stark imagery |
| Cinematic / Epic | Visual descriptions, dynamic pacing, dramatic tension |
| Intimate / Romance | Emotional depth, sensory richness, relationship dynamics |
| Suspenseful / Thriller | Tight paragraphs, high stakes, unreliable information |
Output: Style analysis with drift detection and prose rhythm metrics
Every chapter travels through six quality gates before it's approved:
flowchart LR
P["ποΈ PLAN\nArchitect"] --> D["βοΈ DRAFT\nScribe"]
D --> E["π EDIT\nEditor"]
E --> V["π‘οΈ VALIDATE\nGuardian"]
V --> S["π¨ STYLE\nCurator"]
S --> U["πΎ STATE\nUpdate"]
U -->|"Next Chapter βΊ"| P
style P fill:#1e3a5f,stroke:#4a9eff,color:#fff
style D fill:#1a4731,stroke:#4ade80,color:#fff
style E fill:#3b1f5e,stroke:#a78bfa,color:#fff
style V fill:#5e1f1f,stroke:#f87171,color:#fff
style S fill:#4a1f4a,stroke:#e879f9,color:#fff
style U fill:#1f3a4f,stroke:#fbbf24,color:#fff
A chapter cannot advance until:
- β The Editor approves prose quality
- β The Continuity Guardian approves consistency
- β The Style Curator approves voice
The StoryState is a central JSON database (outputs/state/story_state.json) that all agents read from and write to. It is the single source of truth for your entire novel.
{
"metadata": { "title": "...", "genre": "..." },
"story_bible": {
"themes": [],
"setting": {},
"world_rules": {}
},
"characters": {
"char_001": {
"full_name": "...",
"role": "protagonist",
"arc_stage": "...",
"arc_progress": 45,
"current_location": "...",
"emotional_state": "...",
"relationships": {}
}
},
"plot_threads": {
"plot_001": {
"name": "...",
"status": "active",
"priority": 5
}
},
"timeline": [ ... ],
"style_profile": {
"tone": "...",
"prose_style": "...",
"point_of_view": "Third Person Limited"
},
"chapters": {
"1": { "status": "complete", "word_count": 2450 }
}
}novel-os/
βββ π README.md β You are here
βββ π AGENTS.md β Full agent system prompts & protocols
βββ π SYSTEM_OVERVIEW.md β Architecture deep-dive
βββ π LICENSE
β
βββ π core/
β βββ orchestrator.py β Main CLI β run everything from here
β βββ state_manager.py β Persistent JSON state engine
β
βββ π€ agents/
β βββ architect/prompt.md β Planner agent instructions
β βββ scribe/prompt.md β Writer agent instructions
β βββ editor/prompt.md β Editor agent instructions
β βββ continuity_guardian/ β Fact-checker agent instructions
β β βββ prompt.md
β βββ style_curator/ β Voice agent instructions
β βββ prompt.md
β
βββ π templates/
β βββ story_bible/template.md β World-building starter
β βββ character/template.md β Character profile template
β βββ outline/template.json β Story structure template
β βββ chapter/template.md β Chapter template
β
βββ π docs/
β βββ WORKFLOWS.md β Step-by-step usage guide
β βββ API.md β Programmatic interface reference
β
βββ π¬ examples/
β βββ demo_project/ β Complete working example
β
βββ π€ outputs/ β (Generated at runtime)
βββ state/story_state.json β Central state file
βββ manuscript/ β Chapter drafts and revisions
βββ feedback/ β Agent prompts and reports
python --version # Python 3.8+ requiredNo external dependencies β Novel OS runs on pure Python.
python core/orchestrator.py init --title "The Last Signal" --genre "Sci-Fi Thriller"This creates your project structure and a story_bible.md template.
Edit outputs/story_bible.md to add:
- Your world rules (magic system, technology, social structures)
- Primary locations with descriptions
- Central themes and tone
Then add characters via CLI:
python core/orchestrator.py character add --name "Lena Vasquez" --role protagonist
python core/orchestrator.py character add --name "Director Malk" --role antagonistpython core/orchestrator.py plan outline --chapters 32Reviews the outputs/outline.json β the Architect generates act structure with Save the Cat beats.
# 1. Plan the chapter (generates detailed Scribe prompt)
python core/orchestrator.py plan chapter --number 1 --pov "Lena Vasquez"
# 2. Feed the prompt to your AI, paste the result to a file, then submit
python core/orchestrator.py write --chapter 1 --draft-file chapter1_draft.md
# 3. Edit (choose a mode: line, developmental, pacing, dialogue, tension)
python core/orchestrator.py edit --chapter 1 --mode line
# 4. Validate continuity
python core/orchestrator.py validate --chapter 1
# 5. Approve and update state
python core/orchestrator.py approve --chapter 1python core/orchestrator.py statusOutput example:
============================================================
π The Last Signal
Genre: Sci-Fi Thriller
Created: 2025-01-15
============================================================
π₯ Characters: 4
π Plot Threads: 7
Active: 5
π Chapters:
β
Complete: 8
π£ Edited: 1
π‘ Drafting: 1
βͺ Planned: 22
π Progress: 8/32 (25.0%)
============================================================
python core/orchestrator.py exportCompiles all approved chapters into a single outputs/Your_Novel_Title.md manuscript file.
| Genre | Recommended Agent Setup |
|---|---|
| Commercial Fiction | Standard 5-agent loop |
| Epic Fantasy | + World-Builder Agent |
| Mystery / Thriller | + Clue-Tracker Agent |
| Romance | + Emotional Arc Agent |
| Literary Fiction | + Theme Weaver Agent |
| Series Writing | + Canon Manager Agent |
All extended agents follow the same protocol and can be added as new agents/[name]/prompt.md files.
| Spec | Detail |
|---|---|
| Language | Python 3.8+ |
| State Format | JSON |
| CLI Engine | argparse |
| Dependencies | None (pure Python stdlib) |
| State File | outputs/state/story_state.json |
| Chapter Storage | outputs/manuscript/ |
| Document | Description |
|---|---|
| AGENTS.md | Full system prompts, output formats, and quality standards for all 5 agents |
| SYSTEM_OVERVIEW.md | Deep architectural overview and design rationale |
| docs/WORKFLOWS.md | Complete step-by-step writing workflows |
| docs/API.md | Programmatic API reference for custom integrations |
The core insight behind Novel OS is that great novels are not written β they are engineered.
Professional authors use editors, fact-checkers, and style guides. They maintain character bibles, plot trackers, and timelines. They revise chapter-by-chapter with different lenses (structure, prose, pacing, consistency).
Novel OS gives every writer access to exactly this process, automated and systematic.
- β Characters forget their own backstory
- β Plot holes emerge 200 pages in
- β Style drifts between early and later chapters
- β Timeline inconsistencies invalidate plot points
- β Subplots disappear without resolution
- β Tension collapses in the second act
- β Consistent character psychology from page 1 to 300
- β Every continuity error caught before it compounds
- β Locked voice and style profile across all chapters
- β Coherent, auditable timeline
- β All plot threads tracked and resolved
- β Progressive tension and escalation enforced
Novel OS β Write novels like a professional author, with an entire editorial team at your command.
v1.0 | Production-Ready Fiction Framework | MIT License
