StoicBuilder

HandbookIV the PraetoriumStopping unrelated changes

IVthe Praetorium, Direct the agent

Stopping unrelated changes

1 min readUpdated 28 November

In plain words

The agent should do the task you set and nothing more, so a request for a button colour doesn't come back as a five-file rewrite.

Where you see it

You ask Cursor to make the Sign up button green. The reply mentions it also "tidied the form logic and renamed a few variables", and the diff covers five files.

Your promptagent
Make the Sign up button green (#16a34a).Change only the button styles in SignUpForm.tsx.If you spot other problems, list them at the end;don't fix them in this change.
Other ideas go on a list for later, not into this change.

What goes wrong

  1. Accepting "while I was there" changes

    Extra changes look generous, but each one is a change you didn't ask for and haven't checked. Undo them, and request any you want as separate changes.

  2. Vague prompts that invite improvements

    "Clean up the page" or "make it better" is permission to change anything. The agent will take it.

    clean up the settings page
  3. Reformatting that hides the real change

    When the agent reformats a whole file, a one-line fix shows up as 300 changed lines, and the change that matters is hard to find.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Change only what this task needs. Don't rename, reformat or reorganise anything else, and list any other improvements you noticed at the end instead of making them.

Quick check

Sign in to earn +10 XP for it

You asked for a typo fix. The agent also renamed a function and upgraded React. What do you do?

Got a prompt that touches stopping unrelated changes?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.