Home / Claude Code mods / Security / command-guard

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.

Updated 2026-10-07

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.

TypeClaude code mod
AuthorZulut30
RepositoryZulut30/claude-mode
Popularityno public popularity data yet
CategorySecurity
SecurityReview before installing (72/100)
Rank#5,261 of 5,272 Claude Code mods; #537 in Security
Last commit2026-10-07
Hooks3 events
SeesBash calls, PowerShell calls
Draws onnothing

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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.listreads files
$.fs.statreads files
$.process.runruns processes
$.session.cwd
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.askdraws interface
$.ui.toastdraws interface

How do I install command-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)