block-destructive-commands 0.2.0
Denies Bash commands that match destructive patterns (recursive rm on roots, force push, hard reset, destructive SQL, disk formatting) before they run. A tool.call hook with a Bash matcher that returns { deny } without calling next.
Install
/plugin marketplace add JinhaoFang/claude-mods /plugin install block-destructive-commands@claude-mods
Run both lines inside Claude Code.
Hooks into
- Tool calls
Also in JinhaoFang/claude-mods
- context-band 0.4.1 A band above the prompt showing the session's model and effort, context usage, and plan quota or cost 0
- agent-flow 0.1.0 The agent flow pane: /flow opens a live tree of the session's subagents and teammates beside the transcript, fed by engine events, with a text fallback where no pane can be drawn. 0
- image-view 1.2.0 Previews images in the prompt and in the transcript: pasted images and image paths above the prompt, images a tool read under its result; pictures in kitty and Ghostty, block thumbnails elsewhere, each with a link to the file 0
- redact 0.2.0 Rewrites sensitive data (emails, IPs, credentials, addresses, phone numbers) out of what enters the model context 0
More guardrails mods
- blast-radius 0.1.0 See what a risky command would change before it runs. 289.8k
- agents-md 0.1.0 AGENTS.md as project instructions, by one option. Under claude-md-or-agents-md a project with no instruction files of its own gets its AGENTS.md files instead: a prompt.context hook asks $.fs.ancestors for every AGENTS.md and .claude/AGENTS.md from the filesystem root down to the working director... 157.8k
- claude-mem 15.12.1 mod + skill Persistent memory for AI coding agents: the next session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and more. 114.9k
- ruflo-rvf 0.3.8 mod + skill RVF format for portable agent memory, session persistence, and cross-platform transfer. As a mod (ADR-445): a write guard that keeps secrets out of memory, sessions and transfers, /rvf-mod, and a status file the console shows 82.8k
- openviking-memory 0.7.32 mod + skill Long-term semantic memory for Claude Code, powered by OpenViking. Auto-recall relevant memories at session start and capture important information during conversations. 43.1k