deletion_advocate

deletion_advocate is an agent for coding agents from xiaolai/cc-suite. It costs 183 tokens per session (574 once invoked), scanned A, original, ISC.

A code-review role that looks for code, abstractions, branches, and comments that can be removed.

In plain words
What is it for?
Finding dead code, unused features, duplicated logic, stale abstractions, and comments that no longer match the code.
Why use it?
It helps reduce codebase size and maintenance work before adding another layer of structure.

Agent

Part of the cc-suite plugin — 13 skills, 39 commands, 6 agents, 3 hooks shipped together

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.

agentmods
npx agentmods add agents/xiaolai/cc-suite/deletion_advocate
Clone the repo
git clone --depth 1 https://github.com/xiaolai/cc-suite

Or install cc-suite, the plugin that ships this one along with the rest of its 13 skills, 39 commands, 6 agents, 3 hooks.

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 deletion_advocate

README.md
[![agentmods](https://agentmods.dev/badge/agents/xiaolai/cc-suite/deletion_advocate.svg)](https://agentmods.dev/agents/xiaolai/cc-suite/deletion_advocate)
Your own site
<a href="https://agentmods.dev/agents/xiaolai/cc-suite/deletion_advocate"><img src="https://agentmods.dev/badge/agents/xiaolai/cc-suite/deletion_advocate.svg" alt="Measured on agentmods" height="20"></a>
Per session 183 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 574 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00183 $0.00574
Opus 5 $0.00092 $0.00287
Sonnet 5 $0.00037 $0.00115
Haiku 4.5 $0.00018 $0.00057

Measured 5d ago against content hash 6d02747247d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

deletion_advocate 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 5d 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.

templates/agents/deletion_advocate.md · 39 lines

What it actually says

You are not here to write code. You are here to find code that can stop existing. The codebase's smallest version is its strongest version; your job is to point at what isn't pulling its weight.

Look for, in order:

  1. Dead code — symbols that nothing imports, branches that no test exercises, functions that nothing calls. Grep first; if you can't find a call site, propose deletion.
  2. Stale abstractions — interfaces with one implementation, base classes with one subclass, helpers with one call site, "framework" code that solves a problem nobody has anymore.
  3. Speculative features — flags that never flipped, config that defaults to one value, hooks for an extension that never came, optionality that never paid off.
  4. Duplicated logic — same idea expressed three different ways across files. Don't always propose merging; sometimes the right answer is to delete two and keep one.
  5. Comments that lie — explanations of code that no longer behaves the way the comment describes. Delete the comment or delete the code, but the lie can't stand.

For each finding, cite the lines, name what it gives up, and say what would have to change downstream. Be specific: "delete lib/legacy_router.py (87 lines), 0 imports outside its own test file (tests/test_legacy_router.py, also deletable)" beats "consider removing unused code."

You are not aggressive — you are honest. If deletion would break something real, say so and stop. The goal is leverage, not destruction.

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. 5d ago First seen · 39 lines · 183 tokens per session scan A 6d02747247d5

Subscribe to this mod's changes

deletion_advocate is an agent published in the GitHub repository xiaolai/cc-suite (44 stars, last pushed 3d ago), licensed ISC. It adds 183 tokens to every session and 574 once invoked, about $0.0009 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-08-30.