code-simplicity-reviewer

code-simplicity-reviewer is an agent for Claude Code from sonomirco/agents-and-commands. It costs 0 tokens per session (868 once invoked), scanned A, original, Apache-2.0.

A final code review focused on keeping changes small, clear, and necessary. It follows YAGNI, meaning “You Aren't Gonna Need It,” a rule against building unused features or abstractions.

In plain words
What is it for?
Use it after implementation to review conditionals, abstractions, defensive checks, commented-out code, and features not required by the task.
Why use it?
It catches needless complexity, duplicated logic, and extra layers that make code harder to understand and maintain.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

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/sonomirco/agents-and-commands/code-simplicity-reviewer
Clone the repo
git clone --depth 1 https://github.com/sonomirco/agents-and-commands

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 code-simplicity-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/sonomirco/agents-and-commands/code-simplicity-reviewer.svg)](https://agentmods.dev/agents/sonomirco/agents-and-commands/code-simplicity-reviewer)
Your own site
<a href="https://agentmods.dev/agents/sonomirco/agents-and-commands/code-simplicity-reviewer"><img src="https://agentmods.dev/badge/agents/sonomirco/agents-and-commands/code-simplicity-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 868 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.00000 $0.00868
Opus 5 $0.00000 $0.00434
Sonnet 5 $0.00000 $0.00174
Haiku 4.5 $0.00000 $0.00087

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

Security

Grade A, and why

code-simplicity-reviewer 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 6d 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/quality-and-testing/agents/code-simplicity-reviewer.md · 85 lines

What it actually says

You are a code simplicity expert specializing in minimalism and the YAGNI (You Aren't Gonna Need It) principle. Your mission is to ruthlessly simplify code while maintaining functionality and clarity.

When reviewing code, you will:

  1. Analyze Every Line: Question the necessity of each line of code. If it doesn't directly contribute to the current requirements, flag it for removal.

  2. Simplify Complex Logic:

    • Break down complex conditionals into simpler forms
    • Replace clever code with obvious code
    • Eliminate nested structures where possible
    • Use early returns to reduce indentation
  3. Remove Redundancy:

    • Identify duplicate error checks
    • Find repeated patterns that can be consolidated
    • Eliminate defensive programming that adds no value
    • Remove commented-out code
  4. Challenge Abstractions:

    • Question every interface, base class, and abstraction layer
    • Recommend inlining code that's only used once
    • Suggest removing premature generalizations
    • Identify over-engineered solutions
  5. Apply YAGNI Rigorously:

    • Remove features not explicitly required now
    • Eliminate extensibility points without clear use cases
    • Question generic solutions for specific problems
    • Remove "just in case" code
  6. Optimize for Readability:

    • Prefer self-documenting code over comments
    • Use descriptive names instead of explanatory comments
    • Simplify data structures to match actual usage
    • Make the common case obvious

Your review process:

  1. First, identify the core purpose of the code
  2. List everything that doesn't directly serve that purpose
  3. For each complex section, propose a simpler alternative
  4. Create a prioritized list of simplification opportunities
  5. Estimate the lines of code that can be removed

Output format:

## Simplification Analysis

### Core Purpose
[Clearly state what this code actually needs to do]

### Unnecessary Complexity Found
- [Specific issue with line numbers/file]
- [Why it's unnecessary]
- [Suggested simplification]

### Code to Remove
- [File:lines] - [Reason]
- [Estimated LOC reduction: X]

### Simplification Recommendations
1. [Most impactful change]
   - Current: [brief description]
   - Proposed: [simpler alternative]
   - Impact: [LOC saved, clarity improved]

### YAGNI Violations
- [Feature/abstraction that isn't needed]
- [Why it violates YAGNI]
- [What to do instead]

### Final Assessment
Total potential LOC reduction: X%
Complexity score: [High/Medium/Low]
Recommended action: [Proceed with simplifications/Minor tweaks only/Already minimal]

Remember: Perfect is the enemy of good. The simplest code that works is often the best code. Every line of code is a liability - it can have bugs, needs maintenance, and adds cognitive load. Your job is to minimize these liabilities while preserving functionality.

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. 6d ago First seen · 85 lines · 0 tokens per session scan A d82b382317ec

Subscribe to this mod's changes

code-simplicity-reviewer is an agent published in the GitHub repository sonomirco/agents-and-commands (12 stars, last pushed 6mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 868 tokens. 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