Finds continuity errors in a novel manuscript. Point it at eighty chapters and it tells you which character you killed and then kept writing.
Somewhere around chapter forty, a book stops fitting in your head. You know the shape of it, but you no longer know whether the key is still in the river, whether her eyes were grey in the first act, whether the man you buried in the spring has said anything since. Every writer of a long book has lain awake on that. Continuity is the one editing problem that gets worse the better and longer your book gets.
uv tool install firstserial # or: pipx install firstserial
export ANTHROPIC_API_KEY=sk-ant-...
firstserial ./my-manuscriptNo Python environment to manage. One API key and a folder of chapters.
In 1887 he shot Doctor Watson in the shoulder. In 1890 he put the same Jezail bullet through Watson's leg. Sherlockians have been writing papers about it since Ronald Knox in 1912, inventing ever more elaborate theories to explain how one man could be wounded in two places by one bullet — because the alternative is that Conan Doyle simply forgot.
Here is firstserial reading 97,823 words of the canon — A Study in Scarlet, The Sign of the Four, and four of the Adventures, in publication order. It reported this, and nothing else:
### 1. Watson: wound to the arm in ch2, but the leg in ch8.
*wound relocated*
**Chapter 2**
> His left arm has been injured. He holds it in a stiff and unnatural manner.
**Chapter 8**
> I had a Jezail bullet through it some time before
The same Afghan Jezail-bullet wound is located in Watson's left arm/shoulder in
the earlier chapter and in his leg later, with no in-text acknowledgement of a
second injury.Eleven candidates were checked; one was confirmed, and it was the right one. Run against Little Brother — a professionally copy-edited novel, used as a control — the same check said nothing at all.
If it can find a mistake two novels apart that a century of readers argued about, it can find the one you made in chapter fifty-one.
- Dead characters who keep talking — a death with no resurrection, and dialogue afterwards
- Injuries that heal off-page — a hand lost in chapter 34, gripping a rope in chapter 51
- Items that come back — a key dropped in a river, opening a door twelve chapters later
- Attributes that drift — eyes that change colour, ages that don't add up, titles that shift
- Setups you never paid off — a sealed letter, an oath, a prophecy, still outstanding
Every finding quotes the two passages it rests on, in that order, before any reasoning. You should be able to reject a wrong one in five seconds without opening your manuscript.
Seven chapters with a known answer, for a few cents:
firstserial ./examples/the-sealed-letterThen score what comes back against examples/EXPECTED.md. Half of what looks wrong in those chapters is explained by the text and is there to be dismissed — a drowning survived on the page, a lantern replaced later, a death inside a dream. A tool that flags all of them is not being thorough, it is being useless.
Anyone writing something long enough to forget. It was built with serial writers in mind — the people three hundred chapters into a web serial, publishing weekly, carrying a cast of forty in their head with no editor and no series bible except the one in their memory. That is the hardest version of this problem and nobody was building for it.
But it works the same on a first novel, a trilogy, or a draft you abandoned in 2019 and want to pick back up.
I like precision, and I don't like errors.
A continuity slip is a small thing. It is also the moment a reader stops trusting a book — not because the mistake matters in itself, but because it proves nobody was keeping track.
Keeping track is the part that does not scale. A careful writer holds a hundred pages. Nobody holds three hundred chapters. So the work that most rewards care is exactly the work where care runs out first, and that seemed like the right thing to hand to a machine — not the writing, which is yours, but the bookkeeping underneath it.
— Mossaddique Ahsan, BeyondITL
Your chapters go to Anthropic's API and nowhere else. There is no server, no account, no telemetry, and nothing is kept. The report is written to your disk and that is the end of it. You bring your own API key, so you are the customer of record — nothing is resold or proxied through anyone.
This matters more than a feature list. You are being asked to hand an unfinished book to a machine, and you should know exactly where it goes.
A report full of things that aren't errors is worse than no report, because you stop reading at the first wrong one.
Every issue is checked twice. The first pass walks an event ledger built from your manuscript and is deliberately over-eager. The second pass sends each candidate back with the chapter text around it and asks whether it is genuinely an error — discarding it if the story explains itself, if it's a flashback or a dream, if a similarly-named character is involved, or if the narrative already acknowledges the oddity.
Only what survives both passes reaches the report.
Not a grammar or style checker. It never comments on your prose. For that, use Vale or ProWritingAid.
Not a writing assistant. It does not draft, rewrite, expand, or suggest. It reads and reports.
Not a substitute for an editor. It tracks state changes — who has what, who knows what, who is alive. It has nothing to say about pacing, theme, or whether a scene works. A clean report means no contradictions in the record it built, not that the book is finished.
firstserial ./manuscript # folder of chapter files
firstserial novel.md # one file with "Chapter N" headings
firstserial ./manuscript --max-chapters 10 # try ten chapters first
firstserial ./manuscript --ledger events.json --castChapters can be .md or .txt. It reads # Chapter 12: The Climb, Chapter 12, and CH 12 - The Climb alike.
Models. Extraction runs on Sonnet by default. Verification decides whether you get told about a mistake you did not make, so it is worth spending more on:
export SCAN_VERIFY_MODEL=claude-opus-5Cost. A full-length novel runs to a few dollars. You never have to take my word for it: every run prints its exact token use and what it cost, per model. Chapters are cached by content hash, so a rerun only pays for what you changed — and an interrupted run picks up where it stopped.
Pre-1.0, and specific about what has been measured.
Tested. 46 tests on every push, across Python 3.10 through 3.13. The contradiction layer raises every planted error in examples/ and stays quiet on the near-misses planted alongside them.
Benchmarked against documented errors. The corpus is built from novels whose continuity errors were catalogued by scholars — the Holmes canon, and Defoe's Robinson Crusoe via W. T. Hastings' 1912 errata list in Modern Language Notes. Public-domain text, citable sources, a published answer key to score against, and a clean copy-edited control alongside.
Next: the false-positive rate. For a tool that tells authors their book is wrong, the number that matters is how often it says so and shouldn't. It is being counted on the benchmark corpus now, and it will be published with the corpus and the method attached so anyone can reproduce it. So far as I can tell, no other tool in this category publishes one.
Pre-release. firstserial on PyPI is a placeholder; install from source until 0.1.0.
The most useful thing you can send is a documented continuity error in a book anyone can download — a mistake a scholar has already written up, in a public-domain or Creative Commons novel. Every one of those makes the benchmark sharper, and you don't need to read a line of Python to add one. See CONTRIBUTING.md.
The second most useful thing is a finding that was wrong. If this tool accuses you of a mistake your book doesn't contain, that's the bug report that matters most. Open an issue with the two quoted passages and what the story does to explain it. You never need to share the manuscript.
git clone https://github.com/BeyondITL/firstserial.git
cd firstserial
uv sync
uv run pytest tests/ -qMIT. Fork it, sell it, embed it.