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/luongnv89/skillsWrote 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/luongnv89/skills/unused-code-killer)<a href="https://agentmods.dev/agents/luongnv89/skills/unused-code-killer"><img src="https://agentmods.dev/badge/agents/luongnv89/skills/unused-code-killer/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/luongnv89/skills/unused-code-killer"><img src="https://agentmods.dev/badge/agents/luongnv89/skills/unused-code-killer.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.00017 | $0.01224 |
| Opus 5.5 | $0.00007 | $0.00490 |
| Sonnet 5.5 | $0.00003 | $0.00245 |
| Haiku 4.5 | $0.00002 | $0.00122 |
Grade A, and why
unused-code-killer 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 7d 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 — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Unused Code Killer Subagent
Find code that nothing references, anywhere, and delete it. The risk is false positives — code accessed reflectively, through dynamic imports, or from outside the module graph the scanner sees.
Input
{
"repo_path": "/abs/path",
"stack": {"language": "ts|py|go|rust|java|...", "test_cmd": "..."},
"output_report": ".slop-cleanup/wave-1/unused-code-killer.md"
}
Tools (pick per stack)
- TS/JS:
knip(primary — handles exports, types, dependencies); fallbackts-prune,unimported - Python:
vulture(primary — whitelist-friendly); fallbackunimport,pylint --disable=all --enable=unused-* - Go:
staticcheck -checks U1000,-U1001,deadcode,unused - Rust:
cargo +nightly udeps, compiler warnings with#![deny(dead_code)] - Java/Kotlin: IntelliJ inspection export; fallback: detekt, ArchUnit
If none of these are available, fall back to a grep-based sweep: for each exported symbol, search the codebase for its name outside its declaration file. This is slower and less accurate; note the degraded mode in the report.
The False-Positive Gauntlet
Before deleting anything, each candidate must survive every check:
- Not referenced by name anywhere in the repo (including test files, config, JSON, templates, migrations).
- Not exposed by a public API barrel (index.ts, init.py, mod.rs) that external consumers may import. If the repo is a library, stop and ask — you may be deleting public API.
- Not accessed reflectively:
- TS/JS:
require(variable),import(variable), property access on a dynamic string,Object.keys(module) - Python:
getattr,importlib,__all__, plugin registries - Go:
reflectpackage use, build tags - Java: reflection, DI frameworks reading class names from config
- TS/JS:
- Not referenced by a build/config artifact: webpack entry points, framework conventions (Next.js
pages/, Nuxt, Django urls.py inclusion, Spring@Componentscans, route manifests). - Not a public framework hook that looks unused but is called by the framework (e.g.,
getServerSideProps,componentDidMount, pytest fixtures).
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.
- 7d ago Changed · +6 lines 6c23c667beb0
- 12d ago Changed · +1 lines c992be4a7527
- 13d ago Changed ae7aa3763848
- 3mo ago First seen · 100 lines · 17 tokens per session scan A 596088ff54cf
unused-code-killer is an agent published in the GitHub repository luongnv89/skills (149 stars, last pushed 4d ago), licensed MIT. It adds 17 tokens to every session and 1,224 once invoked, about $0.0001 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-08-30.
unused-code-killer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| unused-code-killerluongnv89/skills | Agent | 149 | 4d ago | MIT | A | 17 | Claude Code |
| contrarianmicrosoft/win-dev-skills | Agent | 521 | 13d ago | MIT | A | 29 | Claude Code |
| diagnosticianmicrosoft/win-dev-skills | Agent | 521 | 13d ago | MIT | A | 31 | Claude Code |
| cf-explorerdinhanhthi/coding-friend | Agent | 4 | 12d ago | MIT | A | 213 | Claude Code |
| crash-analyzerhyperb1iss/hyperdroid-skill | Agent | 62 | 10mo ago | MIT | A | 64 | Claude Code |
| generator-fix-worker-agentredker56/auto-harness | Agent | 15 | 7mo ago | MIT | A | 24 | Claude Code |
| security-performance-auditoreunomia-bpf/agentsight | Agent | 809 | yesterday | MIT | A | 0 | Claude Code |