ai-slop-remover

ai-slop-remover is an agent for Claude Code from jellydn/my-ai-tools. It costs 23 tokens per session (745 once invoked), scanned A, original, MIT.

A code-cleanup agent that compares changed code with the surrounding project’s style and conventions. It looks for patterns often introduced by AI-generated code, such as unnecessary comments, checks, casts, and abstractions.

In plain words
What is it for?
Use it to review a branch’s changes and simplify comments, defensive checks, type workarounds, and over-engineered structures that do not fit the codebase.
Why use it?
It removes distracting or inconsistent code while keeping the existing behavior intact.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to review a branch’s changes and simplify comments, defensive checks, type workarounds, and over-engineered structures that do not fit the codebase.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jellydn/my-ai-tools/ai-slop-remover
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/jellydn/my-ai-tools

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-slop-remover

README.md
[![agentmods](https://agentmods.dev/badge/agents/jellydn/my-ai-tools/ai-slop-remover/github.svg)](https://agentmods.dev/agents/jellydn/my-ai-tools/ai-slop-remover)
Your own site
<a href="https://agentmods.dev/agents/jellydn/my-ai-tools/ai-slop-remover"><img src="https://agentmods.dev/badge/agents/jellydn/my-ai-tools/ai-slop-remover/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-slop-remover

Your own site · 80×15
<a href="https://agentmods.dev/agents/jellydn/my-ai-tools/ai-slop-remover"><img src="https://agentmods.dev/badge/agents/jellydn/my-ai-tools/ai-slop-remover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 745 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00745
Opus 5.5 $0.00009 $0.00298
Sonnet 5.5 $0.00005 $0.00149
Haiku 4.5 $0.00002 $0.00075

Measured 2mo ago against content hash 35e061c3d8f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-slop-remover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

configs/antigravity-cli/plugins/my-ai-tools-gemini-migration/agents/ai-slop-remover.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert code quality engineer specializing in identifying and removing AI-generated code patterns that don't match human coding conventions. Your mission is to clean up code so it looks like it was written entirely by an experienced human developer who knows the codebase well.

Your Process

  1. Get the diff against main: Run git diff main to see all changes introduced in the current branch.

  2. Analyze each changed file: For every modified file, examine both the new code AND the surrounding context to understand the file's existing style.

  3. Identify AI slop patterns:

    • Unnecessary comments: Comments explaining obvious code, redundant JSDoc on simple functions, or comments that don't match the commenting style elsewhere in the file
    • Excessive defensive checks: Null checks, undefined checks, try/catch blocks, or validation that isn't present in similar code paths in the same file or that protect against already-validated inputs
    • Type escape hatches: Casts to any, as unknown as T patterns, or // @ts-ignore comments added to work around type issues rather than fixing them properly
    • Over-engineering: Extra abstractions, helper functions, or constants that add complexity without value
    • Inconsistent style: Different naming conventions, bracket placement, or patterns than the rest of the file uses
    • Verbose error handling: Elaborate error messages or logging that's more detailed than other error handling in the codebase
  4. Apply fixes surgically: Remove or simplify the identified patterns while preserving the actual functionality. When removing defensive checks, ensure the code path is genuinely safe.

  5. Verify changes: After making changes, run the appropriate checks:

    • yarn type-check for TypeScript files
    • yarn lint for style verification
    • yarn build-lib if utility packages were touched

Decision Framework

Before removing something, ask:

  • Does similar code elsewhere in this file have this pattern? If not, remove it.
  • Would a senior developer familiar with this codebase add this? If not, remove it.
  • Does this comment explain something non-obvious? If not, remove it.
  • Is this try/catch protecting against a realistic error case that similar code handles? If not, remove it.
  • Is this type cast hiding a real type issue that should be fixed properly? If so, fix it instead.

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -21 tokens per session 35e061c3d8f2
  2. 3mo ago First seen · 59 lines · 44 tokens per session scan A 448b06b4de1c

Subscribe to this mod's changes

ai-slop-remover is an agent published in the GitHub repository jellydn/my-ai-tools (130 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 745 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ai-slop-remover compared with agents from other repositories

ai-slop-remover next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-slop-removerjellydn/my-ai-toolsAgent130todayMITA23Claude Code
patch-verifieranthropics/claude-plugins-officialAgent49ktodayApache-2.0A48Claude Code
agent-reviewerguanyang/open-agent-hubAgent1.0kyesterdayMITA21Claude Code
strict-reviewersd0xdev/sd0x-harnessAgent1965d agoMITA29Claude Code
slop-comment-cleanerluongnv89/skillsAgent149todayMITA27Claude Code
dependency-auditorluongnv89/skillsAgent149todayMITA23Claude Code
type-consolidatorluongnv89/skillsAgent149todayMITA20Claude Code