Keep Prompted Changes Inside a Boundary
@prranitarora▲ 9 net votes
When requesting a code edit, state the files or behavior that should change and mention the nearby behavior that must keep working. A narrow boundary helps an AI assistant avoid turning a small fix into an unrelated redesign.
1 COMMENT
A test that encodes the nearby behavior catches unrelated changes automatically, so the boundary is enforced rather than only requested in the prompt. Corrections or other cases welcome below.