What problem does it solve?
It reduces duplicated, overly complex, poorly named, and inefficient code by reviewing recent diffs and simplifying them without changing behavior.
Core Features & Use Cases
- Diff-driven scope and review: identifies changed files and reads them in full to target the exact areas that need cleanup.
- Safety-first refactors: applies mechanical fixes directly, and routes structural changes through a test-net requirement to prevent behavior drift.
- Smell-catalog-guided improvements: concurrently checks for reuse opportunities, code quality issues (DRY, naming, coupling, magic numbers), and efficiency problems (redundant work, missed concurrency, hot-path bloat).
- User-gated structural changes: prompts before applying risky refactors and re-verifies with typecheck and safety tests afterward.
Quick Start
Ask the AI to run code-simplify on your latest changed files to clean up duplication and DRY violations while keeping behavior unchanged.