Safe Mode: Block Destructive Commands in Claude Code
A free Claude Code hook kit that denies rm -rf on broad paths and curl | sh, and asks before force-pushes, hard resets and DROP TABLE. It fails closed.
5 resources tagged “guardrails”.
A free Claude Code hook kit that denies rm -rf on broad paths and curl | sh, and asks before force-pushes, hard resets and DROP TABLE. It fails closed.
Stop rm -rf, curl | sh, force-pushes and DROP TABLE before they run: a tested PreToolUse hook for Claude Code, deny rules, onFailure and the limits to know.
How Claude Code hooks work: lifecycle events, matchers, exit codes and JSON output, plus ready-made hooks for formatting, alerts and blocking risky edits.
CC Safety Net is a Claude Code plugin hook that blocks destructive commands like git reset --hard and rm -rf, plus access to secrets, before a tool call runs.
Hookify is Anthropic's Claude Code plugin that turns plain-language requests into regex-based hook rules stored as Markdown files that warn on or block actions.