System Path Guard
When an agent has shell access on a real machine, a stray write to /etc, a firewall flush, or a `curl | sudo sh` can take the host down. System-level operations need a harder fence than project files.
- Type
- hook
- GitHub stars
- ★ 0
- Repository
- Category
- —
Install
1Manual install
Copy the hook file from the repository into ~/.claude/hooks/<name>.sh. The filename must match the hook name (e.g. system-path-guard.md).
2Verify
/agents, /commands or /hooks in Claude CodeRestart Claude Code and list your installed components to confirm it was picked up.
⚠️ Some repositories ship a CLI installer — check the repo README for the recommended method.
Prefer the full source? The repository README is the authoritative install reference.