Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Find the lines worth revising

bluepencil is a local prose linter for fiction and long-form writing. It finds repeated words, distracting sentence patterns, style flags, and pacing changes, then points to the passage so you can decide what to keep.

Open the browser writing desk — paste a manuscript, explore inline observations, and chart its rhythm. Analysis runs locally in WebAssembly, without an account or upload. The browser guide covers highlights, the chart, and the 16 MiB input limit.

For native writing-app formats and project workflows, install the CLI, open the quick start, or read the input formats. The deterministic commands run offline. Optional model-backed commands send text to the provider you configure when explicitly invoked.

Installation

Homebrew

brew install writerslogic/tap/bluepencil

Cargo

cargo install bluepencil

From source

git clone https://github.com/writerslogic/bluepencil
cd bluepencil
cargo install --path crates/bluepencil

Shell completions

bluepencil completions zsh > "${fpath[1]}/_bluepencil"
bluepencil completions bash > ~/.local/share/bash-completion/completions/bluepencil
bluepencil completions fish > ~/.config/fish/completions/bluepencil.fish

Quick start

cd my-novel
bluepencil init

Edit project.files in the new bluepencil.toml to match your chapter files, then:

bluepencil report
bluepencil echoes
bluepencil starters chapters/07.md

You can always pass files directly, or pipe text in with -:

pbpaste | bluepencil rhythm -

The browser writing desk

Open the writing desk to edit and analyze English prose locally. Paste a manuscript or open a UTF-8 Markdown, Fountain, or plain text file up to 16 MiB. The engine parses the whole document and scans groups of rules in a background worker, with progress and cancellation. Chapter boundaries, Markdown fences, and dialogue retain their context.

Observations in the text

Colored backgrounds and underlines mark observations near the visible passage, with a buffer above and below. Scrolling updates the highlights and toolbar counts. The editor is virtualized, so large manuscripts do not require every line and finding to be rendered at once.

Toolbar groupObservations
RepetitionNearby word echoes, repeated phrases, repeated sentence openings
StyleWordy constructions, familiar phrases, possible passive constructions, perception and thought words, hedges, adverbs
RhythmLong sentences and runs of similar sentence lengths
DialogueExpressive and adverb-modified dialogue tags
NarrativePossible tense and grammatical-person shifts

Use the toolbar groups to turn individual types on or off. Click a marked passage to open its explanation above the editor; overlapping observations can be inspected separately. The explanation stays on the selected observation while you scroll. Return to this passage takes you back, and the arrows move among nearby observations. Inspect finding opens a nearby observation. Alt+Enter inspects an observation at the cursor; Escape closes the explanation.

At most 1,000 enabled observations are drawn in one buffered view, with a notice when that display limit is reached. The complete analysis stays in the worker, so scrolling retrieves findings throughout the manuscript. Turning off types can reduce a dense view. The VS Code adapter retains its separate 1 MiB input and 150-observation display limits.

Manuscript chart

Analysis chart opens a panel below the editor. Its toolbar switches each metric independently. Tracks gives each metric its own aligned row, with actual values and a labeled scale, so lines remain visible. Overlay compares their shapes on independent relative scales. All tracks share a position in the text and a cursor.

LineValue at a node
Sentence lengthMean words per sentence
Paragraph lengthMean full paragraph length for distinct paragraphs touching the sample
Dialogue sharePercentage of words inside dialogue
Finding densityAll observations starting in the sample, per 1,000 words
Sentence variationVariation over the current and up to four preceding sentences, averaged across the sample; standard deviation divided by mean length, as a percentage

Entire manuscript defaults to eight samples within each detected chapter, with chapter boundaries labeled below the chart. Choose four, eight, or sixteen samples per chapter, or a 128-, 256-, or 512-sample overview. Samples group consecutive sentences; short chapters have fewer nodes. Conventional standalone chapter labels and Markdown or Fountain headings establish boundaries. Without chapter structure, automatic detail uses a 256-sample overview.

