Ask for the Diff Before a Rewrite
@prranitarora▲ 10 net votes
When a code assistant proposes a broad rewrite, first ask it to show the smallest diff that addresses the issue. Reviewing a focused change helps preserve working behavior and makes the reasoning behind the edit easier to inspect.