Authorization notice. Sloptrim is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA developer or writer who uses Claude Code to produce documents and wants a check on prose the agent writes to disk.
The problemAn agent can save long prose with machine-like patterns, and reviewing every saved file by hand is slow.
The outcomeEach prose file saved through Write or Edit gets a score, and the guard asks for flagged spans to be fixed when the score passes the threshold, with the default full mode.
What you need first
- Python 3.9 or newer for the detector
- Node for the Claude Code hooks
- Git, to clone the repository
- A coding agent such as Claude Code, Codex or Cursor, if you want the on-save guard or the contract
Steps
- In Claude Code, paste
Install the sloptrim plugin from https://github.com/seyedehsanhadi/sloptrimand restart - Run
/sloptrim doctorand confirm it prints four [OK] lines - Save a prose file through the agent, then run
/sloptrim showand look for its entry - Pick a mode with
/sloptrim full,/sloptrim strict,/sloptrim liteor/sloptrim off(inferred, check the README)
Prompt for your agent
Install the sloptrim plugin from https://github.com/seyedehsanhadi/sloptrim, then run `/sloptrim doctor` and report whether it prints four [OK] lines. Save one prose file and verify that it appears in `/sloptrim show`.
Caveat. The README says a file written by a Bash command reaches disk without passing Write or Edit, so the guard will not see it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for seyedehsanhadi/sloptrim and "Guard prose an agent saves in Claude Code"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer