cmd-guard

by redjackfred · ★ 0 · updated 9 days ago

Status lineGuardsCommandsPromptvalidates

0

Blocks destructive shell commands (rm -rf /, force push, DROP TABLE...)

install cmd-guard

Install

/plugin marketplace add redjackfred/claude-code-mods
/plugin install cmd-guard@claude-code-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startprompt.submitcommand.runtool.call
API calls
$.command.register$.state.get$.state.set$.ui.ask$.ui.status$.ui.toast
Can see
every promptBash calls
Reach
level 1 of 3 reads mod statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/redjackfred/claude-code-mods
Path in repo
cmd-guard
Source commit
fa752c7 the exact code the scan read
Author
@redjackfred
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from redjackfred/claude-code-mods

agent-progress

redjackfred/claude-code-mods

Live progress bars for running subagents above the prompt

★ 0BandsGuardsCommands

model-router

redjackfred/claude-code-mods

Runs Explore subagents on haiku and general-purpose ones on sonnet unless a model was asked for

★ 0ToastsCommands

pomodoro

redjackfred/claude-code-mods

Pixel-art pomodoro timer in a side pane: /focus [minutes]

★ 0PanesBandsCommands