One rule I've started following when working with coding agents is to keep database operations separate from regular feature development.
Before making any changes, I want the agent to:
- Inspect the existing schema and migrations.
- Explain what needs to change.
- Never modify existing migrations without approval.
- Avoid destructive database commands.
- Run tests against a separate development database.
Database changes can have consequences beyond a single feature, so I'd rather be extra careful.
What's one safety rule you always include in your AI coding setup?