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/shashankswe2020-ux/whoop-mcp/code-simplifygit 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.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.00033 | $0.00780 |
| Opus 5 | $0.00016 | $0.00390 |
| Sonnet 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 6d 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.
- 6d 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 (149 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 780 once invoked, about $0.0002 per session on Opus 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
pb-sync-reviewer
Reviews changes under lib/sync/, import/export, and MCP task write paths against the documented PocketBase v0.23+ gotchas plus prior Codex adversarial data-loss findings. Read-only. Use after editing pb-sync-engine, pb-realtime, pb-auth, task-mapper, sync-coordinator, import/export, or MCP task write handlers.
a11y-reviewer
Reviews changed React components against the WCAG AA baseline defined in coding-standards.md Part 2. Read-only — returns findings, does not rewrite code. Use after editing any .tsx/.jsx file in components/ or app/.
builder
The local scheduled builder is disabled. scripts/builder-run.sh is an inert tombstone and .claude/commands/build-next.md refuses all issue and repository operations.
night-shift
The scheduled night shift no longer executes pull-request code. With GSDTRIAGEBOTLOGIN configured, scripts/triage-run.sh may perform read-only discovery of failing claude/ pull requests, but it never creates a worktree, checks out a head, invokes Claude, or runs branch-controlled build tools.
domain
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
triage-labels
The skills speak in terms of five canonical triage roles. This file maps those roles to the actual label strings used in this repo's issue tracker.