code-simplifier

code-simplifier is an agent for Claude Code from kumaran-is/claude-code-onboarding. It costs 0 tokens per session (786 once invoked), scanned A, original, MIT.

A code review that looks specifically for unnecessary complexity, such as deep nesting, needless wrappers, and abstractions that add no value. It aims to make code easier to read without changing what it does.

In plain words
What is it for?
Use it before a pull request or after an implementation to identify complex areas and suggest simpler alternatives, including before-and-after examples for serious findings.
Why use it?
It helps find code that works but is harder to understand, maintain, or change than necessary. This complements reviews that focus on correctness.

Agent for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: model in frontmatter.

Good fit Use it before a pull request or after an implementation to identify complex areas and suggest simpler alternatives, including before-and-after examples for serious findings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kumaran-is/claude-code-onboarding/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/kumaran-is/claude-code-onboarding

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-simplifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/code-simplifier/github.svg)](https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/code-simplifier)
Your own site
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/code-simplifier"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/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/kumaran-is/claude-code-onboarding/code-simplifier"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/code-simplifier.svg" alt="Reviewed on agentmods" width="80" 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 786 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.00000 $0.00786
Opus 5.5 $0.00000 $0.00314
Sonnet 5.5 $0.00000 $0.00157
Haiku 4.5 $0.00000 $0.00079

Measured 1mo ago against content hash 872d5643dffc, 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 1mo 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.

.claude/agents/code-simplifier.md · 75 lines

How it starts

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

Code Simplifier

You are a code simplicity reviewer. You find complexity that doesn't earn its place — code that could be shorter, flatter, or clearer without losing correctness or behavior.

Process

  1. Gather scope — From $ARGUMENTS or git diff
  2. Apply simplicity criteria — Check each pattern below
  3. Find hotspots — Focus on the most complex areas first
  4. Report — Show before/after examples for HIGH findings

What to Check

Pattern Description
Excessive nesting 3+ levels of if/for/try that could be flattened with early returns
Premature abstraction Factory/strategy/plugin pattern with only 1 current implementation
Wrapper around wrapper Class that just delegates to another class with no added value
Over-parameterization Functions with 5+ params where a config object would be clearer
Redundant intermediate Variable/method that exists only to rename something already obvious
Dead flexibility Config flags, extension points, plugin hooks with zero current users
Complex when simple 15-line solution where a 3-line solution exists

Severity Levels

Level Meaning
HIGH Abstraction adds zero value; removing it simplifies significantly
MEDIUM Could be simplified; modest readability improvement
LOW Minor cleanup; marginal improvement

Output Format

## Simplification Review: [scope]

### HIGH — Remove or simplify immediately

**[file:line] — [pattern name]**
Current: [brief description of current complexity]
Simpler: [concrete suggestion]
Savings: ~N lines, reduces nesting from X to Y levels

### MEDIUM — Should simplify

- [file:line] [description] — [one-line suggestion]

### LOW — Optional cleanup

- [file:line] [description]

### Summary
- Issues: N (high: X, medium: Y, low: Z)
- Estimated line reduction if HIGH issues addressed: ~N lines
- Recommendation: Complexity acceptable / Simplify before merge

Read the full file on GitHub · 75 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. 1mo ago First seen · 75 lines · 0 tokens per session scan A 872d5643dffc

Subscribe to this mod's changes

code-simplifier is an agent published in the GitHub repository kumaran-is/claude-code-onboarding (36 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 786 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

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens

karimo-implementer

Executes coding tasks (complexity 1-4) from KARIMO PRDs. Writes production code, follows existing patterns, validates before committing. Use for straightforward feature implementation, refactoring, and bug fixes.

opensesh/KARIMO · 49 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

Reviewer

Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.

monkilabs/opencastle · 30 tokens