Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Agents-Storev1.0.3In 1 marketplace
Safety guards for Claude Code, three PreToolUse hooks that ask before the riskiest operations and stay silent on everyday work: irreversible deletion, takeover of the host or of the guards themselves, and secrets leaving the machine. One hook for Bash, one for MCP tools, one for the file tools. Never blocks, only asks. The host's own production paths, trusted domains and API hosts are set once in the plugin options, nothing is built into the code.
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
safety, guard, hooks, pretooluse, permissions, secrets, destructive-commands, ops ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Trusted domainstrusted_domains
Domain suffixes of your own services, for example example.com. A key or token may be sent to them and to every subdomain; sent anywhere else it asks. Leave empty to trust only the built-in public API hosts.
string list
Production pathsproduction_paths
Absolute paths on this machine where production lives (an application folder, a compose directory). A write or deletion there asks, in addition to the built-in system paths such as /etc and /usr. Leave empty if there are none.
string list
Trusted API hoststrusted_api_hosts
Exact host names of your own APIs, for example deploy.example.org. A key may be sent to them, and a DELETE request to them asks. Leave empty if there are none.
string list
Long-running container (hours)long_running_hours
A container that has been up longer than this counts as production or another project's stand: stopping or removing it asks.
number0.1–8760default 6
Safety guards for Claude Code, shipped as three PreToolUse hooks. They ask before the riskiest operations and say nothing about everyday work, so a prompt always means something and is not approved out of habit.
The hooks never deny: the decision is ask, the user can always approve. A hook that cannot read its input, or fails, asks as well, because a crashing guard that stays silent is a silent allow.
| Risk | Asks before | Passes |
|---|---|---|
| Irreversible deletion | recursive removal of a repository or of a folder of repositories, a home directory, a system or production path, Claude's memory; find ... -delete under such a path; Docker volumes and every prune; compose down -v; DROP and TRUNCATE; force push, branch deletion, reset --hard, clean -f, a whole-tree checkout .; stopping or removing a container that has been up longer than long_running_hours; Dokploy, GitHub, Infisical, Cloudflare and Directus deletions | rm -rf node_modules, dist, a path in /tmp, one file's checkout, fresh test containers |
| Takeover of the host or of the guards | writes into the system directories, ~/.ssh, ~/.config, Claude Code's settings, plugins and hooks, a project's .claude/settings*.json and .claude/hooks/, .mcp.json, git hooks, and every path in production_paths; the plugin's own files; a pipe of a download into a shell; privileged or docker.sock containers; crontab, users, firewall; stopping docker, ssh, nginx (also nginx -s stop); nginx run with a configuration of its own (-c, -p, -g, even with -t), which hands the host's nginx temp folders to another user; apt without NEEDRESTART_MODE=l; making a repository public; collaborators, deploy keys, branch protection | code, docs, rules, memory, scratch files |
| Secrets leaving the machine | a secrets file (.env* except .env.example, settings.local.json, .mcp.json, SSH keys, *.pem, credentials) sent by curl, wget, scp, rsync or gist; a variable named ...KEY, ...TOKEN, ...SECRET, ...PASSWORD sent to a host that is not its own service; env, printenv or cat .env piped into a sender; a raw nc to another machine; Google Drive share_file; a new GitHub repository that is not private | a key sent to a trusted host, writes to localhost |
| The guards themselves | an edit or write of any file under a folder named agent-guard-ops (a copy of the Agents Store repository, the plugin cache), a write there through the GitHub MCP, and the merge of a pull request in Agents-Store/claude-plugins (a merge cannot be tied to the plugin without the network, so every merge there asks) | any other plugin's files, reading the guard files |
Commands the guard cannot fully read ($(...), heredocs, eval) are not asked: the permission rules and the auto-mode classifier judge them. A guard that asks on every substitution gets approved blindly.
| Hook | Matcher | File |
|---|---|---|
| Bash | Bash | hooks/guard-bash.sh |
| MCP tools | mcp__.* | hooks/guard-mcp.sh |
| File tools | Edit|Write|MultiEdit|NotebookEdit | hooks/guard-files.sh |
They need bash, git (for the merge check) and python3 3.7 or newer (the hooks use subprocess.run(capture_output=..., text=...)). Python is started by its full system path first (a pyenv shim in a folder whose .python-version is not installed would exit 1 and make the guard ask about everything); PATH is only the fallback.
The MCP guard covers Dokploy (deletion, exposure, takeover), GitHub (a repository that is not private, the guards' own files), Directus and Plane deletions, Google Drive sharing and trashing, Cloudflare and Sentry deletions. Read-only tools of every other server are untouched.
The hooks hold no host name, no domain and no path of any machine. What belongs to one machine is an option of the plugin, asked once in the dialog that appears when the plugin is enabled (list options are not shown in the /config panel; to see or change them later use claude plugin configure agent-guard-ops, which saves values from stdin with --values-stdin) and stored in the user's settings under pluginConfigs. Claude Code exports each option to the hooks as CLAUDE_PLUGIN_OPTION_<KEY>. Project and local settings cannot set them, so a cloned repository cannot widen the guard.
| Option | Type | Default | Meaning |
|---|---|---|---|
production_paths | list of strings | empty | Absolute paths where production lives. A write or deletion there asks, on top of the built-in system paths. |
trusted_domains | list of strings | empty | Domain suffixes of your own services. A key may go to them and to any subdomain. |
trusted_api_hosts | list of strings | empty | Exact hosts of your own APIs. A key may go there, and a DELETE request there asks. |
long_running_hours | number | 6 | A container up longer than this counts as production. |
npx claudepluginhub agents-store/claude-plugins --plugin agent-guard-opsBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground