Borrowing it
Nothing to install: this file belongs to mubaidr/gem-team. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/mubaidr/gem-team/main/.apm/agents/gem-code-simplifier.agent.mdgit clone --depth 1 https://github.com/mubaidr/gem-teamWrote 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/mubaidr/gem-team/gem-code-simplifier)<a href="https://agentmods.dev/agents/mubaidr/gem-team/gem-code-simplifier"><img src="https://agentmods.dev/badge/agents/mubaidr/gem-team/gem-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/mubaidr/gem-team/gem-code-simplifier"><img src="https://agentmods.dev/badge/agents/mubaidr/gem-team/gem-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.00021 | $0.00639 |
| Opus 5.5 | $0.00008 | $0.00256 |
| Sonnet 5.5 | $0.00004 | $0.00128 |
| Haiku 4.5 | $0.00002 | $0.00064 |
Grade A, and why
gem-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 8d 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.
This is a copy
88% identical to gem-code-simplifier — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
CODE SIMPLIFIER
Remove dead code, reduce complexity, consolidate duplicates, improve naming. Never add features.
<skills_guidelines>
- Smells: Long param lists, feature envy, primitive obsession, magic numbers, god classes.
- Principles: Preserve behavior; small steps; version control; one change at a time.
- Don't refactor: Working code that won't change; critical code without tests (add tests first); code under tight deadlines.
- Operations: Extract Method/Class; Rename; Introduce Parameter Object; Replace Conditional with Polymorphism; Magic Number -> Constant; Decompose Conditional; Guard Clauses.
- Use extraction/rename/pattern only when smell is evidenced and change measurably reduces complexity without expanding public contract.
- Process: Prefer speed over ceremony; YAGNI; bias toward action; proportional depth. </skills_guidelines>
<output_format>
{
"status": "completed | failed | needs_retry | blocked",
"reason": "string",
"fail": "fixable | needs_replan | escalate | flaky | regression | new_failure | platform_specific",
"handoff": {
"changed_files": ["string"],
"complexity_delta": 0,
"verdict": "pass | fail"
},
"learn": "string"
}
</output_format>
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.
- 8d ago Changed · -1 lines a448818e6257
- 26d ago Changed 9fc5b2c31bb9
- 1mo ago Changed · +6 lines 6feb9b18dba8
- 1mo ago Changed · -30 lines 2ff5a8b6a65d
- 1mo ago Changed · -9 lines cf8c64991d70
- 1mo ago Changed · +1 lines 2a4701c26662
- 1mo ago Changed · +2 lines a29a32e2f941
- 1mo ago Changed · +1 lines 8f33026d8b3d
- 1mo ago Changed · +1 lines 190ec609c1dd
- 1mo ago First seen · 96 lines · 21 tokens per session scan A 46e76b40a117
gem-code-simplifier is an agent published in the GitHub repository mubaidr/gem-team (227 stars, last pushed 8d ago), licensed Apache-2.0. It adds 21 tokens to every session and 639 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to gem-code-simplifier, differing in 0 lines, and is treated as a copy.
Other agents, from other repositories
code-reviewer
A senior review process for proposed code changes. It checks correctness, readability, architecture, security, and performance, and reports actionable findings before merging.
spring-code-reviewer
Phase 7 — pre-commit human-style review against the full diff and validation report. Produce 08-code-review.md and final verdict; block commit on unwaived blockers.
code-auditor
Analyzes implemented code for pattern consistency, maintainability, code duplication, comment quality, and documentation drift.
ipc-contract-auditor
Use when IPC or command-surface drift is possible — after adding, renaming, or removing a Tauri command, a SidecarCommand/SidecarEvent variant, or a tauri-api.ts wrapper, and before merging any branch that touched src-tauri/src/sidecar.rs, src-tauri/sidecar-opencode/src/types.ts, src-tauri/src/lib.rs, or…
code-reviewer-bug
name: code-reviewer-bug description: Specialized code reviewer for bug patterns — null safety, race conditions, resource leaks, logic and error-handling defects. Returns scored findings (severity × impact × confidence). skills: code-review model: inherit.
code-reviewer
Expert code review specialist — quality/correctness/security/performance/testing with severity-ranked findings. Use when reviewer/qa-engineer delegates deep craft or PR explicitly warrants independent verification; opt-in via holistic caller.