What is command-guard?
command-guard is a Claude Code mod by Zulut30 that safety net for dangerous commands: before rm -r, git push --force, reset --hard and the like, shows what would be lost and asks Run or Cancel. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | Zulut30 |
| Repository | Zulut30/claude-mode |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Review before installing (72/100) |
| Rank | #5,261 of 5,272 Claude Code mods; #537 in Security |
| Last commit | 2026-10-07 |
| Hooks | 3 events |
| Sees | Bash calls, PowerShell calls |
| Draws on | nothing |
Is command-guard safe to install?
command-guard scores 72/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.list | reads files |
$.fs.stat | reads files |
$.process.run | runs processes |
$.session.cwd | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.ask | draws interface |
$.ui.toast | draws interface |
How do I install command-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/Zulut30/claude-mode claude plugin validate ./claude-mode/en/command-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Zulut30/claude-mode && claude plugin install command-guard@claude-mode
Or ask Claude to set it up
Paste this into Claude Code and it installs command-guard for you:
Install the "command-guard" Claude Code mod from https://github.com/Zulut30/claude-mode/tree/main/en/command-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Zulut30/claude-mode
This repository has 8 Claude Code mods on MCPMods.
- command-deck: Commands pane: the main Claude Code slash commands, each with a short note on why to use it and a ▶ button to run it in (Low risk)
- context-inspector: Context pane: what fills the context window, which MCP servers, skills and memory files use it, and what you can free up (Low risk)
- git-branches: GitLens-style Branches pane: local and remote branches, ahead/behind, working-tree changes, GitHub pull requests and rec (Low risk)
- mod-switch: The Mods pane: switches for your other mods — Next suggestions, the command safety net, the band's columns and where the (Low risk)
- next-steps: After Claude replies, 2–3 likely next prompts above the input: 1–3 or a click drafts one, 0 hides them (Low risk)
- roadmap: Roadmap pane: task stages top to bottom (context → implementation → checks → tests → push → deploy), marked automaticall (Review before installing)
- usage-band: Band above the prompt: context fill, memory files, subscription limits (5h and week), model response speed and a prompt- (Low risk)