Shrink-anything finds it, deletes it, and runs your own tests after every cut A new open-source tool, shrink-anything, deletes dead code, files, dependencies and duplicate assets and keeps each cut only if the project's own test command still exits 0 with at least as many tests running as before, restoring any breaking cut byte for byte. The tool counts name mentions rather than building a call graph, covers dead code in 19 languages, dead files in Python, JS/TS, PHP, Ruby, Dart and Lua/Luau, and unused dependencies across npm, pnpm, yarn, bun, Cargo, pip and Go modules, and can hand judgment calls such as duplicates and public methods to an agent via --agent claude or --agent codex. On its bundled demo projects shrink-anything cut a TypeScript cart from 106 lines, 5 files and 3 dependencies to 58 lines, 3 files and 1 dependency (−45%), a Python shop from 142 to 86 lines (−39%) and a Go store from 89 to 55 lines (−38%), with the demo app reporting 46% fewer tokens for an agent to read. Less code. Same tests passing. Coding agents write code faster than anyone deletes it. Functions nothing calls, files nothing imports, packages nothing uses, images nothing shows: your agent reads all of it, your CI builds it, your users download it. shrink-anything finds it, deletes it, and runs your own tests after every cut. What passes stays. What breaks is put back. One command, fully reversible. Every line it removes is a line your agent stops reading on the next task. The report counts that too: on the demo app, 46% fewer tokens to read. npm i -g @el4cteo/shrink-anything or: cargo install shrink-anything shrink-anything go --agent claude -- npm test or: -- pytest / cargo test / go test ./... / anything that fails when your app is broken Or step by step: | command | what it does | |---|---| | scan | lists what could go. Changes nothing | | cut --