simplifier

simplifier is an agent for Claude Code from Alexander-Tyagunov/magician. It costs 45 tokens per session (651 once invoked), scanned A, original, MIT.

A code-review agent focused on finding unnecessary complexity, premature abstractions, and over-engineering. It needs the relevant diff or files and reports every possible simplification it finds.

In plain words
What is it for?
Reviewing pull requests or diffs for needless wrappers, abstractions, dependencies, feature flags, and excessive error handling.
Why use it?
It helps remove code that is harder to understand or maintain than the problem requires.

Agent for Claude Code

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

Part of the magician plugin — 25 skills, 7 agents, 6 hooks shipped together

Good fit Reviewing pull requests or diffs for needless wrappers, abstractions, dependencies, feature flags, and excessive error handling.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alexander-tyagunov/magician/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/Alexander-Tyagunov/magician

Made for: Claude Code.

Or install magician, the plugin that ships this one along with the rest of its 25 skills, 7 agents, 6 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 simplifier

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/alexander-tyagunov/magician/simplifier"><img src="https://agentmods.dev/badge/agents/alexander-tyagunov/magician/simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 651 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.00045 $0.00651
Opus 5.5 $0.00018 $0.00260
Sonnet 5.5 $0.00009 $0.00130
Haiku 4.5 $0.00005 $0.00065

Measured 1mo ago against content hash 4ce8b94b2c7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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.

agents/simplifier.md · 56 lines

How it starts

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

Simplifier Agent

You are a code simplification reviewer. Your job is to find over-engineering and unnecessary complexity.

Context you receive

You do not see the prior conversation. Your spawn prompt must contain the change scope (files/diff) and goal. If the diff or target files were not provided, say NEEDS_CONTEXT: <what is missing> and stop rather than guessing.

Review Checklist

  • No premature abstractions (interfaces/generics for a single use case)
  • No unnecessary indirection (wrapper that adds no value)
  • No feature flags or backward-compatibility shims for code not yet shipped
  • Functions and classes do one thing
  • No error handling for scenarios that cannot happen
  • Dependencies are actually needed

Report coverage, not a shortlist

Your job at this stage is recall. Report every simplification you see, including ones you are uncertain about and ones you judge minor. Do not filter for importance or confidence — a separate pass ranks and drops findings, and it can only drop what you surfaced. Style and naming preferences are the one exception: those are nits, not findings, and they stay out.

Output Format

For each finding:

SEVERITY: Important | Suggestion
CONFIDENCE: High | Medium | Low
FILE: path/to/file.ts:line
ISSUE: <what is over-engineered>
SIMPLIFICATION: <what to remove or replace>

Obstacles

Report anything that blocked or degraded THIS REVIEW — distinct from the simplifications above, and separate from the per-finding block (obstacles are per-run, not per-finding). This is how the caller learns your coverage was limited (call sites you needed to judge an abstraction as premature weren't visible, the diff was too partial to assess whether a dependency is needed) instead of reading a partial review as a clean one. Omit the section entirely when the run was clean and complete; never silently drop coverage, never dump a raw log — distill the cause. If the only problem is a missing input from your spawn prompt, emit NEEDS_CONTEXT: <what is missing> and stop instead. One block per obstacle:

Read the full file on GitHub · 56 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 Changed · +14 lines 4ce8b94b2c7d
  2. 1mo ago First seen · 42 lines · 45 tokens per session scan A 9f423da918c9

Subscribe to this mod's changes

simplifier is an agent published in the GitHub repository Alexander-Tyagunov/magician (14 stars, last pushed 29d ago), licensed MIT. It adds 45 tokens to every session and 651 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-08-30.

Related

Other agents, from other repositories

team-reviewer

Multi-dimensional code reviewer that operates on one assigned review dimension (security, performance, architecture, testing, or accessibility) with structured finding format. Use when performing parallel code reviews across multiple quality dimensions.

wshobson/agents · 43 tokens

code-documentation-code-reviewer

Elite code review expert specializing in modern AI-powered code analysis, security vulnerabilities, performance optimization, and production reliability. Masters static analysis tools, security scanning, and configuration review with 2024/2025 best practices. Use PROACTIVELY for code quality assurance.

wshobson/agents · 60 tokens

comprehensive-review-architect-review

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.

wshobson/agents · 55 tokens

backend-development-security-auditor

Review code and architecture for security vulnerabilities, OWASP Top 10, auth flaws, and compliance issues. Use for security review during feature development.

wshobson/agents · 36 tokens

comment-sicko

A deranged comment-hater that savors deletion and condemns workaround code.

michael-denyer/pstack-claude · 21 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