One thing I’ve learned from seriously using AI agents for mundane coding tasks is: never ask them to do anything that involves deleting stuff. Incidents like these only reinforce that belief.
It's like driving assistants, they feel like they can manage but in the end you are responsible.