Skip to content

trackbed:code:refactor-pass

Simplify recent changes and clean up AI slop slice by slice without changing behavior; --rewrite redoes mediocre recent work properly.

/trackbed:code:refactor-pass [scope ... | --rewrite]

Perform a refactor pass focused on simplicity after recent changes, including AI-slop cleanup for unnecessary comments, defensive noise, weak typing, over-engineering, and style drift. Use for a narrow cleanup, simplification, dead-code removal, suspected AI-generated code, or an explicit request to redo mediocre recent work properly with --rewrite. Applies Chesterton's Fence, rejects changes that require modifying tests, and keeps the default mode slice-by-slice.