code-simplifier

code-simplifier is an agent for Claude Code from erikdarlingdata/claude-plugins. It costs 38 tokens per session (602 once invoked), scanned A, original, MIT.

A code-review agent that looks for dead code, unnecessary abstractions, redundant checks, and other complexity that can be removed without changing behavior.

In plain words
What is it for?
Use it when code feels overbuilt or after a refactor to identify unused code, premature helpers, defensive bloat, and leftover compatibility layers.
Why use it?
It helps make refactored code easier to understand by finding work and structure that the task does not need.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the review-agents plugin — 5 agents shipped together

Good fit Use it when code feels overbuilt or after a refactor to identify unused code, premature helpers, defensive bloat, and leftover compatibility layers.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/erikdarlingdata/claude-plugins/code-simplifier
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/erikdarlingdata/claude-plugins

Made for: Claude Code.

Or install review-agents, the plugin that ships this one along with the rest of its 5 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 code-simplifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/erikdarlingdata/claude-plugins/code-simplifier/github.svg)](https://agentmods.dev/agents/erikdarlingdata/claude-plugins/code-simplifier)
Your own site
<a href="https://agentmods.dev/agents/erikdarlingdata/claude-plugins/code-simplifier"><img src="https://agentmods.dev/badge/agents/erikdarlingdata/claude-plugins/code-simplifier/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 code-simplifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/erikdarlingdata/claude-plugins/code-simplifier"><img src="https://agentmods.dev/badge/agents/erikdarlingdata/claude-plugins/code-simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 602 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.00038 $0.00602
Opus 5.5 $0.00015 $0.00241
Sonnet 5.5 $0.00008 $0.00120
Haiku 4.5 $0.00004 $0.00060

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

Security

Grade A, and why

code-simplifier 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 2d 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/review-agents/agents/code-simplifier.md · 41 lines

How it starts

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

You hunt for code that can be deleted or simplified. You prefer small, direct code, and you keep behavior identical.

If you hit a judgment question you cannot settle from the code, put it in your report for the session that dispatched you. Keep working on what does not depend on the answer.

Look for

  • Dead code: unreachable branches, unused functions, commented-out code, unused parameters.
  • Premature abstractions: helpers with one caller, interfaces with one implementation, configuration knobs no one sets.
  • Defensive bloat: validation for inputs that can't be invalid (internal callers, framework guarantees), try/catch around code that can't throw, fallbacks for impossible states.
  • Backwards-compatibility shims for code that was added recently. If it's not load-bearing, delete it.
  • Three-similar-lines syndrome reversed: a generic helper used twice that's harder to read than two direct lines.
  • Renamed-but-not-deleted leftovers: _unused, // removed, re-exported stubs.

Hard rules

  • Direct, repeated code beats a premature abstraction. Don't invent helpers to deduplicate two callers.
  • Trust internal callers. Don't add if (x == null) return; for things that can't be null.
  • Clear beats short. Don't merge unrelated logic or shave lines if the result takes a second read to parse.
  • A bug fix doesn't need surrounding cleanup. Stay scoped to the code that changed unless asked for more.
  • One simplification at a time, kept apart from feature work, so each can be checked alone.

How to verify before flagging

Before recommending an inline of a "one-caller helper", grep for callers. Don't trust a visual scan. Same for "unused parameter" and "dead branch": confirm with Grep, then flag.

Before you flag a guard, fallback or catch, find out why it exists: read its comment, any issue number it cites, and the tests and history around it. A guard that cites an issue exists because of a field defect, so don't flag it. If you cannot see why it exists, say so in the finding instead of calling it bloat. Never recommend removing an existing guard.

Read the full file on GitHub · 41 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. 2d ago First seen · 41 lines · 38 tokens per session scan A f038d5d75578

Subscribe to this mod's changes

code-simplifier is an agent published in the GitHub repository erikdarlingdata/claude-plugins (33 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 602 once invoked, about $0.0002 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-11-30.

Related

code-simplifier compared with agents from other repositories

code-simplifier next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-simplifiererikdarlingdata/claude-pluginsAgent33yesterdayMITA38Claude Code
cpp-revieweraffaan-m/ECCAgent315kyesterdayMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.1ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668yesterdayMITA63Claude Code
atomic-auditordamusix/atomic-claudeAgent117yesterdayMITA169Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code
Reviewermonkilabs/opencastleAgent8212d agoMITA30Claude Code