shell-guard
by Daniil Bystrov · ★ 0 · updated 6 days ago
0
Blocks shell commands that wipe your home folder, the project, disks, protected branches or databases, and snapshots uncommitted work to a git ref before commands that would destroy it.
Install
/plugin marketplace add Jvrd97/claude-shell-guard/plugin install shell-guard@shell-guardThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.starttool.calltool.checkcommand.run- API calls
$.clock.now$.command.register$.env.get$.process.run$.session.cwd$.session.root$.state.get$.state.set$.ui.toast- Can see
Bash calls- Reach
- level 2 of 3 other: $.state.getother: $.state.setruns processesreads env varsdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/Jvrd97/claude-shell-guard
- Path in repo
- repository root
- Source commit
8c6611fthe exact code the scan read- Author
- Daniil Bystrov @Jvrd97
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.