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 tenfyzhongv0.1.0+codex.20260810104504MITIn 1 marketplace
Block destructive agent commands before they run.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Agent Guard supports Codex, Claude Code, pi, oh-my-pi, and Antigravity CLI (agy). It denies known
destructive shell commands before an agent runs them. Completion notifications
live in the separate agent-notifier plugin,
which posts to a webhook or Telegram.
Antigravity CLI: install with agy plugin install ./plugins/agent-guard
from the repository root. It loads .antigravity-plugin/plugin.json and
root-level hooks.json, independently of the other hosts.
Codex and Claude Code discover hooks/hooks.json from the installed plugin.
pi loads extensions/agent-guard.ts through the root package or this
plugin's package.json.
oh-my-pi marketplace, npm, and linked installs load
extensions/agent-guard-omp.ts through omp.extensions.
Restart the host after installing or upgrading the plugin so lifecycle hooks are reloaded.
The agy adapter checks run_command / CommandLine and returns native
deny decisions for blocked commands. Safe commands return allow, leaving
normal permission checks in place.
The guard rejects statically identifiable instances of:
rm with both recursive and force flags);pass;git reset --hard and non-dry-run forced git clean;dd writes to /dev/* and filesystem-formatting commands;It also recognizes common sudo, env, command, and nested shell wrappers.
This is a defense-in-depth policy, not a complete shell sandbox; keep each
host's sandbox and permission controls enabled.
node --test plugins/agent-guard/tests/*.test.mjs
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub tenfyzhong/agent-plugins-hub --plugin agent-guardPlugins from other owners that cover similar ground