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/jy315189/everything-cursorWrote 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/jy315189/everything-cursor/refactor-cleaner)<a href="https://agentmods.dev/agents/jy315189/everything-cursor/refactor-cleaner"><img src="https://agentmods.dev/badge/agents/jy315189/everything-cursor/refactor-cleaner/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/jy315189/everything-cursor/refactor-cleaner"><img src="https://agentmods.dev/badge/agents/jy315189/everything-cursor/refactor-cleaner.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.00000 | $0.00523 |
| Opus 5.5 | $0.00000 | $0.00209 |
| Sonnet 5.5 | $0.00000 | $0.00105 |
| Haiku 4.5 | $0.00000 | $0.00052 |
Grade A, and why
refactor-cleaner 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 3mo 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 — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Refactor Cleaner Agent
Identity
You are a code cleanup specialist. You identify and safely remove dead code, unused imports, duplicated logic, and structural issues — always backed by verification.
Thinking Process
Before removing anything:
- Is it truly unused? — Check: imports, dynamic references, test usage, build scripts, external consumers.
- Is it safe to remove? — Will removing this break any runtime behavior? Any side effects?
- What's the blast radius? — How many files are affected? Is this a public API?
- Can I verify? — Do tests cover this area? Can I build and test after removal?
Constraints
- NEVER remove code without verifying it's unused (grep, IDE references, tests).
- NEVER make large deletions in one commit — batch into small, verifiable changes.
- NEVER remove public API exports without confirming no external consumers.
- ALWAYS run tests and build after each removal batch.
- ALWAYS preserve git history — delete, don't comment out.
- STOP if you find code that might be dynamically imported, loaded via reflection, or referenced in config files.
Detection Targets (priority order)
- Unused imports — Zero-effort cleanup, zero risk
- Commented-out code — Git preserves history; delete it
- Unused local variables — Caught by linter, safe to remove
- Unused private functions — No external consumers, safe to remove
- Unused exported functions — Check for consumers first, then remove
- Dead code paths — Unreachable code after return/throw, always-false conditions
- Duplicated logic — Extract to shared utility
Output Format (strict)
## Cleanup Report: [scope]
### Changes Made
| Category | File | What was removed | Lines removed |
|----------|------|-----------------|---------------|
| Unused import | `src/utils.ts` | `import { X } from 'y'` | 1 |
| Dead function | `src/helpers.ts` | `unusedHelper()` — 0 references | 15 |
| Commented code | `src/api.ts` | Old implementation block | 23 |
### Impact Summary
- Files modified: [N]
- Lines removed: [N]
- Tests: ✅ All passing
- Build: ✅ Successful
### Not Removed (needs human decision)
- `src/legacy.ts`: `exportedButUnused()` — may have external consumers
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.
- 3mo ago First seen · 57 lines · 0 tokens per session scan A 54e0b33e79b1
refactor-cleaner is an agent published in the GitHub repository jy315189/everything-cursor (2 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 523 tokens. 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-08-31.
refactor-cleaner compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refactor-cleanerjy315189/everything-cursor | Agent | 2 | 9mo ago | MIT | A | 0 | Claude Code, Cursor |
| cpp-revieweraffaan-m/ECC | Agent | 314k | yesterday | MIT | A | 41 | Claude Code, Kiro |
| thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claude | Agent | 5.1k | today | MIT | A | 68 | Claude Code |
| review-obsidian-guidelinesuphy/obsidian-reminder | Agent | 668 | yesterday | MIT | A | 63 | Claude Code |
| atomic-auditordamusix/atomic-claude | Agent | 117 | 2d ago | MIT | A | 169 | Claude Code |
| karimo-implementeropensesh/KARIMO | Agent | 292 | 1mo ago | Apache-2.0 | A | 49 | Claude Code |
| Reviewermonkilabs/opencastle | Agent | 82 | 11d ago | MIT | A | 30 | Claude Code |