Filed under claude code
1 entry so far. All topics or the field guide.
- No. 21Claude Code Hooks: Block Risky Commands With PreToolUse
Block rm -rf, force pushes and curl | sh in Claude Code with a PreToolUse hook: the settings.json entry, a tested Python script, exit codes and limits.