dead-code-finder — Claude Code plugin for finding and removing dead code
dead-code-finder scans the whole codebase for unused code and helps you delete it. Handy when a project accumulates functions and variables nobody calls anymore.
Apache-2.0 ★ 2,858 updated 2026-05-12
/plugin marketplace add rohitg00/awesome-claude-code-toolkit
/plugin install dead-code-finder@claude-code-toolkitWhat dead-code-finder does
dead-code-finder walks the codebase and flags pieces that nothing references. You can then remove them right inside a Claude Code session instead of hunting through files by hand.
The plugin comes from the rohitg00/awesome-claude-code-toolkit marketplace. Once installed, it works as a slash command within Claude Code.
Be careful before deleting: in dynamic languages a call can go through reflection or a string. The plugin will mark live code as dead in that case, so review the list first.
What it helps with
- Spot functions that are never called
- Find unused variables and imports
- Remove dead code without grepping every file by hand
- Shrink the codebase before a refactor
Example prompts for the agent
- Find dead code in this project and list candidates for removal
- Check the src directory for unused functions and imports
- Show each unused fragment before deleting anything
How to install dead-code-finder
Plugin marketplace
/plugin marketplace add rohitg00/awesome-claude-code-toolkit/plugin install dead-code-finder@claude-code-toolkitStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about dead-code-finder
How do I install dead-code-finder in Claude Code?
Add the marketplace first: /plugin marketplace add rohitg00/awesome-claude-code-toolkit. Then install the plugin itself: /plugin install dead-code-finder@claude-code-toolkit.
What does dead-code-finder do?
It scans the codebase for code that no longer gets used: functions, variables, imports and other fragments with no references anywhere.
Can it delete live code by mistake?
Yes, when a call happens through reflection, a dynamic name or eval. Review the found items before deleting anything.
Source text
dead-code-finder · Apache-2.0
Find and remove dead code across the codebase
© rohitg00 · Apache-2.0 · rohitg00/awesome-claude-code-toolkit