prose-scrub 0.4 adds a small model as the second reader
My linter has a judge now. It's advisory-only because it once fired a 'But' nobody asked for.
A page of text drawn as a solid sheet with its lines cut out. A comb with fixed teeth is lowered over it. Three lines that match its teeth fall out onto the ground, and the rest of the page closes up. A small lamp on a stalk swings over the page and lights two lines in green, with the words "for a person" beside them.
Contents
Yesterday I built a gate with Claude. Today it learned to read.
prose-scrub fails my prose on dashes, stock phrases, pre-negation and flat rhythm. Those are all things a word list can catch. Version 0.4 adds a second reader: a command called judge that asks Claude Haiku 5.5 about two habits no word list can see, five times per file. A word list catches only the shapes it has teeth for. The judge reads what slips through and flags the rest for a person.
I ran the whole thing on four of my own posts and my résumé, read the results in a side-by-side viewer, and found the place where the gate makes my writing worse. I'm shipping it anyway, as 0.4.0. This is the build log.
A bet I lost
Wikipedia's guide to signs of AI writing lists undue emphasis on significance: text that keeps telling you its subject matters. I suspected my last post did it, so I asked for a test: "Run a haiku across the prose in the md and ask it to rank the headings from 0.0 to 1.0 on 'how important does the author want me to think this section is' and I bet it'll rank every heading as 1.0."
I lost. Three Haiku runs gave means of 0.47, 0.52 and 0.50, from 0.05 for the source list up to 0.90 for the section on the first relaxation. My headings were fine.
But all three runs quoted the same seven lines as the reason a section sounded important. Lines like "The one that changed the plan was" and "One line in that summary gave it away." The headings were never the finding. Those seven lines were. The rewrite cut them.
A page of four sections, each a bold heading bar over body-line bars. At first every heading is at full brightness, the bet. They dim to muted. A judge lamp then scans down the page three times. Each scan lights the same seven body lines in green. Labels read: the bet, every heading loud; three runs, same seven lines; 0.47 / 0.52 / 0.50. Finally the seven lit lines fall out of the page, which closes up, and land in a stack of seven green bars beside it, labelled the seven the rewrite cut.
Lesson for anyone pointing a small model at their own work: ask it to score the thing you're sure is broken, then read what it quotes instead. The answer was in the quotes, not the scores.
The expensive part of a subagent is the subagent
Each of those runs was a Claude Code subagent, and each cost about 65,000 tokens. I asked for a cheaper version that sends only the headings, and Claude added a headings command. It saved a tenth: 58,500 tokens instead of 65,000. Nearly all of a subagent's cost is its own setup, not your post.
So the judge skips subagents and talks to the API directly, with a two-line system prompt. A whole post costs a few thousand tokens. The key lives in the macOS Keychain, where neither the command line nor Claude ever sees it.
What to ask a small model
Before writing the judge we went back through the sources. Wikipedia's guide has sections I half remembered, on avoiding plain "is" and "are" and on superficial analysis. stop-slop scores text on directness, rhythm, trust, authenticity and density. slopkit benchmarks its rewrites with judge panels.
Two patterns needed a reader rather than a list:
- Significance, per paragraph. How important does the paragraph say its subject is, and separately, how much evidence does it give? Flag when the first is much higher than the second.
- Superficial analysis, per sentence. Does the sentence add new information, or only interpret what came before?
A new units command numbers every paragraph and sentence, so each run scores exactly the same pieces.
A beam balance on a post. A judge lamp stands over its right side, and a paragraph sheet waits on the ground to the left. As the lamp reads the sheet, five loud discs drop into the left pan, which sinks far below the right. Three small grey blocks sit in the right pan. A green flag rises from the pivot: flagged for a person, says far above evidence.
Copula avoidance ("serves as", "boasts" and "stands as" where "is" would do) looked like a job for a plain rule, so Claude wrote one. It found two real cases on my site. I still didn't ship it. A specific blacklist grows without bound, and nobody had checked that the first list was right. It's parked on its own branch until I can label a pile of sentences by hand, AI-written ones mixed with human writing from before 2022.
Five runs averaged into one score
Claude proposed three runs and a median. I asked for five, averaged: "Therefore, if a Haiku Claude disagrees with parallel Haikus, that is signal and not noise, so averaging is the correct move. Probably."
My experience with agents is that smaller models fail by being lazy, not by missing things. A run that disagrees may have looked harder. Hold that thought.
On a short test file about a bridge, with one inflated paragraph and one empty closing sentence planted, the runs flagged that paragraph, its two sentences and the empty one, and nothing in the paragraph of plain facts. Across that file and my last post, they agreed on 158 of 330 scores. Almost every disagreement was one step on Haiku's grid, one run saying 0.25 where four said 0.3. No single run was the odd one out, and disagreement didn't grow toward the end of long lists. That's too little data to explain anything. Every run's raw scores now go to a log, and finding the cause is on my list.
Five small judge lamps stand in an even row beside a page, each aimed at the same flagged line. Each drops a mark onto a two-step stair: four marks land on the upper step, 0.3, and one, drawn muted, lands on the lower step, 0.25. A green bar sits between the two steps where the average settles. The label reads: 158 of 330: all five agree, the rest mostly one step apart.
Then I tried a scale of 0 to 50, hoping Haiku would use decimals. It used none. On significance it moved to a finer grid of whole numbers, and on superficial it stayed on ten steps. Runs agreed more closely on both, so 0 to 50 is now the default.
The bug that wasn't laziness
On my E-E-A-T post, four of the five significance runs returned no scores at all. That looked like the laziness I'd predicted. It wasn't. The score field was called claim, and Haiku read it as "describe the claim": it wrote sentences where the numbers should go. I asked for a claim, and it gave me one. Four times. Faithfully.
Claude renamed the fields to importance_score, evidence_score and empty_score and made the tool schema strict. All five runs came back complete.
Five empty slots stand in a row, one for each run. Under the field name "claim", four slots fill with muted sentence-lines and one with a solid number block: 4 of 5 empty. The name then changes to "importance_score", the sentences clear, and all five slots refill with number blocks, which turn green: 5 of 5 complete.
When a small model returns prose where you asked for numbers, suspect your field name before you suspect the model.
Testing it on my own posts
Every post on my site was vibe-written. I picked four, plus my résumé as a control, and had Claude run the full loop on copies: scan, judge, a fresh subagent per file to rewrite, up to three rounds. Each before and after became a page styled for reading, and Claude built a small viewer to compare them side by side, as a word-level diff and as a change log.
Four bars, one per post, showing the gate findings before the rewrite: E-E-A-T 9 to 0, generative OG images 4 to 2, vibe manufacturing 1 to 0, small business post 14 to 1.
Before and after one or two rewrite rounds, 2026-10-09. The OG post's two remaining findings sit in a quoted card and a section name.
The gate found real things to fix. It also made the small-business post worse.
Where clean reads worse
The diff of that post's opening showed the problem. The two signposts ending in "I found." and "I learned." were gone, cut by the throat-clearing rule. Two adverbs were gone, cut by the adverb rule. The judge marked "Okay." as a sentence that adds nothing, so "Okay. But where is that, exactly?" became "Where is that, exactly?" And the rewriter dropped a "But" that no rule had asked it to touch.
Word-level diff of the small-business post's opening after one rewrite round. Cut words are struck through in grey, each with a small tag naming the rule that cut it: the adverb rule removed "actually" twice and "really", the rhythm rule merged two intro sentences, the throat-clearing rule removed "Here's what I found." and "Here's what I learned.", and the judge removed "Okay.". The one cut no rule asked for, "But", is in red.
Those were there on purpose. The signpost before the data tells the reader something interesting is about to happen, and that prepares them for it. Readers run on what they expect to feel next. People start sentences with "But" all the time. Clean isn't always easier to read.
So I asked where the throat-clearing rule came from. prose-scrub copied it from stop-slop, which calls every signpost of that shape throat-clearing and lists no exceptions. A word list can't tell a signpost that pays off from one that doesn't. In the end I kept the rule: "I accept slightly worse writing for avoiding all throat clearing."
The judge is a different case, because it's advisory. It flags setups like "Okay." that are doing their job, so the skill now shows judge flags to a person and never hands them to a rewriter on its own.
Using it
security add-generic-password -U -a "$USER" -s anthropic-api-key -w
cd ~/prose-scrub && git pull && bun install
bun src/index.ts units post.md --json
bun src/index.ts judge post.md --log runs.jsonl --json
Four steps: store the API key, split the post into units, judge each unit, a flagged count with exit code 0.
judge always exits 0 and reports a flagged count. Each paragraph or sentence keeps all five scores and their spread. The thresholds are provisional until they're checked against human writing. A post of about 2,000 words takes 10 API calls, roughly 50,000 tokens in and 15,000 out.
If you're putting a small model to work as a second reader, I'd like to compare notes: mackenzie@mackenziebowes.com or @_mackenziebowes.
Sources
- prose-scrub on GitHub (MIT), v0.4.0
- prose-scrub: a slop gate, built by the agent it gates
- Wikipedia: Signs of AI writing
- Hardik Pandya: stop-slop
- slopkit