What It Does
Identifies code smells, duplication, overly complex functions, and dead code across your entire codebase. Proposes clean, safe refactors that improve maintainability without changing behavior. Never breaks existing tests.
Features
- Finds and removes dead/unused code
- Identifies code duplication across files
- Simplifies complex conditional chains
- Extracts long functions into focused units
- Measures cyclomatic complexity
- Ensures all refactors pass existing tests
- Creates atomic commits for each refactor
Triggers
Weekly scheduled run Manual request On file exceeding complexity threshold
Trust Levels
Use Cases
- Paying down tech debt incrementally
- Preparing codebase for new team members
- Pre-refactor before major feature work
Example Prompts
“Find dead code in the project”“Refactor the utils directory”“Simplify complex functions”