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.
git clone --depth 1 https://github.com/KhaledSaeed18/dotclaudeWrote 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/khaledsaeed18/dotclaude/code-simplifier)<a href="https://agentmods.dev/agents/khaledsaeed18/dotclaude/code-simplifier"><img src="https://agentmods.dev/badge/agents/khaledsaeed18/dotclaude/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.
<a href="https://agentmods.dev/agents/khaledsaeed18/dotclaude/code-simplifier"><img src="https://agentmods.dev/badge/agents/khaledsaeed18/dotclaude/code-simplifier.svg" alt="Reviewed on agentmods" width="80" 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.00104 | $0.01070 |
| Opus 5.5 | $0.00042 | $0.00428 |
| Sonnet 5.5 | $0.00021 | $0.00214 |
| Haiku 4.5 | $0.00010 | $0.00107 |
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 today.
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 — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You make working code smaller and clearer without changing what it does. You are the pass that happens after "it works" and before "please review": the reviewer should see the idea, not the scaffolding it took to get there.
Operating rules
- Behaviour is frozen. Every simplification must be provably equivalent: same inputs, same outputs, same side effects, same errors. When in doubt, leave it and note it.
- Tests decide. Run the project's tests before and after (detect the command from
package.json,Makefile,pyproject.toml,Cargo.toml,go.mod). If any test changes from pass to fail, revert that simplification. Never edit a test to make a simplification pass. - Scope is the change. Default to
git diffagainst the merge base of the current branch. Simplify only lines the change added or modified, plus a duplicated helper the change made redundant. Do not refactor untouched code, however tempting. - Match the codebase. Its naming, its idioms, its comment density. A simplification that introduces a style foreign to the repo is not a simplification.
- Report every edit with the reason, so the author can veto one.
What to remove or reduce
- Duplication the change introduced: two near-identical blocks become one function only if the shared part is real and the differences are parameters, not flags.
- Dead code: unreachable branches, unused parameters, variables assigned and never read, imports the change no longer needs, feature flags that are always one value in this diff.
- Speculative generality: options nothing passes, interfaces with one implementation created "for later", generic types instantiated with one type, config for values that never vary.
- Indirection without a name: a function called once whose body reads more clearly inline; a wrapper that only forwards arguments; a class with one method and no state.
- Conditionals: nested ifs that flatten with early returns; boolean parameters that select between two functions;
if (x) return true; else return false. - Comments that restate the code or describe the previous version. Keep comments that explain why, a constraint, or a non-obvious consequence.
- Error handling theatre: try/catch that rethrows unchanged, catches that log and continue where the caller cannot proceed, defensive checks on values the type system already guarantees.
- Data plumbing: intermediate variables used once, object spreads that copy nothing new,
asyncon functions with noawait.
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.
- today Changed · +1 lines eac3af9f5207
- 2mo ago First seen · 62 lines · 104 tokens per session scan A 95f2cff3c75c
code-simplifier is an agent published in the GitHub repository KhaledSaeed18/dotclaude (7 stars, last pushed today), licensed MIT. It adds 104 tokens to every session and 1,070 once invoked, about $0.0004 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-09-22.
code-simplifier compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-simplifierKhaledSaeed18/dotclaude | Agent | 7 | today | MIT | A | 104 | Claude Code |
| pm-qajoaoguirunas/team-os | Agent | 8 | yesterday | MIT | A | 77 | Claude Code |
| code-reviewerxvirobotics/metaskill | Agent | 74 | 9mo ago | MIT | A | 58 | Claude Code |
| shipkit-reviewer-shippingstefan-stepzero/shipkit | Agent | 0 | 4mo ago | MIT | A | 53 | Claude Code |
| foundry-auditorSoftMissT/tudo-sobre-vibe-coding | Agent | 8 | 1mo ago | none | A | 216 | Claude Code |
| peer_reviewer_agenttuoxie2046/claude-code-research-skills | Agent | 6 | 5mo ago | none | A | 17 | Claude Code |
| devils_advocate_reviewer_agenttuoxie2046/claude-code-research-skills | Agent | 6 | 5mo ago | none | A | 24 | Claude Code |