Listed from the MCP registry; nobody on Odel publishes it.
Offline self-checking to reduce AI-style wording in source code and documentation.
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
docker run -i --rm ghcr.io/stokaro/unswell-mcp:0.1.0-alpha.25
MCP client config
{
"mcpServers": {
"unswell": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/stokaro/unswell-mcp:0.1.0-alpha.25"
]
}
}
}A linter for lean English, built to reduce AI-sounding prose.
Unswell's main motivation is to keep formulaic AI-style wording from leaking into source code and documentation. AI-assisted work often leaves such wording behind: conversational preambles, generic claims of importance, inflated modifiers and repeated setup. Unswell finds these patterns in prose and explains what to revise before the text reaches a commit or a published document.
The checks apply to text regardless of its author: they enforce a chosen editorial
policy through concrete findings and explainable scores. The checker runs locally as
a Go library and CLI and sends source text nowhere. Three further commands,
unswell review, unswell trim, and unswell compare, read a document with a
model you name; see Review and trim with a model.
Unswell is not an authorship detector. A clean scan of a generated text is a correct result, and a finding on a human-written text is a finding about the wording. No score is a probability that a tool wrote the text; see ADR 0037 for the goal and its non-goals.
Development alpha. The published release is v0.1.0-alpha.25. Stage 2 features
include custom rules, baselines, and checks of changed code; Go tools can train,
calibrate, and load models.
Rules and defaults remain experimental; no editorial model has met the criteria for use in the product. Revision probability is unavailable until a labeled corpus and compatible calibration model meet the later acceptance criteria; see the acceptance audit for features, release evidence, and work still open.
unswell check applies fixed rules offline: announcements, stock phrases,
repetition, a page that leans on em dashes. The strict profile adds wordy
constructions, long sentences, and emoji in headings. It explains each finding,
gives the same result on every run, and can fail a build on wording your
project has decided to refuse.
unswell check also gives each Markdown or MDX page an
AI-sounding index from 0 to 100 and lists the
marks behind it: em dashes, emoji in headings and list items, arrows, stock
words, bold labels in lists. On pages from before a commit that removes
AI-sounding wording, set against README files written before November 2022,
the index separates the two with an AUC of 0.87, and 3.9% of those
README files reach its high level. unswell fix removes the marks that have
a mechanical replacement, without a model. On 250 pages that no earlier
measurement had read, blind model judges found the page after unswell fix
the less AI-sounding one against the original on 231 of 233 decisive pages,
and against a page fixed with the findings of a third-party linter on
146 of 209. A model that follows the report of unswell check gave
111 of 113 and 73 of 108 on 131 more such pages.
The index also reads the rhythm of the sentences, for a page that a model
wrote under a style guide and that has none of those marks: plain statements
of one length in a row, each opening with its subject. Against human blog
posts written before November 2022 it separates such posts with an AUC of
0.87 to 0.99, where the marks alone gave 0.25 to 0.28. When gpt-6-astra
revised 179 such pages by the report, blind model judges found the page more
like a model's than its revision on 153 of 178 decisive pages.
unswell review gives a document to a model you name, which reads it in
context and flags sentences to tighten. Unswell binds each flag to the exact
place in the source and drops a flag that does not quote its sentence.
unswell trim asks a model for sentences with empty words removed and keeps a
proposal only if it deletes words and nothing else. It changes a file only when
you ask.
On answers that chat models gave to instructions and that experts then
edited, the words that unswell trim removes are words the expert also
removed or replaced in 71.2% and 68.0% of cases with two trimming models,
against 62.7% and 59.3% for random words of the same sentences. Removing
them brings the text nearer to the expert's version than removing random
words of the same sentences does, by 0.13 and 0.15 words per removed word.
How each part was measured is in the documentation of review and trim.
Build with the minimum Go version declared in go.mod:
go build -o bin/unswell ./cmd/unswell
bin/unswell config init --profile technical
bin/unswell check README.md docs/
bin/unswell fix README.md docs/
Install the published alpha without Go through the Homebrew tap:
brew install stokaro/unswell/unswell
A separate GitHub Action runs pinned release archives and writes JSON/SARIF reports; see installation and release verification for availability and platform checks.
For example, this introduction:
It is important to note that the client retries a request only after a connection failure.
produces filler.announced-importance. A direct version preserves the condition:
The client retries a request only after a connection failure.
Use the strict profile to make the introductory phrase a hard policy violation:
printf '%s\n' 'It is important to note that the client may retry.' |
bin/unswell check --stdin --filename draft.md --profile strict
Fixed rules name constructions. unswell review asks a model you name to read
each document in context, binds its flags to source bytes, and drops a flag
that does not quote its item:
bin/unswell review README.md docs \
--endpoint https://api.example.com/v1/chat/completions \
--model example-model --api-key-env REVIEW_API_KEY
A local program that reads a prompt on standard input works as well, and a second model can shorten the list.
unswell trim proposes sentences with words removed:
docs/guide.md:3:1: trim
- These features significantly improve the ability to type-check your code.
+ These features improve the ability to type-check your code.
A proposal is shown only if a deterministic check passes: no word is added,
replaced, or moved, at least half of the sentence remains, and no negation,
number, modal word, code, or link is removed. --write applies the trims to the
files.
unswell compare checks a revision of a page. A judge reads the opening of the
page and of the revision without a hint of which is which, in both orders. The
revision is accepted only when the judge names the page both times, the
statements and the sentences of the page are still in the revision, no
number, code, or link is lost, and no em dash is added. Without a model, the
command itself compares the sentences:
bin/unswell compare docs/guide.md docs/guide.revised.md \
--endpoint https://api.example.com/v1/chat/completions \
--model example-model --api-key-env REVIEW_API_KEY
It exits with 1 for a rejected revision; the page index plays no part in it.
With --require kept it accepts a revision that loses nothing, whatever the
judge hears in the blind comparison.
The three commands send the texts you select to the model you name and to nothing else. The output of review and trim is advisory and never fails a build; see review in context, trim, and compare.
One analysis can write all five reports:
bin/unswell check README.md docs/ \
--report text:- \
--report json:artifacts/unswell.json \
--report sarif:artifacts/unswell.sarif \
--report html:artifacts/unswell.html \
--report markdown:artifacts/unswell.md
Add --include-source to retain snippets and highlighted paragraphs in saved
reports (source text is omitted by default). Reports can contain internal prose;
choose artifact access accordingly.
bin/unswell report artifacts/unswell.json --format html --output artifacts/review.html
bin/unswell explain README.md --at 3:1
bin/unswell rules list
bin/unswell rules show repetition.near-sentence
bin/unswell rules test
bin/unswell config validate
bin/unswell config explain --file README.md
bin/unswell doctor
Exit codes: 0 for a complete pass, 1 for a complete policy failure, 2 for
operational errors or incomplete analysis, and 130 for cancellation. An empty
scan fails unless explicitly allowed. --no-gate permits advisory checks while
preserving operational errors. Display filtering never changes the gate. A rule
that exhausts its candidate budget abstains on that document with the reason
budget_exhausted; the report lists the abstention and the other rules' findings
stay.
The index uses points from 0 to 100. Every local score includes its contributing rules, activations, deduplication decisions and caps; a clean paragraph cannot reduce another paragraph's score. The tool makes no authorship or factuality claim.
Inputs include plain text, Markdown/GFM, MDX, and comments and string literals in Go,
JavaScript, TypeScript/TSX, Python, Rust, Java, C/C++, C#, YAML, Bash/POSIX sh, Zsh's common
shell syntax, Fish and PowerShell. Markdown uses block and inline grammars.
See formats and extraction limits for extensions and dialect details.
For stdin, provide --filename or a supported --format. Coordinates use original
UTF-8 byte ranges; columns are one-based Unicode code points.
Recursive Git scans select tracked files, while explicit files may be untracked and bypass recursive include/exclude patterns. Outside Git, directories use a bounded filesystem walk; inputs must remain within the current project root. Symlinks are not followed during discovery. Unsupported explicit formats fail.
The CLI reads the nearest .unswell.yaml up to the project root, or the exact file
named by --config; it reads no home configuration. Local inheritance, ordered file
overrides, and shared term dictionaries use one
configuration plan in the CLI, library, and MCP server.
Add team policies with custom rule packs: load them through
--ruleset or inline rule_sets, and execute their examples with unswell rules test.
Select checked contexts (globally or per language) with the
extraction policy. Use reasoned exceptions for intentional
examples, dictionaries and other text that should remain outside an editorial check.
Exceptions can select paths, languages, comments or strings, and named string owners.
AI assistants can call the same engine through the separate MCP server;
its tools check supplied drafts and expose the fixed policy. make dogfood-mcp
verifies repository checks through a real MCP client and subprocess.
Separate CLI and MCP containers support Linux AMD64 and ARM64
(including repository checks through both interfaces in CI). Both images are public
in GHCR, and Docker Hub mirrors the release with matching digests.
version: 1
extends: [builtin:technical-v1]
language: en
calibration:
model: none
rules:
filler.announced-importance:
enabled: true
severity: error
gate: forbid
policy.banned-phrases:
parameters:
phrases: ["leverage synergies"]
positions: [any]
A phrase position is any, sentence-start, document-start, prose-start
(the first sentence after the leading headings), or document-end.
Available profiles are technical, strict, minimal, business, reference
and custom; each also accepts a -v1 suffix. Unknown settings, duplicate keys,
unsupported rule parameters and unavailable model names fail before analysis.
engine, err := unswell.New(unswell.Options{})
if err != nil {
return err
}
result, err := engine.Analyze(ctx, document.Source{
Name: "draft.md",
Format: document.Markdown,
Bytes: draft,
})
if err != nil {
return err
}
return report.Write(writer, "json", result, report.Options{})
The external consumer implements a custom rule using only public packages; see the API policy for supported imports and ownership contracts. Go rules are trusted code and must support concurrent calls.
Unswell checks its own README, documentation, Go code and Bash scripts with the committed
strict repository policy. Run make dogfood (or make check for
all checks). CI runs the same gate and uploads all five report formats. A negative
CLI probe must fail with exit code 1, proving the policy is active. Third-party
licenses and test-data documents are outside this editorial policy; inline code
and fenced examples use the normal extractor's protected boundaries.
The policy excludes deliberate fixture strings and catalog data with recorded reasons;
comments and runtime strings remain checked. Bash also passes syntax, ShellCheck
and shfmt checks (including negative probes for each gate).
Reasoned source suppressions permit individual rule findings
while retaining raw evidence, scores, and an audit record across CLI and MCP.
Explicit baselines accept existing debt without removing findings
or changing scores; the new gate checks new findings and changed scored units.
Committed changed-unit checks compare merge-base to HEAD (with
clean-source verification) and retain whole-document repetition context.
Use trusted policy to apply merge-base rules and baseline
while auditing candidate policy changes and new source permissions.
Through the same engine, the public Go analysis adapter and
its prototype vet driver check comments and strings.
The contextual editorial catalog adds opt-in filler,
hype, and rhetorical-pattern checks with explicit evidence and technical counterexamples.
The repetition catalog adds bounded phrase, POS-template,
paragraph, heading, and summary comparisons (with measured overlap evidence).
With explicit counting protocols and protected boundaries, the
surface catalog adds opt-in syntax, readability, and
formatting measurements.
The research pipeline that fits and evaluates those models is a separate
developer workflow; see training and evaluation.
The active roadmap improves contextual diagnostics and checks
them on real technical prose. This alpha claims neither human qualification nor
calibrated revision probabilities; both remain deferred under ADR 0037, with their
original requirements preserved.
Thresholds are initial editorial policy, not measured precision or confidence. POS-based chunks are surface candidates, not grammatical dependencies; lexical overlap is not a claim of semantic equivalence. Code, URLs, front matter, directives and quoted Markdown blocks are excluded from ordinary prose checks.
Code is MIT licensed; runtime dependencies and the embedded English model have their own notices. No scan downloads rules, sends prose to a service or requires Python, Node.js, a server, an API key or cgo.