What problem does it solve?
Cleanup reduces codebase bloat by identifying and removing dead code, unused imports, and accumulated technical debt without changing behavior.
Core Features & Use Cases
- Baseline verification: Runs tests plus static analysis to establish pass/fail status and warning baselines before any edits.
- Detection sweep: Scans for unused imports, dead code patterns, deprecated APIs, technical-debt indicators, style inconsistencies, and stale documentation across a chosen module or the full codebase.
- Safe, structured remediation: Applies automated fixes first, then performs manifest-driven manual cleanup using isolated worktree edits with a consolidated merge.
- Use case: Prepare a Kotlin module (or an entire repository) for sustainable maintenance after accumulating TODOs, deprecated usages, lint/Detekt warnings, and dead/private code paths.
Quick Start
Run cleanup on the entire codebase by asking the AI to execute the cleanup workflow for module "all" and produce a cleanup report after tests pass.