What problem does it solve?
Simplifies and optimizes code to improve readability, consistency, and long-term maintainability while ensuring no behavioral changes are introduced. The emphasis is on making recently modified or review-targeted code clearer and more idiomatic without altering outputs or side effects.
Core Features & Use Cases
- Preserve functionality: Apply refactors that keep all original behavior, outputs, and side effects intact.
- Style and clarity improvements: Normalize naming, reduce nesting, remove redundancy, and follow gofmt and project conventions.
- Focused scope: Prioritize recently modified code or the code under active review to avoid unnecessary global refactors.
- Use Case: Clean up a Go handler with deep nesting and repeated error checks by introducing early returns, clearer variable names, and small helper functions while keeping behavior identical.
Quick Start
Run the code-simplifier on the most recently modified file or snippet and request a behavior-preserving refactor that improves readability and conforms to project style.