simplification

simplification is an agent for Claude Code from ncoevoet/claude-review-all. It costs 29 tokens per session (312 once invoked), scanned A, original, MIT.

A code-review agent that looks for ways to make changed code simpler without changing what it does.

In plain words
What is it for?
Use it to review a diff for safe simplifications while preserving all existing functionality.
Why use it?
It identifies unnecessary nesting, dead branches, redundant checks, unclear names, and clever code that is harder to maintain.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the review-all plugin — 1 skill, 12 agents shipped together

Good fit Use it to review a diff for safe simplifications while preserving all existing functionality.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ncoevoet/claude-review-all/05-simplification
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/ncoevoet/claude-review-all

Made for: Claude Code.

Or install review-all, the plugin that ships this one along with the rest of its 1 skill, 12 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 simplification

README.md
[![agentmods](https://agentmods.dev/badge/agents/ncoevoet/claude-review-all/05-simplification/github.svg)](https://agentmods.dev/agents/ncoevoet/claude-review-all/05-simplification)
Your own site
<a href="https://agentmods.dev/agents/ncoevoet/claude-review-all/05-simplification"><img src="https://agentmods.dev/badge/agents/ncoevoet/claude-review-all/05-simplification/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 simplification

Your own site · 80×15
<a href="https://agentmods.dev/agents/ncoevoet/claude-review-all/05-simplification"><img src="https://agentmods.dev/badge/agents/ncoevoet/claude-review-all/05-simplification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 312 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.00029 $0.00312
Opus 5 $0.00015 $0.00156
Sonnet 5 $0.00006 $0.00062
Haiku 4.5 $0.00003 $0.00031

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

Security

Grade A, and why

simplification 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.

skills/review-all/agents/05-simplification.md · 41 lines

What it actually says

Agent 5: Simplification

You review changed code for opportunities to simplify while preserving ALL functionality.

Apply shared severity tiers, 3-question gate, and auto-drop rules from _shared.md.

Inputs you receive: full diff, changed file list, Project Profile, CLAUDE.md rules, Phase 1 gate results.

Principles

  • Never change what the code does — only how it does it
  • Prefer clarity over brevity — explicit beats clever
  • Avoid nested ternaries — prefer switch/if-else for multiple conditions
  • Three similar lines of code beats a premature abstraction

Analysis

  • Reduce complexity and nesting
  • Eliminate redundant code paths and dead branches
  • Improve readability through clearer variable and function names
  • Consolidate related logic spread out
  • Remove comments describing obvious code
  • Simplify defensive code (null checks on non-nullable values)
  • Flag clever one-liners that sacrifice readability

Balance — do NOT flag

  • Helpful abstractions improving organization
  • Code explicit for good reason (safety, clarity)
  • Patterns that are project convention (check 5+ unchanged files)

Return format

List of opportunities, each with: file:line, current code, suggested simplification, measurable improvement (nesting depth reduction, line count reduction, complexity reduction), confidence level.

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 Changed · +1 lines b5759928e491
  2. 9d ago First seen · 40 lines · 29 tokens per session scan A 8e99558df9c5

Subscribe to this mod's changes

simplification is an agent published in the GitHub repository ncoevoet/claude-review-all (25 stars, last pushed 7d ago), licensed MIT. It adds 29 tokens to every session and 312 once invoked, about $0.0001 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.

Related

Other agents, from other repositories

project-auditor

Use for /audit or when no PROJECT.md exists. Auditor + Architect hybrid — stack detection, vulnerability analysis, outdated dependency scan, architectural debt, and a concrete refactoring plan.

avelikiy/great_cto · 41 tokens

legal-reviewer

Legal-services / legal-tech specialist pre-implementation reviewer for legal archetype (law firms, solo practitioners, legal-SaaS). Outputs threat model TM-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

accounting-reviewer

Bookkeeping / general-ledger / financial-close specialist pre-implementation reviewer for fintech and enterprise-saas archetypes. Outputs threat model TM-accounting-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

edtech-reviewer

Education-technology specialist pre-implementation reviewer for edtech archetype. Specialises in COPPA verifiable parental consent, FERPA student-data handling, GDPR-K (digital age of consent), Section 508 + WCAG 2.2 AA accessibility, child-safety content moderation (CSAM hash, NCMEC reporting), and US state…

avelikiy/great_cto · 112 tokens

performance-engineer

Performance specialist. Owns SLO/SLA budget design, load test execution (k6/Locust/Gatling), latency regression analysis, flame graph interpretation, and capacity planning. Runs after senior-dev, before QA. Writes docs/performance/PERF-{slug}.md. Activated when performance-sla is set in PROJECT.md, or archetype is…

avelikiy/great_cto · 83 tokens

procurement-reviewer

Purchasing / source-to-pay specialist pre-implementation reviewer for enterprise-saas and enterprise archetypes. Outputs threat model TM-procurement-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 50 tokens