What problem does it solve?
Simplifies sprawling Python modules such as modules/finalization.py that suffer from long, unreadable methods, duplicated boilerplate, and fragile error handling while preserving every log, state change, and exception path.
Core Features & Use Cases
- Method extraction with discipline: Splits routines longer than 80 lines into private helpers with clear responsibilities while keeping orchestrator methods thin and organized.
- Safety-first enforcement: Mandates reading AGENTS/CLAUDE guidance, obeys logging and RBAC state-tracking rules, forbids new dependencies or signature changes, and insists on verification via existing tests.
- Dual operating modes: Offers review-only reports with ranked, risk-tagged opportunities and apply-mode simplifications executed one transform at a time with syntax and behavioral checks.
Quick Start
Ask the assistant to simplify modules/finalization.py while preserving every log message, state transition, and side effect.