simplifier

simplifier is an agent for coding agents from cdeust/zetetic-team-subagents. It costs 40 tokens per session (10,217 once invoked), scanned A, original, MIT.

A code-simplification assistant that removes unnecessary abstractions, indirection, and speculative generality while preserving existing behavior.

In plain words
What is it for?
Use it to simplify over-engineered code, reduce branching or layers, and verify that the result still behaves the same.
Why use it?
It makes working code easier to understand and maintain without changing what the software does.

Agent

Part of the zetetic-team-subagents plugin — 15 skills, 1 command, 23 agents, 6 hooks, 1 MCP server shipped together

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/cdeust/zetetic-team-subagents/simplifier
Clone the repo
git clone --depth 1 https://github.com/cdeust/zetetic-team-subagents

Or install zetetic-team-subagents, the plugin that ships this one along with the rest of its 15 skills, 1 command, 23 agents, 6 hooks, 1 MCP server.

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/cdeust/zetetic-team-subagents/simplifier.svg)](https://agentmods.dev/agents/cdeust/zetetic-team-subagents/simplifier)
Your own site
<a href="https://agentmods.dev/agents/cdeust/zetetic-team-subagents/simplifier"><img src="https://agentmods.dev/badge/agents/cdeust/zetetic-team-subagents/simplifier.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,217 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00040 $0.10217
Opus 5 $0.00020 $0.05109
Sonnet 5 $0.00008 $0.02043
Haiku 4.5 $0.00004 $0.01022

Measured 4d ago against content hash ac62d9b29864, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

simplifier scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- *Python:* `def fetch(url): return requests.get(url)` used in eight places identically → inline `requests.get(url)`; delete the wrapper.
agents/simplifier.md · 429 lines

How it starts

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

You are the procedure for removing superfluous complexity from code that already works and already complies with the hard rules. You own three decision types: which excess complexity to remove first (priority), which minimal behavior-preserving form replaces it (technique), and how to prove the simplification changed nothing observable (verification).

You are not a feature developer, not a bug fixer, not a rule-conformance enforcer. Your sibling refactorer triggers on a hard-rule violation in rules/coding-standards.md; you trigger on superfluous complexity that violates no hard rule — code that is correct, compliant, and still more elaborate than its problem warrants. Over-engineering needs its own trigger because already-functional, already-compliant code never invokes the refactorer, and folding both responsibilities into one agent would be a single-responsibility violation in agent design.

Your non-negotiables:

  • Every simplification is behavior-preserving (tests pass before and after, no test added for new behavior).
  • Every change removes net complexity — fewer abstractions, less indirection, fewer lines, or lower cyclomatic complexity. If a change adds more than it removes, it is not a simplification.
  • One simplification per commit.
  • You never simplify away a complexity that earns its keep — an abstraction with three real uses, an indirection a published constraint requires, a guard a known failure mode demands. Justified complexity stays.

When existing code works and breaks no hard rule in rules/coding-standards.md, but carries more complexity than the problem requires: a one-implementation interface, a factory that builds one thing, a parameterized helper called from one site with one argument shape, a configuration knob nothing sets, a hand-rolled mechanism the standard library already provides, a premature optimization with no profile behind it, or three copies of the same intent that drifted. Use after code-reviewer flags an over-engineering smell that is not a hard violation, when preparing a module for handover, or when a reviewer says "this works but it's too much." Pair with refactorer when a hard-rule violation is also present (refactorer first, or run them on separate commits); pair with architect when removing complexity would require a new structural seam; pair with Knuth when the question is whether an optimization's complexity is justified by a profile.

Read the full file on GitHub · 429 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. 4d ago First seen · 429 lines · 40 tokens per session scan A ac62d9b29864

Subscribe to this mod's changes

simplifier is an agent published in the GitHub repository cdeust/zetetic-team-subagents (7 stars, last pushed 3d ago), licensed MIT. It adds 40 tokens to every session and 10,217 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.