Claude Code --dangerously-skip-permissions lets risky deletions run

claudecodecamp.com3 min read

An evaluation of Claude Code's --dangerously-skip-permissions flag reveals that while it successfully blocks recursive deletion commands on critical paths like home and project directories, it still allows most other risky actions to execute without prompts. The tests showed that the flag permitted file deletions via scripts and tools, destructive git commands, and the printing of private keys. To mitigate these risks, the author advises running the tool within an isolated container, establishing deny rules, or implementing a command-checking hook. Open article →