Visible passage + buffer follows the editor as you scroll, with a node for every sentence by default. Switch to Every paragraph to see full paragraph samples. Values include the full sentences or paragraphs touching the selected passage. Detail choices are remembered separately for the two views. Explicit choices are honored; a view exceeding 8,192 samples asks for a coarser setting or a smaller passage.

Shading marks the visible passage and its surrounding buffer. Hover over a node or use the point slider to read its values, sentence and paragraph positions, and word range. Click the chart or select Go to passage to move the editor there. Closely spaced markers may be thinned on screen, while every sample remains in the line and accessible through the slider. These are measurable pacing signals, not a score for narrative pace. Finding density includes all rule types, independently of which highlights are enabled. Sentence variation resets at chapter boundaries.

Panels resize the editor instead of covering it. On small screens, opening one panel closes the other to preserve room for reading. The reading area expands on wide displays, up to an 1,800-pixel content column.

Editing and limits

Undo works for edits and sample replacements. Download saves the current text; the browser does not write changes back to an opened file. Text stays in the tab’s memory, and the page requests confirmation before leaving an edited document.

Conversational perception words and sensory descriptions such as “smelled of rain” are suppressed. Dialogue does not create narration-rhythm or repeated-opening findings, and runs stop at headings. Repeated phrases need three occurrences. Narrative observations need three classified sentences differing from a baseline supported by at least 80% of twelve or more classified narration sentences. These remain heuristics: deliberate repetition, changes of tense or person, and character voice may be worth keeping. See Quality and limits.

For native writing-app formats, project configuration, and scriptable reports, use the CLI.

Configuration

bluepencil looks for bluepencil.toml in the current directory and each parent directory, using the first one it finds. Pass --config PATH to use a specific file. Globs in project.files are resolved relative to the config file.

Every setting is optional. Run bluepencil init for a commented template.

SectionKeys
[project]files
[echoes]window, min_length, include_names, ignore
[repeats]min, max, count
[rhythm]run, tolerance, long
[starters]run
[tics]words
[lexicon]filter, hedges, cliches, stopwords, not_adverbs, ignore, files
[check]see Thresholds
[model]provider, model, effort, api_key_env, max_findings, timeout_secs, fallback, base_url; see Output, facts, voice, and scenes

Command-line options override config values. bluepencil config prints the merged result and the file it came from.

Model providers

Model-backed features run only when you invoke --explain, facts, voice, or scenes. The default provider is anthropic with ANTHROPIC_API_KEY. To use another provider:

[model]
provider = "openai"
model = "gpt-5.2"
# Reads OPENAI_API_KEY from the environment.

Use provider = "openrouter" with an OpenRouter model ID and OPENROUTER_API_KEY. For another service exposing an OpenAI-compatible /chat/completions endpoint, use provider = "compatible", set base_url to the service’s /v1 base, and set model. A compatible endpoint has no API key by default; set api_key_env if it requires one. Custom remote endpoints must use HTTPS; HTTP is accepted for loopback addresses only. Provider support for strict JSON Schema output varies by model, so choose a model that supports it.

The Anthropic-only effort and fallback settings do not apply to OpenAI-compatible requests. Keys are read from environment variables, never from this file. The selected provider receives the manuscript text or finding context sent by the command and may charge for the request.

Input formats

The format is chosen by file extension. Use --as plain|markdown|fountain|docx to override it. Text on stdin is treated as Markdown unless --as says otherwise (--as docx on stdin is rejected, since docx is a binary archive, not text).

Markdown (.md, .markdown, .mdx)

Front matter, fenced code, inline code, HTML tags and comments, link targets, images, footnote references, tables, and emphasis markers are ignored. Headings define sections for outline, readability, and dialogue, and are not counted as prose.

Fountain (.fountain, .spmd)

Scene headings and sections become sections. Character cues, parentheticals, transitions, notes, and the title page are ignored. Dialogue blocks are measured as dialogue.

Plain text

Everything is prose. Blank lines separate paragraphs.

Word (.docx)

A .docx file is converted to synthetic Markdown before analysis: each paragraph’s text is extracted, and a paragraph styled Heading1..Heading6 or Title becomes a #..###### heading. It is then analyzed exactly like a Markdown document. Tables, images, headers and footers, comments, and tracked changes are not read. Because the text is reconstructed rather than read byte-for-byte, locations are approximate and do not map back to positions in the original file the way they do for the other formats.

Writing app files

bluepencil also opens these native files directly:

AppInputWhat is read
Scrivener 3.scriv project folderDraft binder items and their RTF text, in binder order. Research and trash are skipped.
Final Draft.fdxScene headings, action, character cues, parentheticals, and dialogue, reconstructed as Fountain.
Ulysses.ulyz sheet or .ulysses package folderSheet body text. Inline markup text is retained.
Tinderbox.tbxText of each note, with nested note names preserved in the report path.
Pages.pages file or package on macOSPages opens the file and exports a temporary Word document for analysis. Pages must be installed.

These files are read without changing the originals. The Pages importer opens the file in the Pages app and may trigger a macOS permission prompt. Native package locations refer to reconstructed text; they do not map directly to the app’s own editor positions. Import size is limited to 64 MiB per source file or extracted sheet. The browser playground handles Markdown, Fountain, and plain text only; use the CLI for writing app files.

The importers have also been checked against public Scrivener 3, Final Draft, and Tinderbox samples. A .pages document created in Pages was imported locally with its two paragraphs intact and the source file unchanged; Pages is not exercised in CI. Ulysses is covered by constructed package and archive fixtures but has not been checked with a file from the app.

Locations for Plain, Markdown, and Fountain refer to the original file, so line and column numbers match your editor.

A first revision pass

The repository includes a three-chapter sample novel. It is a product demo, not a customer case study. From examples/novel, run:

bluepencil report --html report.html

The report starts with the passages to review. For example, chapter one places “gravel” twice within four words in the sentence about Mara walking up the drive. The writer might remove the second use, choose a more precise image, or keep the repeated sound of the word. bluepencil echoes also points to a run of “looked” in the motel scene; that repetition may suit the old man’s watchful behavior.

The sample currently contains 345 prose words, 16 echo observations, and 7 adverb observations. These are measured counts, not a grade. bluepencil check applies the sample’s configured thresholds; the optional model-backed commands are separate and may send text to your configured provider.

If you try bluepencil on your own work, use the writer feedback form to share what helped and what got in the way. Include a short passage only if you may post it publicly. A publishable case study needs the writer’s explicit consent; none is implied by an issue or a star.

Quality and limits

bluepencil’s deterministic rules are meant to surface passages for a writer to review. They do not score writing quality or decide what to change. Repeated words in dialogue, familiar expressions used literally, and deliberate rhythm can all be worth keeping.

Reproducible rule check

benchmarks/quality/cases.json contains 22 hand-labeled, synthetic sentences for five rules. Run BLUEPENCIL_BIN=target/debug/bluepencil node benchmarks/quality/run.mjs after building the CLI. On the current code, the set gives 11 true positives, 1 false positive, 10 true negatives, and no false negatives: 91.7% precision and 100% recall on this small fixture only. The remaining false positive is a literal “piece of cake” matched by the cliché phrase list. This is a regression fixture, not a representative estimate for novels or screenplays.

The passive detector uses a lightweight verb pattern and a short list of common state adjectives. It can still mistake an adjective for a passive construction or miss a passive without a nearby be verb. Cliché matching is phrase based and does not infer whether a phrase is literal.

Browser observations

The browser writing desk analyzes documents up to 16 MiB and retrieves findings near the visible text. Its display limit applies to a buffered view, rather than the manuscript’s beginning. Its contextual filters suppress conversational perception words, sensory descriptions such as “smelled of rain,” and narration patterns caused by dialogue. Tense and person observations require a strong manuscript-wide baseline. These choices have regression coverage in crates/bluepencil-web/src/manuscript/tests.rs; they do not establish precision on real manuscripts.

Browser integration checks cover synthetic manuscripts above the former size limit and at the 16 MiB boundary, observations near their endings, scrolling, type switches, charts and navigation, cancellation, and mobile errors. Run the browser checks to reproduce them. The chart describes sentence length, paragraph length, dialogue, and observation density; it does not measure narrative quality or infer scene pace.

