Analyze Dead Code
Detect unused and deprecated code using the dead-code-analyzer agent.
What It Finds
- •Dead Code - Functions, classes, modules, variables never used
- •Deprecated Paths - Code reachable but abandoned or marked for removal
- •Documentation Drift - Code that contradicts README, comments, or docstrings
When to Use
- •"Clean up unused code"
- •"Is this function used anywhere?"
- •"Audit before major refactor"
- •"Check if docs match implementation"
Output
code
### Dead Code Inventory | Location | Type | Confidence | Notes | |----------|------|------------|-------| ### Deprecated Paths | Location | Pattern | Signal | Recommendation | ### Documentation Divergence | Documented Claim | Actual State | Severity | ### Summary - High confidence (safe to remove): X items - Medium confidence (verify first): X items - Priority actions: [list]
Agent
Use subagent_type: dead-code-analyzer