Who it is forA developer who inherited a codebase full of comments written by an AI agent and wants to remove the noise.
The problemAgent-written code often carries comments that restate the code, add filler, or narrate obvious steps.
The outcomeA numbered findings list of comments to remove or keep, the fixes you approve, and a follow-up Delivery Gate report.
What you need first
- An AI coding agent that antislop supports, such as Claude Code, Codex, Cursor, or Gemini CLI
- A terminal to run the installer command (npx antislop-ai)
- A project folder for the agent to work in
- Optional: a DESIGN.md file that gives the visual direction, since antislop filters and does not supply direction
Steps
- Run
npx antislop-ai --mode afterto save After mode as the preference for audits. (inferred, check the README) - Run
npx antislop-aiand select the antislop-code skill if it is not installed yet. - Start a new agent session in the project folder.
- Ask the agent to audit the comments and give you the numbered findings list.
- Approve the fixes you want, then read the follow-up report.
Prompt for your agent
Using the antislop-code rules from the anti-slop repo (https://github.com/miqdadbadjuber/anti-slop), audit the comments in <project-folder>. Return a numbered findings list, then wait for approval before editing. Verify that no approved fix changes code behavior, only comments.
Caveat. The skill covers comments only, so it does not review logic, and the README does not describe how it handles every language.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for miqdadbadjuber/anti-slop and "Audit existing code and remove AI-slop comments"
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