quick habit: make your agent write a rollback note before it touches anything
Small habit that saved me a few bad afternoons: before an agent edits or deletes anything, ask it to write a two line rollback note first. What it is about to change, and the exact command that undoes it.
It costs maybe ten seconds. The nice side effect is that the agent often notices mid-note that the plan is bigger than you meant, and shrinks it. Pa