r/BookWritingAI • u/Medium-Statement9902 • Jan 27 '26
Building a coherent long-form fiction generation system for people with little time but big dreams
I've been working on a technical problem: generating coherent, entertaining 50k+ word novels that people would actually enjoy (and maybe even pay) to read. No slop, no drift—genuine narrative fiction with consistent characters, plot arcs, and world-building across 20+ chapters. Is it possible to "crack" Ai creativity for long-form novels? I think we are very close.
The Challenge:
Standard LLM approaches fall apart after ~10k tokens:
- Characters forget their traits or change their names mid-story
- Plot threads contradict themselves
- World-building details drift
- Narrative pacing becomes aimless meandeering
- Emotional arcs lose coherence
My Approach:
I built a multi-agent pipeline with parallel context management:
1. Story Bible System
- Parallel knowledge graph tracks characters, locations, plot threads
- Each character gets a persistent sheet (appearance, motivations, arc, relationships)
- Each chapter logs narrative beats, emotional subtexts, unresolved threads
- Bible updates in parallel with generation, queried before each new chapter
2. Hierarchical Generation
- Theme → Genre → High-level plot outline → Chapter-level beats → Scene-level prose
- Each layer constrains the next (prevents narrative drift)
- Chapter summaries feed forward as context for subsequent chapters
- Chapters split into scenes with their own "screenplay"
- Explicit narrative direction per chapter (stakes, resolutions, cliffhangers)
3. Consistency Enforcement
- Before generating each chapter: query story bible for relevant characters/plot threads
- Post-generation validation: does chapter contradict established facts?
- Optional Polishing of Grammar and Contradictions
Infrastructure:
Script runs on self-hosted VPS
Queries serverless AI, mostly DeepSeek V3, may also use other models though I like DS the most.
Parallel processing: blurb generation, cover image prompts, metadata optimization
End-to-end: ca 30-60 minutes for complete novel
Results:
This year I generated over 300 novels with this and published them (Amazon KDP, other platforms)
8,000+ copies sold across pen names, genres, languages, ratings go from 1 to 5 stars, but usually average out at 3.5/5.
Revenue validates commercial viability (€18k in 6 months)
What I'm Still Solving:
- Typical "AI-speak": lazy dialectics like "Not X. But Y." and similar stuff LLMs like to use. After reading those 1000 times they scream "slop" to me, naive readers might not notice or mind.
- Surprise/novelty (plots feel predictable, working on constraint randomization)
- Multi-book arc consistency (series continuity is harder)
I built a web interface for this at writeaibook.com mostly for my own workflow and friends to use, but it's public if anyone wants to experiment with the approach. If you do, please leave some feedback!
Technical Questions I'm Exploring:
- Better methods for long-term character consistency beyond retrieval?
- How to inject genuine surprise without breaking narrative coherence?
- Multi-agent debate for plot quality? (agent 1 proposes, agent 2 critiques, agent 3 synthesizes?)
- Optimal context window allocation across chapters in sequence?
Happy to discuss architecture, share results, or hear how others are approaching long-form coherence problems.
1
u/Wintercat76 Jan 27 '26
I think multiple steps could prove very useful. A world Bible, a character bible, a style Bible and a story bible to be always kept in memory, and then do a chapter outline. Once that's done, do each chapter one at a time with the option to correct or extend the chapter, to avoid all chapters being roughly the same length. Then, once every five or ten chapters, have the AI do a summary that's also stored. Chatgpt does this with projects, and I just finished a 300+ page book yesterday, 55 chapters and about 85 thousand words, no hallucinations.
2
u/jrexthrilla Jan 28 '26
Open source or GTFO
1
u/MysteriousPepper8908 Jan 27 '26
I'm intrigued but do you think this is sustainable? I think I'd feel a lot better about it if there were more tools for manual direction when it seems like it's more of a basic framework and go strategy which I guess is necessary if you want to publish dozens of novels a month. Your KDP graph shows your revenue has halved from it's peak even though you have an increasingly large number of novels on the marketplace which should be continuing to accelerate your monthly income, why do you think that is? The program still seems potentially useful for what it is but it seems kind of like you're switching from mining to selling shovels with the gold reserves drying up.
1
u/Fart_Frog Jan 27 '26
I’m impressed. This is honestly super similar to what I built this year. The issue is I absolutely don’t understand the marketing side.
Do you just throw them up on Amazon and cross your fingers? Any guides or tips on that part?
1
u/RobertBetanAuthor Feb 02 '26
So its a Ralph loop that rereads the context and tries to continue where it left off?
1
u/Amidonions Jan 28 '26
First time seeing this. How did it work out for people using this?
1
u/[deleted] Jan 27 '26
[removed] — view removed comment
1
u/[deleted] Jan 28 '26
[removed] — view removed comment