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.

Updated 2026-10-03

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.

TypeClaude code mod
Authorcarlvellotti
Repositorycarlvellotti/mods-starter
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (96/100)
Rank#2,826 of 5,272 Claude Code mods; #325 in Security
Last commit2026-10-03
Hooks1 events
SeesBash calls
Draws onnothing

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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
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
$.ui.askdraws interface

How do I install 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/carlvellotti/mods-starter
    claude plugin validate ./mods-starter/mods/guard
  3. 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)