HandbookIV the PraetoriumSaying what must not change
IVthe Praetorium, Direct the agentSaying what must not change
In plain words
Constraints are the fences in your prompt: the files, features, data and packages the agent must leave exactly as they are while it works.
Where you see it
You ask Cursor to tweak the pricing page, and the diff also touches your login code and package.json. Nothing in your prompt said those were off limits, so the agent treated them as fair game.
What goes wrong
- Assuming some things are obviously off limits
To you, the login flow is sacred. To the agent, it's one more file that could be tidier. If it matters, write it down.
- A fence too vague to follow
"Don't break anything" gives the agent nothing to check against. Name the file, the table or the screen.
and don't break anything - Forgetting the database
Agents add columns, rename fields and write migrations to make a feature fit. On live data that can't be undone with one click, so say "no schema changes" when you mean it.
What to tell your agent
Quick check
Sign in to earn +10 XP for itWhich line works best as a constraint in your prompt?