What is guard?
guard is a Claude Code mod by carlvellotti that pauses risky shell commands (rm -rf, force push, DROP TABLE) and asks you Proceed or Cancel first. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | carlvellotti |
| Repository | carlvellotti/mods-starter |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Low risk (96/100) |
| Rank | #2,826 of 5,272 Claude Code mods; #325 in Security |
| Last commit | 2026-10-03 |
| Hooks | 1 events |
| Sees | Bash calls |
| Draws on | nothing |
Is guard safe to install?
guard scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 7 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 |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.ui.ask | draws interface |
How do I install 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/carlvellotti/mods-starter claude plugin validate ./mods-starter/mods/guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add carlvellotti/mods-starter && claude plugin install guard@mods-starter
Or ask Claude to set it up
Paste this into Claude Code and it installs guard for you:
Install the "guard" Claude Code mod from https://github.com/carlvellotti/mods-starter/tree/main/mods/guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from carlvellotti/mods-starter
This repository has 5 Claude Code mods on MCPMods.
- dashboard: A /dashboard pane that fetches a JSON URL every minute and shows a few numbers from it (Low risk)
- panel-with-buttons: A /edits command that opens a pane listing the files Claude changed this session, with Clear and Close buttons (Low risk)
- slash-command: A /plain-recap command that summarizes the session so far in plain English for a non-engineer (Low risk)
- status-band: A line above the prompt that says, in plain English, what Claude is doing right now and for how long (Low risk)