I wrote The Unseen Alliancewith Claude. Here's the plugin that held it together.
Fifty chapters. Six POV characters. An orc war councillor, a goblin spymaster with three fingers and one eye, an alchemist in first contact with something older than civilisation, and a peace treaty signed in the architect's blood. A novel that would have taken a decade to write by hand — Claude drafted it in hours, and the plugin held the line on every physical, temporal, and voice anchor from Chapter 1 to Chapter 50. This is how.
UNSEEN
ALLIANCE
There is a specific way that novels written with LLMs fall apart, and it happens somewhere around chapter twenty. The model forgets that your spymaster lost two fingers eight chapters ago. It has the orc protagonist use a metaphor no orc would ever reach for. It slips a season between scenes. It gives a character a crown in a culture that has refused thrones for three thousand years. Once drift begins, every subsequent scene compounds it.
I hit this wall around chapter twenty of The Unseen Alliance — a fantasy about an orc war councillor, a goblin spymaster, and the alliance they build against human expansion while something older wakes up underneath them. The manuscript was eating itself alive.
So I stopped writing the book, and started writing the thing that would write the book. When the plugin was finished, the novel was a weekend's worth of runs away. I had both: claude-novel-plugin, and The Unseen Alliance, 50 chapters, shipped in hours of wall-clock time instead of the decade a manuscript like this would have taken by hand.
I'm not going to pretend I pushed a Claude-sized chunk of manuscript around until it sounded like me. The book is written with Claude — the prose, the dialogue, the scene-by-scene drafting. What I wrote was the outline, the cast, the rules of the world, and the opinions about what the book was for. The plugin did the rest. This post is about the plugin.
The plugin, in one sentence
A Claude Code plugin that splits novel-writing into ten narrow commands orchestrated across three pre-writing validators, six drafting agents, and a five-stage critique pipeline — each stage with its own context, its own job, and its own refusal to do anyone else's — so no single prompt ever has to hold the whole book in its head.
The character bible is the single source of truth.
Every character is a markdown file committed to an Obsidian vault. Physical heartbeat, voice, wants-and-needs, flaw, relationships, arc, chapter-by-chapter appearance table. The model never invents a fact about a character — the /novel-character command builds the file, the librarian reads it, and every subsequent scene writes to it. Below are the six principals of The Unseen Alliance, pulled straight from their vault entries.
Grukk Ironjaw
The real enemy is drift.
The bible is necessary but not sufficient. You also need a step in the pipeline whose only job is to check— to run the draft against the bible and the timeline, flag every contradiction, and refuse to let the scene through until they're resolved.
This is the single most important insight I arrived at. Generation and verification must be separate agents. The prose model is incentivised toward fluency; it will paper over small contradictions to keep the sentence moving. The continuity audit — Stage 5 of /novel-critique — has no such incentive. It reads with a clipboard and it is explicitly read-only: it never rewrites, only files anchors that the stage-6 reviser acts on.
The continuity agent's job is to be the most boring member of the team. It doesn't write. It doesn't suggest. It files flags.
Three drafts. Three classes of mistake. Three toggles.
Below are three passages from the shipped manuscript — a Ch. 49 physical heartbeat, a Ch. 31 timeline anchor, a Ch. 18 voice sample — each paired with a plausible bad-draft variant the continuity auditor would catch. Toggle to the after-pass view to see the real book prose; the raw-draft view is what could have shipped without the auditor, with flags filed against bible and timeline anchors.
Finger count wrong
Skitter lost two fingers to Brakkar's cage in Ch. 30 — left hand has three, not four. Reinforced in Ch. 37, 41, 49.
bible:skitter.physical · anchors: Ch.30 §7, Ch.37 §2, Ch.41 §1, Ch.49 §2Eye colour wrong
Skitter's eyes are "enormous, amber-gold, giving her the unsettling appearance of seeing everything at once." "Grey" has never appeared for any goblin in the manuscript.
bible:skitter.physical · 0 prior "grey eye" refs in 312 goblin-POV scenesEyepatch side inverted
Brakkar took the right eye (Ch. 30), reinforced Ch. 37 ("the patch"), Ch. 49 ("One eye. The other gone in a cage."). Left-eye patch breaks the line-of-sight geometry of every scene since Ch. 30.
bible:skitter.physical · geometry-check: Ch.49 §31Half-ear callback missing
Skitter lost the upper half of her left ear at age seven to a rat-trap — she wears it "like a badge" and never covers it. Post-torture scenes typically call it back when she appraises her reflection.
bible:skitter.physical · anchor: Ch.2 §3One scene. Ten commands. Twenty-odd agents.
Every scene in The Unseen Alliance is produced by the same sequence of commands, wired into Claude Code as a plugin. The commands are narrow: /novel-outline holds the structure, /novel-character the cast, /novel-world the rules. /novel-validate runs three pre-writing stages in parallel — Narrative Architecture, Character Readiness, World Consistency — across nine validators (plot-hole detector, stakes auditor, pacing forecaster, arc completeness, voice profile auditor, relationship web, rule-system auditor, timeline feasibility, setting coverage). If any one is red, the draft is blocked.
Only then does /novel-write run. It dispatches a librarian (who loads only the context this one scene needs), a prose agent (who drafts 2,000-2,500 words), and stops. The draft goes into /novel-critique, which is five sequential stages — plot & structure, character development, prose quality, dialogue, continuity — and inside each stage, three Critics flag in parallel, three Judges vote in parallel, three Implementers rewrite in parallel. Stage 5 is the exception: continuity is read-only, and its flags promote to a dedicated revise-task.
That's the entire trick. Give each prompt a narrow job and a narrow view, and the whole system scales further than any single prompt ever could. Below is the pipeline as it ran for Chapter 49 — the signing of the Accord of Ashes, Skitter's last scene. Click through the stages, or press Play.
/novel-outline — the architect
Reads only scene 49's slot in the outline, not the whole 50-chapter arc. Compiles a focused brief: who is on-page, what Skitter must accomplish, what must be true when the chamber empties. Keeps the prose model from wandering into the hilltop coda that belongs to Ch. 50.
The prose model writes. The librarian remembers. The nine validators refuse. The critics flag. The judges vote. The reviser touches only what was promoted. The scribe keeps the books. No one does anyone else's job.
What this is, and isn't.
The book is written with Claude. I want to be plain about that. The sentences in The Unseen Alliance were drafted by an LLM in the same sense that a film is shot by a camera — the tool did the mechanical work, in hours of wall-clock time rather than the years a manuscript of this length would have taken by hand. What I brought was the outline, the cast, the rules of the world, the iteration on the plugin, and the opinions about what the book was for.
It's the same principle I lean on at work, translated into fiction: make some things easy and other things hard. The plugin makes drift hard. It makes continuity cheap. It makes the prose model choose between fluency and fact, and then it has nine validators standing behind it, and five critique stages in front of it, ready to say no.
If you want to try it
The plugin is on GitHub under MIT. It runs as a Claude Code plugin — install, point it at a vault and an outline, run /novel-init. The bible, validators, and pipeline above are lifted straight from the Unseen Alliancerun; they're what a real project looks like, not a demo.
If you're using it on your own book, I'd love to hear what breaks. That's how it got this good.
A novel held together by the thing that wrote it.
Available now in paperback and Kindle. Fifty chapters of orc, goblin, human, and the things that live beneath the stone.
UNSEEN
ALLIANCE