Claude Code `/code-review --fix` Now Applies Review Findings Directly to Your Working Tree
Claude Code v2.1.152 adds a --fix flag to /code-review, applying all review findings β reuse, simplification, and efficiency improvements β directly to the working tree. /simplify is remapped to invoke /code-review --fix, turning code review from a read-only audit into a one-command refactoring action.
Key Takeaways
/code-review --fixcloses the loop, applying all review findings (reuse, simplification, efficiency) directly to the working tree in a single command./simplifyis back as a convenience alias, routing to/code-review --fixso muscle memory from the pre-rename era still works.- Three distinct review modes now exist:
--fix(apply changes),--comment(post GitHub PR comments), and bare/code-review(display-only audit). - The command is effort-aware, meaning
/code-review high --fixruns a deeper analysis before applying changes than the default effort level. - This is a significant behavioral shift β code review was previously read-only, but now functions as a one-command automated refactoring pipeline.
- The
/simplifyGitHub issue requesting its return (issue #61581) was effectively addressed through this alias, reducing friction for existing users.
Sources & Mentions
5 external resources covering this update
/code-review --fix: From Read-Only Audit to One-Command Refactoring
Claude Code's /code-review command β introduced in v2.1.147 as the successor to /simplify β has received its most significant upgrade yet. With the addition of the --fix flag, developers no longer need to manually act on each finding: Claude Code now applies the suggested changes directly to the working tree after the review completes.
What Changed
Previously, /code-review operated as a purely diagnostic tool. Running it at a given effort level (e.g., /code-review high) would surface correctness bugs, reuse opportunities, and efficiency suggestions, but applying those changes still required manual edits. With --fix, the pipeline becomes fully automated:
- Claude Code runs the review as usual, analyzing the current diff against the full codebase context
- All findings are applied directly to the working tree
- The developer is left with a clean, already-improved diff ready for commit or further review
/simplify Returns β As an Alias
Users who relied on /simplify before it was renamed in v2.1.147 will find that the old muscle-memory path now works again: /simplify has been remapped to invoke /code-review --fix. This is not a restoration of the original /simplify behavior β the old three-agent parallel cleanup is gone β but rather a convenience alias that routes into the new, more powerful implementation.
Practical Impact
The combined workflow is now:
/code-reviewβ review-only; use when you want findings without automatic changes (e.g., before a PR review, or when you want to cherry-pick which suggestions to apply)/code-review --fix//simplifyβ review and apply; use when you trust the analysis and want the working tree updated immediately/code-review --commentβ posts findings as inline GitHub PR comments for team-visible review
This update positions Claude Code's code review as a full refactoring loop rather than just a linting step, making it more comparable to automated codemods while retaining the intelligence of a model-driven review.