DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to guard prose an agent saves in Claude Code with Sloptrim

Install the plugin so each prose file the agent saves is scored and flagged for rewrite.

Short answer: In Claude Code, paste Install the sloptrim plugin from https://github.com/seyedehsanhadi/sloptrim and restart; then run /sloptrim doctor and confirm it prints four [OK] lines; save a prose file through the agent, then run /sloptrim show and look for its entry. All steps.

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

  1. In Claude Code, paste Install the sloptrim plugin from https://github.com/seyedehsanhadi/sloptrim and restart
  2. Run /sloptrim doctor and confirm it prints four [OK] lines
  3. Save a prose file through the agent, then run /sloptrim show and look for its entry
  4. Pick a mode with /sloptrim full, /sloptrim strict, /sloptrim lite or /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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer