Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By EL4CTEOv0.1.3MITIn 1 marketplace
Removes dead code, unused files and dependencies, keeping each cut only if your own test suite still passes. Without a test command it only scans, and undo restores any cut byte for byte.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Less code. Same tests passing.
shrink-anything finds dead code, files, dependencies and assets, deletes them, and runs your own tests after every cut. What passes stays, what breaks is put back. Fully reversible.
Less code also means less for your agent to read: on the demo app, 46% fewer tokens.

npm i -g @el4cteo/shrink-anything # or: cargo install shrink-anything
shrink-anything go --agent claude -- npm test # or pytest, cargo test, go test ./..., any check that fails when the app breaks
Or step by step:
| command | what it does |
|---|---|
scan | lists what could go, changes nothing |
cut -- <check> | deletes what's dead, runs your check, puts back what breaks |
task --agent claude | hands judgment calls (duplicates, public methods) to your agent; keeps its work only if the check passes |
weigh dist | where a build's weight is: by file kind, heaviest files, duplicates |
verify | runs your check against the test count from before the first cut |
undo | restores the last cut byte for byte (--all for every cut) |
report | markdown + SVG card for your PR |
status · doctor | current state · installed parsers, package managers, agents |
--agent takes claude, codex, or any command that reads a prompt on stdin. Without it, hand .shrink/TASK.md to any agent.

undo restores every file byte for byte.--aggressive.No tests means a scan, not a cut you should trust.
| rule | where | |
|---|---|---|
| dead code | every mention of the name is inside its own definition | 18 languages |
| dead files | no other file names it | Python, JS/TS, PHP, Ruby, Dart, Lua/Luau |
| unused dependencies | nothing imports it or runs its commands | npm, pnpm, yarn, bun, Cargo, pip, Go modules |
| dead weight | images, fonts, sounds nothing names; files stored twice | any project |
| duplicates | the same code twice, however it's named or laid out | 18 languages, merged by your agent |
It counts names instead of building a call graph, so it can miss dead code but never invent it.
Languages: Python, JavaScript, TypeScript, Rust, Go, Java, Kotlin, C#, C, C++, PHP, Ruby, Swift, Dart, Lua, Luau, Elixir, Shell. Other text files (HTML, Vue, Svelte, YAML, SQL, templates) are read for mentions. Adding a language is ~20 lines in src/lang.rs.
Libraries keep their public names. The mode is guessed per language and printed; override with --lib or --app.
Demo projects in examples/, with planted dead code:
| project | before | after |
|---|---|---|
| TypeScript cart | 106 lines, 5 files, 3 deps | 58 lines, 3 files, 1 dep (−45%) |
| Python shop | 142 lines, 8 files | 86 lines, 7 files (−39%) |
| Go store | 89 lines | 55 lines (−38%) |
| Static site (build) | 913 KB | 398 KB (−56%) |

shrink-anything weigh dist
shrink-anything cut --size dist -- "npm run build && npm test"
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub el4cteo/shrink-anything --plugin shrink-anythingPlugins from other owners that cover similar ground