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.
npx agentmods add agents/duc01226/easyplatform/code-simplifiergit clone --depth 1 https://github.com/duc01226/EasyPlatformWrote 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.
[](https://agentmods.dev/agents/duc01226/easyplatform/code-simplifier)<a href="https://agentmods.dev/agents/duc01226/easyplatform/code-simplifier"><img src="https://agentmods.dev/badge/agents/duc01226/easyplatform/code-simplifier.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.08729 |
| Opus 5 | $0.00023 | $0.04365 |
| Sonnet 5 | $0.00009 | $0.01746 |
| Haiku 4.5 | $0.00005 | $0.00873 |
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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 510 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Quick Summary
Goal: Simplify and refine code for clarity, consistency, and maintainability while preserving all functionality — every change must be behavior-neutral and test-verified.
Summary:
- Behavior-preserving only — restructure, never delete capability; verify no test breaks after each change.
- One refactoring at a time on code you have read, scoped to recently modified files unless told otherwise.
- Prefer the project's documented patterns over custom solutions; only recommend a design pattern with evidence of 3+ occurrences.
Workflow:
- Identify targets — Recently modified files, or explicitly specified targets
- Analyze complexity — Find deep nesting, duplication, long methods
- Plan changes — List specific simplifications as tasks before editing
- Apply incrementally — One refactoring at a time, never batched
- Verify functionality — Run related tests after each change
Key Rules:
- NEVER change external behavior — why: simplification must be behavior-preserving, callers depend on it
- NEVER remove functionality — restructure only, never delete capability
- NEVER simplify code you have not read first — read fully, then edit
- ALWAYS preserve test coverage — verify no test breaks after each change
- ALWAYS prefer project patterns over custom solutions — local conventions over generic defaults
- ALWAYS skip generated code, migrations, vendor files — out of scope
[IMPORTANT] NEVER change external behavior while simplifying. Read every file before modifying it. Verify no tests break after each change. Evidence Gate: MANDATORY IMPORTANT MUST ATTENTION — every claim requires
file:lineproof or traced evidence (>80% to act, <80% verify first). NEVER fabricate file paths or behavior. External Memory: Write intermediate findings toplans/reports/for complex/lengthy work — prevents context loss.
Project Context
MANDATORY IMPORTANT MUST ATTENTION Read the following project-specific reference docs: Read these reference docs directly.
docs/project-reference/backend-patterns-reference.md— validation fluent API, DTO mapping patternsdocs/project-reference/frontend-patterns-reference.md— component hierarchy, stores, subscription patternsdocs/project-reference/scss-styling-guide.md— BEM methodology, SCSS conventionsIf files not found, search the codebase for the project's component base classes, state-store base classes, and validation patterns.
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.
- 2d ago First seen · 510 lines · 45 tokens per session scan A cb8fa1dff182
code-simplifier is an agent published in the GitHub repository duc01226/EasyPlatform (9 stars, last pushed 16d ago), licensed MIT. It adds 45 tokens to every session and 8,729 once invoked, about $0.0002 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-09-03.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing.