magpie-agent-guard plugin
Apache Magpie — deterministic pre-execution command guard: a PreToolUse hook that denies shell commands which would break a hard framework rule. Runs from the installed plugin, so no repository or worktree needs a local copy.
How to install the magpie-agent-guard plugin
Run both commands inside Claude Code. The first adds the marketplace once; the second installs the plugin.
/plugin marketplace add apache/magpie
/plugin install magpie-agent-guard@apache-magpieWhat's inside magpie-agent-guard
1 part read from the plugin's own files.
Hooks 1
Runs on these events- PreToolUsecommand
Bash
Update, turn off or remove
- Update the plugin (shell)
- claude plugin update magpie-agent-guard@apache-magpie
- Refresh the marketplace
- /plugin marketplace update apache-magpie
- Turn it off for now
- /plugin disable magpie-agent-guard@apache-magpie
- Remove it
- /plugin uninstall magpie-agent-guard@apache-magpie
magpie-agent-guard plugin questions
How do I install the magpie-agent-guard plugin?
In Claude Code run /plugin marketplace add apache/magpie, then /plugin install magpie-agent-guard@apache-magpie.
What does the magpie-agent-guard plugin include?
magpie-agent-guard bundles hooks.
How do I update or remove the magpie-agent-guard plugin?
Update it with claude plugin update magpie-agent-guard@apache-magpie in your shell, or from the Installed tab of /plugin. Remove it with /plugin uninstall magpie-agent-guard@apache-magpie.
What license is the magpie-agent-guard plugin under?
Apache-2.0, as stated in the plugin's manifest.