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 microsoft Verified Orgv5.0.0MITIn 1 marketplace
Enforces governance policies on Claude Code sessions by inspecting every prompt and tool call, blocking prompts that fail checks and allowing, denying or asking on tool calls. Denies recursive force deletes in Bash.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
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
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
This package is the production package surface for Agent Governance Toolkit on Claude Code.
It ships a Claude Code plugin that uses:
This initial package enforces:
SessionStart governance context injectionUserPromptSubmit prompt inspection and fail-closed blockingPreToolUse tool-call inspection with allow, deny, or ask behaviorIt also exposes two MCP tools:
agt_policy_statusagt_policy_check_textThe stdio server accepts Content-Length frames and newline-delimited JSON
and always answers with newline-delimited JSON.
Headers are limited to 8 KiB; JSON messages are limited to 5 MiB in UTF-8 bytes,
including when a message arrives across multiple reads.
/agt-governance:agt-status and /agt-governance:agt-check are thin wrappers around MCP tools rather than deterministic code handlers.PostToolUse in Claude cannot reliably redact tool output after the tool has already executed, so this package does not claim Copilot-style output suppression parity.The bundled recursive-delete rule uses a quote-aware command tokenizer and
flag parser adapted from the OpenCode implementation and shell-comment handling
in PRs #4129 and #4142 by Ricky-G (MIT). PR #3834 by talosrobotics was the
earlier Claude Code regex fix for this rule.
It denies rm invocations with both recursive and force flags, including -rf,
-fr, -r -f, --recursive --force, quoted flags, and common wrappers such as
sudo, env, command, and timeout. It respects command boundaries, comments,
and the -- end-of-options marker. Substitutions are scanned independently while
preserving the enclosing command and word, so rm -r "$(pwd)/src" -f is denied. Substitution output remains
unknown rather than being evaluated. Literal text such as echo $(pwd) rm -rf src
or echo "rm -rf src" does not trigger this rule. Redirection operators and their filenames are separated
from command arguments, so a filename such as -rf is not treated as a deletion
flag. Lookup, help, and list modes such as command -v do not count as execution.
The cleanup exception applies only to a single command whose targets are all
recognized relative build artifacts, such as node_modules or dist. Mixed
safe/unsafe targets, wildcard or variable targets, redirections, and incomplete
shell syntax do not qualify. For example, rm -rf node_modules src/* is denied.
Exempt commands still pass through the rest of the policy, including Bash review.
The built-in matcher applies to rules with id: "recursive-delete" and a Bash
tool name, using the configured rule effect. Bundled Bash rules have
commandPatterns: []; explicit user patterns continue to run alongside the
built-in matcher. Existing policies containing the old regex gain the parser's
coverage, but their explicit regex can still produce false positives. Remove
that obsolete pattern from the Bash rule to use only the built-in matcher.
This is a bounded tokenizer, not a full shell evaluator. It does not resolve
brace or variable expansions, shell strings passed to eval or sh -c, indirect
deletion through find or xargs, remote/container execution, or every wrapper.
Escaped nested backticks are not fully supported, and command text inside a
heredoc can conservatively trigger a denial. Recursive deletion without force
(for example, rm -r src) remains subject to the rest of the configured policy.
Keep Bash review enabled for forms outside this matcher's coverage.
Run these commands from the repository root so the relative plugin path resolves correctly.
Install dependencies:
cd agent-governance-claude-code
npm install
Load the plugin directly:
claude --plugin-dir .\agent-governance-claude-code
claude --plugin-dir "$(pwd)/agent-governance-claude-code"
Inspect the active policy and command wiring:
/agt-governance:agt-status
/agt-governance:agt-check suspicious text to inspect
Reload after edits:
/reload-plugins
7-day copy clicks
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 microsoft/agent-governance-toolkit --plugin agt-governancePlugins from other owners that cover similar ground