← Browse
safety-net
kenryu42 ★ 1581
A PreToolUse hook that intercepts and blocks destructive git and filesystem commands (like `rm -rf`, `git reset --hard`, `git push --force`) before execution by parsing command semantics rather than simple patterns, so flag reordering and shell wrappers cannot bypass it. It runs on Windows, macOS, and Linux across seven coding agent CLIs including Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, Kimi Code, OpenCode, and Pi.
Install
> /plugin marketplace add kenryu42/claude-code-safety-net
> /plugin install safety-net
What it's made of
1 skill · 1 hook
- Commands
- 0
- Agents
- 0
- Skills
- 1
- MCP servers
- 0
- Hooks
- 1 · PreToolUse
What it needs & plugs into
- API keys
- none
- Paid services
- none detected
- External tools
node- Talks to
- nothing external detected
Analyzed . Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.
Is this your plugin?
Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (kenryu42).