When using coding agents for software development, remember to snapshot often (then rebase everything into neat commits once you're ready).
Also, be aware of the sunk cost fallacy; sometimes it's better to abandon the current thread and start over instead of trying to prompt your way out of whatever broken mess of a rabbit hole the agent fell into.