A credible estimate of writer-facing precision will need a larger, consented set of real passages, multiple human annotators, a published labeling guide, and per-rule results. No claim about performance on real manuscripts is made from the synthetic fixture.

Output

Human-readable output is the default. Locations are printed as file:line:column so terminals and editors can link them.

Every analysis command accepts --json. Ranked lists honor -n/--limit.

report --html PATH writes a self-contained HTML page that works offline and follows your system’s light or dark setting.

Editor’s notes with --explain

The word-list commands (tics, filter, hedges, adverbs, cliches, passive, nominal) and echoes accept --explain. Each finding is sent to a language model with its surrounding sentence, and comes back with a verdict and a short note:

ch03.md:12:7  hedges  very
    He was very tired by the time the train came.
    → fix: "very tired" is a flat intensifier here; "exhausted" or "asleep on his feet" does the work.

Verdicts are fix, consider, and keep. keep marks a false positive or a deliberate choice, such as a line of dialogue that sounds like a person talking.

--explain, facts, voice, and scenes are the model-backed features that send text to the provider configured under [model]. Each is off unless explicitly invoked. Remote providers need an API key and may charge for requests. None changes what the deterministic commands find or how check scores results. With --json, each explained finding carries a note object. At most model.max_findings findings are explained per run, 40 by default.

Thresholds and CI

bluepencil check measures each file and compares it to the limits under [check]. It prints each violation and exits with status 1 if there are any, 0 if all pass, and 2 on errors.

KeyMeaning
max_echoes_per_1kEchoes per 1,000 words
max_adverbs_per_1k-ly adverbs per 1,000 words
max_filter_per_1kFilter words per 1,000 words
max_hedges_per_1kHedges per 1,000 words
max_tics_per_1kTics per 1,000 words
max_passive_per_1kPassive voice constructions per 1,000 words
max_nominal_per_1kNominalizations per 1,000 words
max_overusedTotal words flagged as overused
max_clichesTotal cliches
max_repeated_starter_runsRuns of sentences with the same opener
max_monotonous_runsRuns of similar-length sentences
max_sentence_wordsLongest sentence
min_mattrMinimum lexical diversity
max_gradeFlesch-Kincaid grade
min_dialogue_ratio, max_dialogue_ratioShare of words in dialogue, from 0 to 1

Severity

Every rule reports at error severity by default, which fails check. Override a rule to warn under [check.severity] in bluepencil.toml to have it printed without failing the run:

[check.severity]
adverbs = "warn"

The key is the rule name (echoes, adverbs, filter, hedges, tics, passive, cliches, overused, and so on, matching the max_*/min_* keys above without their prefix).

Continuous integration

GitHub Actions

To show bluepencil observations at their source locations in a pull request workflow:

name: Prose review
on: pull_request
permissions:
  contents: read
jobs:
  prose:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: writerslogic/bluepencil/.github/actions/bluepencil@main
        with:
          base-sha: ${{ github.event.pull_request.base.sha }}

The action reviews changed Markdown, Fountain, and plain-text files, adds up to 25 location-aware notices, and writes a workflow summary. It builds bluepencil from the action’s source, so the first run takes longer. For a stable production workflow, pin the action to a release commit after publication.

For threshold-based pass/fail gating, configure [check] and run:

- run: cargo install bluepencil
- run: bluepencil check

pre-commit hook

#!/bin/sh
files=$(git diff --cached --name-only --diff-filter=ACM -- '*.md' '*.fountain')
[ -z "$files" ] || bluepencil check $files

Editors

Any editor that understands file:line:column can jump to results. In Vim, :cexpr system('bluepencil echoes') loads echoes into the quickfix list.

VS Code extension

The bluepencil VS Code extension includes the Rust analysis engine as WebAssembly. Install it and open a Markdown, Fountain, or plain-text file: observations appear in the Problems panel as you edit, with no separate binary or account. Check current file reruns it immediately; Run report shows counts and a short review list.

Install from the Marketplace with code --install-extension WritersLogic.bluepencil. You can also download the 0.2.0 VSIX and install it with code --install-extension bluepencil-0.2.0.vsix. To build one from source, install Rust, the wasm32-unknown-unknown target, wasm-pack, and Node.js, then run npm ci and npx @vscode/vsce package in editors/vscode.

