
Kenryu42 Claude Code Safety Net
- 1.5k repo stars
- Updated July 27, 2026
- kenryu42/claude-code-safety-net
kenryu42-claude-code-safety-net is a Claude Code plugin that hooks command execution to block destructive git and filesystem operations before they run.
About
kenryu42-claude-code-safety-net is a Claude Code plugin that registers a coding-agent hook to act as a safety net against destructive git and filesystem commands. developers who let Claude run shell and git tools need guardrails: one mistyped rm -rf, git reset --hard, or force-push can erase hours of work or pollute main. This plugin catches those classes of commands before they execute, shifting security left into every session rather than relying on manual review after the fact. It is intentionally narrow compared to full workflow bundles—one plugin, one job—making it easy to adopt alongside other skills. Install it when you routinely grant file and git permissions to the agent during build and ship. It complements code review and testing plugins by preventing irreversible damage in the first place. Complexity is beginner-friendly: enable the hook and let it filter risky invocations automatically.
- Hook-based safety net that runs before tool execution in Claude Code
- Blocks destructive git operations before they mutate history or remotes
- Blocks dangerous filesystem commands before data loss
- Lightweight single-plugin install focused on command interception
- Community-maintained guardrail for everyday agent sessions
Kenryu42 Claude Code Safety Net by the numbers
- Data as of Jul 28, 2026 (Skillselion catalog sync)
/plugin install kenryu42-claude-code-safety-net@kenryu42/claude-code-safety-netAdd your badge
Show developers this plugin is listed on Skillselion. Paste this into your README.
| repo stars | ★ 1.5k |
|---|---|
| Last updated | July 27, 2026 |
| Repository | kenryu42/claude-code-safety-net ↗ |
What it does
Add a Claude Code hook that intercepts and blocks destructive git and filesystem commands before the agent can run them.
Who is it for?
Best when you enable bash and git tools for Claude Code and want a default deny layer for catastrophic commands.
Skip if: Projects that need broader policy engines, team-wide audit logging, or non-Claude agent runtimes without hook support.
What you get
After install, risky destructive commands are intercepted by the hook so sessions fail safe instead of silently damaging your project.
- Active safety hook on agent command pipeline
- Blocked destructive git and filesystem invocations
- Reduced risk of accidental data or history loss during agent sessions
By the numbers
- Repository: kenryu42/claude-code-safety-net
- Plugin count: 1
- GitHub stars: 1233 (ingested snapshot)
Recommended Plugins
How it compares
Pre-execution safety hook, not a code reviewer or full DevOps workflow bundle.
FAQ
Who is Kenryu42 Claude Code Safety Net for?
It is for developers using Claude Code who grant the agent git and filesystem access and want automatic blocking of destructive commands.
When should I use Kenryu42 Claude Code Safety Net?
Enable it before any session where the agent can run shell or git tools, especially during refactors, cleanups, and release branches.
How do I add Kenryu42 Claude Code Safety Net to my agent?
Install the kenryu42/claude-code-safety-net plugin in Claude Code and activate its hook so command proposals are validated prior to execution.