{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "seyedehsanhadi-sloptrim--guard-agent-prose-on-save",
 "repo": "seyedehsanhadi/sloptrim",
 "repo_url": "https://github.com/seyedehsanhadi/sloptrim",
 "repo_slug": "seyedehsanhadi-sloptrim",
 "title": "Guard prose an agent saves in Claude Code",
 "page_title": "How to guard prose an agent saves in Claude Code with Sloptrim",
 "summary": "Install the plugin so each prose file the agent saves is scored and flagged for rewrite.",
 "who": "A developer or writer who uses Claude Code to produce documents and wants a check on prose the agent writes to disk.",
 "problem": "An agent can save long prose with machine-like patterns, and reviewing every saved file by hand is slow.",
 "outcome": "Each 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.",
 "steps": [
  "In Claude Code, paste `Install the sloptrim plugin from https://github.com/seyedehsanhadi/sloptrim` and restart",
  "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",
  "Pick a mode with `/sloptrim full`, `/sloptrim strict`, `/sloptrim lite` or `/sloptrim off` (inferred, check the README)"
 ],
 "agent_prompt": "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`.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/seyedehsanhadi-sloptrim/guard-agent-prose-on-save/",
 "md": "https://dedupedai.com/use-cases/seyedehsanhadi-sloptrim/guard-agent-prose-on-save/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/seyedehsanhadi-sloptrim--guard-agent-prose-on-save.json",
 "api_version": "v1"
}