For project configuration and full CLI reports, install bluepencil and set bluepencil.cli.enable to true. To use the external language server, install bluepencil-lsp and set bluepencil.lsp.enable to true. See the extension README for settings.

Word lists

bluepencil ships with lists of function words, filter words, hedges, cliches, and common -ly words that are not adverbs. You can extend or trim them in bluepencil.toml:

[lexicon]
filter = ["glanced"]
cliches = ["in the blink of an eye"]
ignore = ["just"]

[lexicon.files]
tics = ["lists/tics.txt"]

List files have one word or phrase per line. Lines starting with # are comments. Matching is case-insensitive and treats curly and straight apostrophes the same.

FAQ

Why does my word count differ from my word processor?

bluepencil counts hyphenated compounds and contractions as one word, like most word processors, but skips headings, code, and markup. Numbers written as digits are not counted as words.

Why MATTR instead of unique words divided by total words?

The raw ratio falls as a text gets longer, so a novel always looks less varied than a short story. MATTR averages the ratio over a sliding window, which makes texts of different lengths comparable.

Does bluepencil send my writing anywhere?

The deterministic commands run locally and make no network requests. facts, voice, scenes, and --explain send manuscript text or finding context to the configured model provider when you explicitly run them. Remote providers require an API key and may charge for requests. check never invokes a model. See Configuration for the model settings.

count

Words, characters, sentences, paragraphs, and estimated reading time, per file with a total row.

bluepencil count chapters/*.md

Add --json for machine-readable output.

outline

The heading tree with word counts per section, so lopsided chapters and scenes stand out.

bluepencil outline manuscript.md

Add --json for machine-readable output.

histogram

Distribution of sentence lengths, paragraph lengths, or sentences per paragraph as a terminal bar chart.

bluepencil histogram --of paragraphs --width 10 --cap 200

Options

  • --of sentences|paragraphs|paragraph-sentences
  • --width N bucket width
  • --cap N values at or above this share the last bucket

Add --json for machine-readable output.

rhythm

A sparkline of sentence lengths, flagging runs of similar-length sentences and sentences that run long.

bluepencil rhythm --bars chapter.md

Options

  • --run N, --tolerance N, --long N override [rhythm] settings
  • --bars prints one bar per sentence with its line number

Add --json for machine-readable output.

freq

Word frequency across all inputs. Common function words are excluded unless you pass --all.

bluepencil freq -n 50 --min-length 4

Options

  • --all include function words
  • --min-length N

Add --json for machine-readable output.

unique

Lexical diversity. MATTR (moving-average type-token ratio) stays comparable across texts of different lengths, unlike raw TTR.

bluepencil unique --window 100

Options

  • --window N MATTR window in words

Add --json for machine-readable output.

hapax

Words used exactly once across all inputs. Useful for spotting typos and one-off word choices.

bluepencil hapax

Add --json for machine-readable output.

repeats

Repeated phrases of several words. Shorter phrases that only occur inside a longer repeat are folded into it.

bluepencil repeats --min 2 --max 5 --locations

Options

  • --min, --max phrase length in words
  • --count N minimum occurrences
  • --locations list every occurrence

Add --json for machine-readable output.

echoes

A content word that reappears within a window of words. Names and places are skipped unless --names is set.

bluepencil echoes --window 30 --summary

Options

  • --window N
  • --min-length N
  • --names
  • --summary group by word

Add --json for machine-readable output.

starters

The most common sentence and paragraph openers, and runs of consecutive sentences that start with the same word.

bluepencil starters --run 2

Options

  • --run N

Add --json for machine-readable output.

tics

Your personal crutch words and phrases from [tics] words in bluepencil.toml.

bluepencil tics --summary

Options

  • --summary

Add --json for machine-readable output.

filter

Filter words such as felt, saw, noticed, and realized, which place a character between the reader and the experience.

bluepencil filter

Options

  • --summary

Add --json for machine-readable output.

hedges

Hedges and intensifiers such as just, really, very, and sort of.

bluepencil hedges --summary

Options

  • --summary

Add --json for machine-readable output.

adverbs

Words ending in -ly, skipping common adjectives and nouns like early, family, and lonely.

bluepencil adverbs

Options

  • --summary

Add --json for machine-readable output.

cliches

Stock phrases from the bundled list plus any you add under [lexicon] cliches.

bluepencil cliches

Options

  • --summary

Add --json for machine-readable output.

passive

Passive voice constructions (a form of “be” plus a past participle), such as “the door was opened” rather than “she opened the door”.

bluepencil passive

Options

  • --summary group by word

Add --json for machine-readable output.

overused

Words used far more often than in general English usage, compared against a bundled frequency baseline.

bluepencil overused --min-ratio 3 --min-count 3

Options

  • --min-ratio N flag a word once it’s used at least this many times more than baseline (default 3.0)
  • --min-count N ignore words seen fewer than this many times (default 3)

Add --json for machine-readable output.

readability

Flesch reading ease, Flesch-Kincaid grade, Gunning Fog, Coleman-Liau, and ARI for each section and the whole document.

bluepencil readability essay.md

Add --json for machine-readable output.

dialogue

How much of the text is dialogue, per file and per section. Markdown and plain text use quotation marks; Fountain uses its dialogue blocks.

bluepencil dialogue

Add --json for machine-readable output.

continuity

Character names that may be the same person spelled inconsistently, clustered across every input file (so a spelling that drifted between chapter 3 and chapter 20 shows up even though neither file alone looks wrong).

bluepencil continuity chapters/*.md

Clusters two proper nouns when they’re a single-letter edit apart (Sara/Sarah), or two edits apart for names over 7 letters. Names of 3 letters or fewer never cluster, since at that length an edit usually produces a different real name (Jon/Ron) rather than a typo.

If a flagged pair is genuinely two different characters, add the name to [continuity].ignore in bluepencil.toml so it stops clustering:

[continuity]
ignore = ["Sara"]

Add --json for machine-readable output.

Scope

This checks spelling and capitalization consistency only. It does not track physical descriptions, timelines, geography, objects, character knowledge, or plot setups/payoffs — those need a human (or an LLM) reading the manuscript for continuity, not a deterministic lexical scan.

cast

Character name mentions per section (chapters, if you use headings for them), most-mentioned first.

bluepencil cast chapters/*.md

Uses the same [continuity].ignore list as continuity to drop names that aren’t characters.

Add --json for machine-readable output.

nominal

Nominalizations: a weak verb plus a noun where a single stronger verb would do, such as “make a decision” instead of “decide”. Matched against a bundled list of common patterns.

bluepencil nominal

Options

  • --summary group by phrase

Add --json for machine-readable output.

tags

Dialogue tags, the attribution verb next to a line of dialogue (“she said”, “Mara snapped”), separated into three buckets:

  • plain – said/asked and their inflections
  • adverb – a plain tag qualified by an adverb (“she said softly”)
  • showy – a more expressive verb standing in for said (“exclaimed”, “snapped”)
bluepencil tags

No parser: a tag is whichever word from the bundled tag lists sits within a few words of the quote, in the same paragraph, so a verb further away or across a paragraph break isn’t found.

Options

  • --summary group by verb instead of location

Add --json for machine-readable output.

speakers

Who speaks and how much, where attribution can be inferred from a nearby dialogue tag. Dialogue with no tag or no nearby name is counted under (unattributed).

bluepencil speakers

Add --json for machine-readable output.

tense

Passages that drift from the document’s dominant tense (past or present). Dialogue is excluded: a character speaking in a different tense than the narration is normal, not drift.

bluepencil tense --run 3

No POS tagger: a sentence is classified by past/present auxiliary verbs (was, is, had, does, …) and regular -ed inflections, so a present-tense main verb with no auxiliary (“she walks”) isn’t detected.

Options

  • --run N flag runs of at least this many consecutive sentences in the non-dominant tense (default 3)

Add --json for machine-readable output.

pov

Passages that drift from the document’s dominant point of view (first, second, or third person). Dialogue is excluded: a character addressing someone as “you” doesn’t change the narrator’s person.

bluepencil pov --run 3

Classified by which set of personal pronouns (I/we, you, he/she/they) appears most in a sentence’s narration; a sentence with none, or a tie, is left unclassified.

Options

  • --run N flag runs of at least this many consecutive sentences in a non-dominant point of view (default 3)

Add --json for machine-readable output.

arc

The manuscript’s pacing shape: a profile per section (chapter, if you use headings for them) of word count, dialogue ratio, sentence rhythm, and style density (adverbs and passive voice per 1,000 words).

bluepencil arc chapters/*.md

Where report gives you one number for the whole manuscript, arc shows where the rhythm changes – a slow, adverb-heavy stretch between two brisk, dialogue-driven ones is invisible in an aggregate but obvious chapter by chapter. Compare two points in the manuscript’s history with git diff on --json output, or by running arc against an earlier revision with git show <rev>:<path> | bluepencil arc -.

Add --json for machine-readable output.

report

Every metric in one summary, with a per-file table when there are several inputs.

bluepencil report --html report.html

Options

  • --html PATH also write a standalone HTML report
  • --trend-since GIT_REF add a word-count and style-flag trend chart to the HTML report, sampled from git history since this commit, tag, or date (requires --html)
  • --trend-points N number of points to sample between --trend-since and HEAD (default 8)
  • --no-cache skip reading and writing the per-file analysis cache

Add --json for machine-readable output.

Caching

report caches each file’s computed metrics in a .bluepencil-cache/ directory next to bluepencil.toml (or the current directory, if there’s no config file), keyed on the file’s content and the config settings that affect analysis. An unchanged file is served from the cache instead of reanalyzed; a changed file, or a config change, invalidates it automatically. The directory is gitignored on creation and safe to delete at any time.

check

Compares each file against the limits in [check] and exits with status 1 if any are exceeded, 2 on errors. See Thresholds.

bluepencil check
bluepencil check --since HEAD~1

Options

  • --since GIT_REF scope line-scoped rules (echoes, adverbs, filter, hedges, tics, passive, cliches, repeated openers, monotonous runs, long sentences) to lines changed since this git ref, rated against the word count of just those lines rather than the whole file. Rules that can’t be meaningfully scoped to a diff (overused, grade, mattr, dialogue ratio) are skipped, noted in the output.

Add --json for machine-readable output.

facts

A continuity ledger. The model reads the whole manuscript, records every concrete claim about a character, place, or object, and reports the places where those claims disagree: eye color that changes between chapters, a sister who becomes a cousin, a knife that was lost in chapter 3 and drawn in chapter 9.

bluepencil facts chapters/*.md
bluepencil facts --ledger

Each reported fact is a quote the model cited. bluepencil then finds that quote in your files and reports its real file:line:column, so a position you see is one you can jump to. A quote the model misremembered is marked quote not found verbatim, and its cited line is shown instead.

Mara / eye color
  ch01.md:12:18  grey
      "her grey eyes"
  ch07.md:88:3  brown
      "Mara's brown eyes caught the light"
  → The eye color changes between chapters 1 and 7 with nothing in the text to account for it.

1 contradictions across 42 facts (use --ledger to list every fact)

Options

  • --ledger prints every fact, sorted by entity and attribute, after the contradictions.

Add --json for machine-readable output; each fact carries verified, and each contradiction indexes into facts.

This command sends the manuscript to the configured model provider; see [model] in Configuration. Results are the model’s reading and vary between runs, so check does not use them.

voice

Does each character sound like themselves? The model reads all the dialogue, writes a short profile of how each speaking character talks as the page actually shows it, and flags lines that break the pattern: a line that sounds like a different character, like the narrator, or like no one in particular.

bluepencil voice chapters/*.md
Voices
  Tom (212 lines)
      Short sentences, heavy contractions, never a word over three syllables. Deflects with jokes.
  Mara (140 lines)
      Full sentences, formal register, no slang. Asks questions instead of stating.

Off-voice lines
  ch09.md:44:3  Tom
      "I find that an indubitably compelling proposition."
      → Latinate and formal; nothing else Tom says sounds like this. It reads as Mara's line.

1 off-voice lines across 2 speaking characters

Each flagged line is a quote the model cited, pinned to its real file:line:column in your files. A quote that cannot be found verbatim is marked and shown at the cited line instead.

Add --json for machine-readable output.

This command sends the manuscript to the configured model provider; see [model] in Configuration. Where attribution can be inferred mechanically, the local speakers command counts who speaks and how much without a model.

scenes

A scene audit. The model splits the manuscript into scenes and, for each one, names what the viewpoint character wants, what stands in the way, and what is different at the end. Then it gives a verdict: keep, tighten, cut, or merge.

bluepencil scenes chapters/*.md

Before the text, the model is given the pacing profile that arc measures locally for each section: word count, dialogue share, and mean sentence length. It is evidence, not a verdict, so a long scene with no dialogue is only flagged when the reading agrees.

scene                 starts        verdict
Platform              ch01.md:1:1   tighten
The letter            ch01.md:88:1  keep
Breakfast, again      ch02.md:1:1   merge

ch01.md:1:1  Platform
    goal      Get on the train before her father arrives.
    conflict  The train is late and he is already on the platform.
    change    She boards knowing he saw her.
    → tighten: The confrontation is done by line 60; the last four paragraphs re-describe the platform.

3 scenes, 2 to look at

Each scene’s start is a quote of its opening words, pinned to its real file:line:column.

Add --json for machine-readable output.

This command sends the manuscript to the configured model provider; see [model] in Configuration.

progress

Word count change per file since a git commit, tag, or date, useful for tracking daily or weekly output.

bluepencil progress --since HEAD~10
bluepencil progress chapters/*.md --since 2026-09-01 --until HEAD~5

Options

  • --since REF earlier commit, tag, or date (e.g. HEAD~10, 2026-09-01) to compare from
  • --until REF later commit to compare to; defaults to the current working tree

Requires running inside a git repository. --until bounds both endpoints to history, which lets it report on a file that was renamed or deleted since --since as long as every input is a literal path (no globs, no stdin).

Add --json for machine-readable output.

wdiff

A word-level diff between two versions of the same text, with net words added and removed. Either argument can be - to read stdin, but not both.

bluepencil wdiff draft-1.md draft-2.md

Added words are wrapped in {+...+}, removed words in [-...-].

Add --json for machine-readable output.

split

Split a manuscript into one file per heading at the given level.

bluepencil split manuscript.md --level 1

Writes numbered, slugified files (01-chapter-one.md, 02-chapter-two.md, …) into a directory named after the input file, or the path given with --out.

Options

  • path the manuscript to split
  • --level N heading level to split at, 1 = #, 2 = ##, … (default 1)
  • --out PATH directory to write the split files into

join

Concatenate manuscript files into one, in the order given.

bluepencil join chapters/*.md --out manuscript.md

Options

  • --out PATH write to this file instead of stdout

init

Writes a commented starter bluepencil.toml in the current directory.

bluepencil init

Options

  • --force overwrite an existing file
  • --genre <novel|essay|screenplay> start from a genre-tuned preset instead of the generic template

completions

Prints a shell completion script.

bluepencil completions zsh > ~/.zfunc/_bluepencil

schema

Prints the JSON Schema for a command’s --json output. Schemas use JSON Schema Draft 2020-12.

bluepencil schema count

Every command with structured --json output is covered: adverbs, arc, cast, check, cliches, config, continuity, count, dialogue, echoes, facts, filter, freq, hedges, histogram, nominal, outline, overused, passive, pov, progress, readability, repeats, report, rhythm, scenes, speakers, starters, tags, tense, tics, unique, voice, and wdiff.

config

Show the effective configuration: built-in defaults merged with the bluepencil.toml in use, and which file that was.

bluepencil config
bluepencil config --json
# effective configuration from /home/me/novel/bluepencil.toml
[project]
files = ["chapters/*.md"]

[echoes]
window = 50
...

The output is valid TOML, so it doubles as a fully expanded starting point: redirect it to a file and edit from there. With --json, the result is an object with path (null when no file was found) and config.