Originally published at GeekCoding101 .
So, I hit the wall everyone hits with Claude Code. I asked it to refactor a module, went to make coffee, and came back to... a prompt. "Allow npm test ?" Yes. Two minutes later: "Allow git diff ?" Yes. Then mkdir . Then ls .
The flag that makes all of this go away is right there in claude --help , and the name tells you exactly how the Claude Code team feels about it: --dangerously-skip-permissions .
I now run quite a few Claude Code jobs unattended, so I've spent real time on the question this post answers: what does the flag actually do, when is it fine to use, and what should you use instead most of the time?
The screenshots and outputs below come from macOS 26.6 on an Apple Silicon Mac with Claude Code 2.1.302, run in an empty demo folder. Config snippets I took from the docs without running them are marked.…