News for hackers. Stuff that matters.
Re:Running Claude Code dangerously (safely) by azuanrb on Tuesday January 20, 2026 @08:26AM (#46691598)
One recent example. For some reason, recently Claude prefer to write scripts in root /tmp folder. I don't like this behavior at all. It's nothing destructive, but it should be out of scope by default. I notice they keep adding more safeguards which is great, eg asking for permissions, but it seems to be case by case.
Re:Running Claude Code dangerously (safely) by giancarlostoro on Tuesday January 20, 2026 @09:19AM (#46692068)
If you're not using .claude/instructions.md yet, I highly recommend it, for moments like this one you can tell it where to shove scripts. Trickery with the instructions file is Claude only reads it during a new prompt, so any time you update it, or Claude "forgets" instructions, ask it to re-read it, usually does the trick for me.
Re:Running Claude Code dangerously (safely) by mythical_39 on Tuesday January 20, 2026 @10:16AM (#46692660)
Claude, I noticed you rm -rf my entire system. Your .instructions.md file specifically prohibits this. Please re-read your .instructions.md file and comply with it for all further work
Re:Running Claude Code dangerously (safely) by giancarlostoro on Tuesday January 20, 2026 @10:31AM (#46692829)
IMHO a combination of trash CLI and a smarter shell program that prevents deleting critical paths would do it.

https://github.com/andreafrancia/trash-cli