ai-tell-lint: a linter for prose that sounds machine-written
For two months a private hook has stopped my agents from shipping commit messages and PR bodies full of stock AI phrasing. I've published it as a Claude Code plugin, a CLI and a GitHub Action. Here's what it catches and what the log taught me.
On this page
Agents now write a large share of the text my teammates read: commit messages, PR titles and bodies, issue comments, docs. Readers spot the machine phrasing within a sentence or two, and once they spot it they skim the rest. A PR body that opens with a stock flourish gets less review than a plain one, which is the opposite of what a PR body is for.
For two months I’ve run a small Claude Code hook that stops this text before it leaves my machine. When an agent tries to commit, open a PR or write a Markdown file, the hook reads the text, and if it trips a rule the tool call is denied with the exact spans to fix. The agent rewrites and tries again. It costs one extra turn, and after the first week I stopped noticing it.
The timing is what makes it work. A check on the pull request finds the tell after the text is pushed, and then someone has to go back and rewrite it. Blocking the tool call means the bad version never gets written down anywhere, and the agent fixes it while it still has the context.
Today I’ve published it: ai-tell-lint on GitHub, MIT licensed, Python 3.9 or newer, standard library only, no network calls.
What it catches
The rules are regular expressions in a JSON file, grouped into categories with two tiers. A block hit fails. A warn hit is reported and never fails on its own. The main block categories:
- AI vocabulary, the words that turn up far more often in model output than in human writing:
delve,tapestry,testament,pivotal,seamless. - Filler connectors such as
MoreoverandFurthermoreat the start of a sentence. - Negative parallelism, the
it's not just X, it's Yconstruction. - Puffery and editorializing:
game-changer,it's worth noting. - Em dashes, counted per 150 words. One is fine. Five in a paragraph is a signature.
Before matching, it strips code blocks, inline code, URLs, frontmatter and commit trailers. That matters more than any single rule. A linter that flags the word leverage inside a code sample gets uninstalled on day one.
Here’s what an agent sees when it trips a rule:
Blocked: this issue, PR or commit text reads like AI-generated text.
Must fix:
- AI vocabulary: "delve"
Rewrite the flagged spans in plain, specific words and retry.
Swapping one word for a synonym defeats the check: change the sentence.
The second-last line is there because the first thing a model does when told a word is banned is reach for its nearest synonym. What needs to change is the sentence around the word.
Three ways to run it
Claude Code plugin
Two commands, and every session after that checks commit messages, gh issue, PR and release text, and writes to .md, .mdx, .txt and .rst files:
/plugin marketplace add omaraelhawary/ai-tell-lint
/plugin install ai-tell-lint@ai-tell-lint
The hook fails open. If anything goes wrong inside it, it exits 0 and gets out of the way. A writing check should never stop real work because of its own bug.
CLI
Run ai-tell-lint README.md, or pipe text on stdin. It exits 0 when clean, 1 on a block hit and 2 on a usage or config error. That last code is deliberate. In CI, a silent pass on a broken config would hide the breakage.
GitHub Action
It’s listed on the GitHub Marketplace. It checks the PR title and body, the commit messages, and the lines the PR adds in prose files:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: omaraelhawary/ai-tell-lint@v1
Hits show up as annotations on the exact line, and nothing gets posted to the PR thread:

Two decisions here came from thinking about a stranger’s first PR. Only added lines count, so an old README full of Moreover never fails someone who fixed a typo. And the config is read from the base branch, so a PR can’t add a config file that switches off the check gating it.
What two months of logs said
My private version logs every block. Before publishing I counted them: 1,951 blocks in 51 days.
Three quarters of them were on the agent’s replies to me in the terminal. That check is useful to me, because I read those replies all day and the tells wear me down. For anyone else it’s the check most likely to feel like nagging, and people uninstall tools that nag. So in the public version, reply checking is off by default and turns on with "check_replies": true. Commits, PRs and files stay on.
The em dash rule caused more blocks than every other rule combined. Models reach for them constantly.
The log also shows the false positives. harness is on the vocabulary list, and it blocked me 93 times, often in text about Claude Code, where it’s the normal technical term. A rule that’s wrong for your domain should be easy to quiet without forking the whole list, so the config merges over the defaults instead of replacing them. You can add your own patterns, drop a category with "disable", or demote one to a warning with "warn_only".
Bugs the build turned up
Two are worth telling, because both were the kind a quick port would ship.
The first was in the pull request diff. Diffing against the tip of the base branch counts lines that main changed after the PR branched off, so a stranger’s PR could fail on a line someone else wrote yesterday. The fix is the three-dot form, which diffs against the merge base, plus a test where main deletes a line after the branch point.
The second was the off switch. Prefixing a command with AI_TELL_LINT=off skips the check for that one command. The first version found that prefix with a regex over the raw command, which meant git commit -m "fix: x; AI_TELL_LINT=off y" switched off its own check. The text after the semicolon sits inside quotes, and the regex had no idea. An agent could write that without meaning to. The fix tokenizes the command the way a shell would and only counts an assignment at the start of a real command.
Other tools that do this
I’m not the first person to write regexes for this, and you should know the alternatives.
vale-ai-tells is a style package for Vale, the established prose linter. If your team already runs Vale, start there. Its repo description is written entirely in the tells it catches, which is the best demo of the problem I’ve seen.
ai-slop-linter is a GitHub Action that lints PR text and changed Markdown with line annotations and one sticky review comment. On pull requests it covers much the same ground as mine.
Where ai-tell-lint differs is the Claude Code hook, which stops the agent before it commits instead of reporting afterwards, and the lack of dependencies. All three share the same limit: a word list catches the cheap tells, and a model can rephrase its way past any of them. What they do well is make the laziest phrasing harder to ship.
Try it
If your agents write text other people read, install the plugin and leave it on for a week. Then look at what it blocked. If a rule fires on something that was fine, open an issue with the sentence. False positives are the bug I care most about.
Code: github.com/omaraelhawary/ai-tell-lint. Action: GitHub Marketplace listing.
Omar ElHawary
Applied AI Engineer. I build and evaluate AI agents that act on real business data.
Working on AI that has to be right?
Let's talk