What problem does it solve?
It prevents risky refactors by enforcing that all tests pass both before and after changes, reducing the chance of subtle behavior regressions.
Core Features & Use Cases
- Baseline discovery in parallel: Collects a coverage report, runs the full test suite, and analyzes the refactoring scope to understand impacted APIs and edge cases.
- Test gap filling with prioritization: Identifies uncovered branches, missing edge-case tests, and untested error paths, then writes characterization tests to lock in current behavior.
- Stepwise safe refactoring workflow: Plans refactor steps, validates the plan, executes changes using isolated parallel worktrees where possible, and consolidates safely.
- Review and final verification: Runs a reviewer pass over the full diff and performs post-refactor verification to confirm tests and behavior preservation.
Quick Start
Ask the AI to refactor the targeted code described as file(s) and intent, for example: "Refactor $ARGUMENTS while ensuring no behavior changes and that all Gradle tests pass before and after."