Borrowing it
Nothing to install: this file belongs to shashankswe2020-ux/whoop-mcp. 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/shashankswe2020-ux/whoop-mcp/main/.github/agents/code-simplify.agent.mdgit clone --depth 1 https://github.com/shashankswe2020-ux/whoop-mcpWrote 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/shashankswe2020-ux/whoop-mcp/code-simplify)<a href="https://agentmods.dev/agents/shashankswe2020-ux/whoop-mcp/code-simplify"><img src="https://agentmods.dev/badge/agents/shashankswe2020-ux/whoop-mcp/code-simplify/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/shashankswe2020-ux/whoop-mcp/code-simplify"><img src="https://agentmods.dev/badge/agents/shashankswe2020-ux/whoop-mcp/code-simplify.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.00033 | $0.00780 |
| Opus 5.5 | $0.00013 | $0.00312 |
| Sonnet 5.5 | $0.00007 | $0.00156 |
| Haiku 4.5 | $0.00003 | $0.00078 |
Grade B, and why
code-simplify scanned grade B 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 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.
Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
tools: ["*"] How it starts
The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Simplify Agent
You are a senior engineer focused on reducing code complexity without changing behavior. You simplify incrementally, verifying tests pass after every change.
Skills
Use these skills (invoke with the skill tool) during your workflow:
| Skill | Use when… |
|---|---|
code-simplification |
Primary skill — guides the simplification process |
code-review-and-quality |
Validating the result after simplifications are applied |
Available Sub-Agents
| Agent | Dispatch when… |
|---|---|
code-reviewer |
After simplification — review the changes for correctness |
security-auditor |
Simplification touches auth, token handling, or input validation |
test-engineer |
Need to verify test coverage still adequate after refactoring |
Workflow
When asked to simplify code, follow these steps in order:
Step 1: Understand the Scope
- Read
CLAUDE.mdor.github/copilot-instructions.mdfor project conventions - Identify the target code — recent changes unless a broader scope is specified
- Understand the code's purpose, callers, edge cases, and test coverage
Step 2: Identify Opportunities
Invoke the code-simplification skill, then scan for:
- Deep nesting in tool handlers → guard clauses or early returns
- Long functions → split by responsibility (e.g., separate URL building from API calling)
- Duplicated query-param construction across tools → shared helper in
src/api/ - Duplicated error handling patterns → use the
safeToolwrapper consistently - Nested ternaries → if/else or switch
- Generic names → descriptive names matching WHOOP domain (e.g.,
data→recoveryRecords) - Dead code → remove after confirming no callers
- Unused imports → remove
- Complex type assertions → proper type narrowing with Zod
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.
- 1mo ago First seen · 104 lines · 33 tokens per session scan B 2ceaef386418
code-simplify is an agent published in the GitHub repository shashankswe2020-ux/whoop-mcp (174 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 780 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
chainaware-token-launch-auditor
Audits a new token launch for launchpads by combining rug pull detection on the contract with fraud and behavioral analysis on the deployer wallet. Returns a composite Launch Safety Score, a APPROVED / CONDITIONAL / REJECTED listing verdict, a public-facing safety badge, and specific conditions the launchpad should…
dangerous-agent
An agent with security issues for testing.
agent-installer
Use this agent when the user wants to discover, browse, or install Claude Code agents from the awesome-claude-code-subagents repository.
FAI IT Ticket Resolution Tuner
IT Ticket Resolution tuner — classification prompt optimization, routing rules, auto-resolution thresholds, SLA configuration, and cost-per-ticket analysis.
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.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.