News for hackers. Stuff that matters.
Re:Claude Code runs Git reset –hard origin/main against proj... by Jcampuzano2 on Sunday March 29, 2026 @09:12PM (#47569310)
Maybe stop using the CLAUDE.md to prevent it from running tools you don't want it to and just setup a hook for pretooluse that blocks any command you don't want.

Its trivial to setup and you could literally ask claude to do it for you and never have any of these issues ever again.

Any and all "I don't want it to ever run this command" issues are just skill issues.

Re:Claude Code runs Git reset –hard origin/main against proj... by matkoniecz on Monday March 30, 2026 @12:51AM (#47570494)
How that stops Claude from removing hook and then running command anyway?