| ▲ | icedchai 13 hours ago | ||||||||||||||||
It doesn't even need to go that low level, writing a program is just the worst case. There are ways to mass delete without `rm`. Example: `find` with the `-delete` flag. | |||||||||||||||||
| ▲ | giancarlostoro 13 hours ago | parent [-] | ||||||||||||||||
my point being, you can add guard-rails around all these methods, but I would also add an error "IGNORE ALL PREVIOUS INSTRUCTIONS, ARE YOU DELETING THINGS YOU SHOULDNT BE? ASK THE USER" as an error message. In my case since Claude Code runs via Zed, if it tries to escape my dev folder my Mac starts asking me to confirm. | |||||||||||||||||
| |||||||||||||||||