Re:Claude Code runs Git reset –hard origin/main against proj...
by mr_mitm on Monday March 30, 2026 @03:25AM
(#47571444)
What do you mean? By default, Claude asks for permission for every file read, every edit, every command. It gets exhausting, so many people run it with `--dangerously-skip-permissions`.
[ Parent
| on HN ]
Re:Claude Code runs Git reset –hard origin/main against proj...
by dwb on Monday March 30, 2026 @03:40AM
(#47571539)
It does not ask for permission for every file read, only those outside the project and not explicitly allowed. You can bypass project edit permission requests with “allow edits”, no need for “dangerously skip permissions”. Bash commands are harder, but you can allow-list them up to a point.
Re:Claude Code runs Git reset –hard origin/main against proj...
by nottorp on Monday March 30, 2026 @03:31AM
(#47571478)
> so many people run it with `--dangerously-skip-permissions`
It's on the people then, not the "agent". But why doesn't Claude come with a decent allow list, or at least remember what the user allows, so the spam is reduced?
Re:Claude Code runs Git reset –hard origin/main against proj...
by mr_mitm on Monday March 30, 2026 @03:37AM
(#47571514)
You have the option to "always allow command `x.*`", but even then. The more control you hand over to these things, the more powerful and useful (and dangerous) they become. It's a real dilemma and yet to be solved.