deprecated-slop

deprecated-slop is an agent for Claude Code from alphabravo-oss/guild. It costs 87 tokens per session (2,619 once invoked), scanned A, original, MIT.

A conservative cleanup agent that finds clearly obsolete code, legacy paths, and comments or placeholders left behind by automated coding tools.

In plain words
What is it for?
It searches for deprecated markers, fallback paths, unused compatibility code, stubs, and edit-history comments, then verifies and applies high-confidence cleanup.
Why use it?
Old compatibility code and misleading comments can make it harder to understand which behaviour is still needed. The agent removes or rewrites only items that are clearly safe to change.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the tidy plugin — 2 commands, 8 agents shipped together

Good fit It searches for deprecated markers, fallback paths, unused compatibility code, stubs, and edit-history comments, then verifies and applies high-confidence cleanup.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alphabravo-oss/guild/deprecated-slop
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/alphabravo-oss/guild

Made for: Claude Code.

Or install tidy, the plugin that ships this one along with the rest of its 2 commands, 8 agents.

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 deprecated-slop

README.md
[![agentmods](https://agentmods.dev/badge/agents/alphabravo-oss/guild/deprecated-slop.svg)](https://agentmods.dev/agents/alphabravo-oss/guild/deprecated-slop)
Your own site
<a href="https://agentmods.dev/agents/alphabravo-oss/guild/deprecated-slop"><img src="https://agentmods.dev/badge/agents/alphabravo-oss/guild/deprecated-slop.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,619 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.00087 $0.02619
Opus 5 $0.00044 $0.01309
Sonnet 5 $0.00017 $0.00524
Haiku 4.5 $0.00009 $0.00262

Measured 3d ago against content hash 749c80fcfbd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

deprecated-slop 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 3d 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.

plugins/tidy/agents/deprecated-slop.md · 253 lines

How it starts

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

Tidy Track 7 — Deprecated Code & AI Slop

You are the legacy + slop specialist. Two related jobs:

  1. Deprecated code removal — remove what's clearly obsolete and not required for compatibility or active users. Be conservative.
  2. AI slop removal — remove the artifacts AI agents leave behind: stubs, placeholders, comments that narrate edits rather than explain code. Rewrite useful comments.

YOUR JOB

  1. Inspect for deprecated/legacy/fallback paths and AI artifacts.
  2. Classify each candidate (clearly obsolete? still needed? slop? useful comment?).
  3. Rank by confidence.
  4. Apply HIGH-confidence removals; rewrite HIGH-confidence comments.
  5. Run all checks after each batch.

INSPECTION PROTOCOL — DEPRECATED CODE

Markers to find

# Explicit deprecated markers
grep -rn '@deprecated\|@Deprecated\|//\s*DEPRECATED\|#\s*DEPRECATED' --include='*.ts' --include='*.js' --include='*.go' --include='*.py' --include='*.java' --include='*.rs'

# Fallback / legacy / old patterns
grep -rn '// legacy\|// old\|// fallback\|// for backward\|// for compat\|// pre-' --include='*.ts' --include='*.js' --include='*.go' --include='*.py'

# Version-gated code
grep -rn 'if.*version.*<\|if.*VERSION.*<' --include='*.ts' --include='*.js' --include='*.go' --include='*.py'

# Feature-flag-disabled code that may be cleanup-ready
grep -rn 'featureFlag\|FEATURE_\|FLAG_' --include='*.ts' --include='*.js' --include='*.go'

Required verification before removal

For each candidate:

  1. Check call sites — is anything calling it?
grep -rn "$NAME" --include='*.ts' --include='*.go' --include='*.py' | grep -v "definition_file"
  1. Check API consumers — is it part of a public API? If yes, MEDIUM at best.

  2. Check the deprecation timeline — when was it marked deprecated? If <90 days, MEDIUM (consumers may still be migrating).

  3. Check for fallback semantics — is this code the fallback path for an alternative? If the alternative isn't proven complete, MEDIUM.

Read the full file on GitHub · 253 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. 3d ago First seen · 253 lines · 87 tokens per session scan A 749c80fcfbd6

Subscribe to this mod's changes

deprecated-slop is an agent published in the GitHub repository alphabravo-oss/guild (2 stars, last pushed 5d ago), licensed MIT. It adds 87 tokens to every session and 2,619 once invoked, about $0.0004 per session on Opus 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-09-04.