HandbookIV the PraetoriumStopping unrelated changes
IVthe Praetorium, Direct the agentStopping unrelated changes
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.
What goes wrong
- 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.
- 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 - 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
Quick check
Sign in to earn +10 XP for itYou asked for a typo fix. The agent also renamed a function and upgraded React. What do you do?