What is command-guard?
command-guard is a Claude Code mod by ipartington that refuses shell commands a project's .claude/command-guards.json rules out, for the main loop and every subagent. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | ipartington |
| Repository | ipartington/claude-mods |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Low risk (100/100) |
| Rank | #3,454 of 5,272 Claude Code mods; #376 in Security |
| License | MIT |
| Last commit | 2026-10-11 |
| Hooks | 1 events |
| Sees | Bash calls, Monitor calls |
| Draws on | nothing |
Is command-guard safe to install?
command-guard scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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 no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.fs.read | reads files |
$.session.root | |
$.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/ipartington/claude-mods claude plugin validate ./claude-mods/command-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/ipartington/claude-mods && claude --plugin-dir ./claude-mods/command-guard
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/ipartington/claude-mods/tree/main/command-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from ipartington/claude-mods
This repository has 6 Claude Code mods on MCPMods.
- bg-task-band: A band above the prompt showing running background tasks, their elapsed time and last output line (Review before installing)
- handoff-on-clear: Saves a handoff when you /clear or exit, and offers it back on your next prompt (Review before installing)
- merge-followthrough: Watches your PRs, and when one merges it pulls main and deletes the branch, then tells Claude (Review before installing)
- review-ledger: Keeps review findings (H1, M3, L2...) per repo across sessions and ticks them off when their PR merges (Review before installing)
- tts-lite: Speaks a one-line summary of each reply without starting a headless claude session (Review before installing)