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 florianbuetowv3.5.0MITIn 1 marketplace
Blocks Claude replies containing hedging, stalling or false completion claims via a bash Stop hook that regex-checks every response. Install the rules, then tune them against your own session logs.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
guardrails, agent-behavior, stop-hook, anti-patterns, session-logs, regex, discipline
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Behavioral guardrails for Claude Code agents. Nine battle-tested rules enforced via a Stop hook bash script, with skills for data-driven analysis and tuning.
claude plugin marketplace add florianbuetow/claude-code
claude plugin install agent-guardrails
git clone https://github.com/florianbuetow/claude-code.git
cd claude-code
claude --plugin-dir ./plugins/agent-guardrails
Guardrails are enforced by a single bash script registered as a Claude Code Stop hook. When the assistant finishes a response, the script checks the output against regex patterns and blocks responses that contain anti-patterns.
No external plugin dependencies — just bash, jq, and grep.
Assistant response -> Stop hook -> stop-guardrails.sh -> block / allow
| Rule | What It Catches |
|---|---|
no-guessing | Hedging, guessing, unverified claims ("probably", "I think", "this should work") |
no-stalling | Padding before action ("before I proceed", "a few things to consider") |
no-preference-asking | Delegating decisions to the user ("would you prefer", "shall I") |
no-false-completion | Claiming completion without evidence ("all done", "fully implemented") |
no-skipping | Skipping work or hand-waving ("the rest looks fine", "for brevity") |
no-dismissing | Dismissing issues without investigation ("not a real bug", "can be ignored", "just a warning") |
no-cosmetic | Calling anything cosmetic ("cosmetic", "cosmetically") |
no-caveats | Reporting caveats instead of acting on them ("one caveat", "with the caveat that") |
no-flagging | Flagging issues instead of resolving them ("just to flag", "flagging this", "I have flagged") |
/agent-guardrails:install # Install all nine rules into your project
/agent-guardrails:analyze # Scan session logs for anti-patterns
/agent-guardrails:update # Tune rules based on real usage data
Copies a bundled bash script to .claude/hooks/stop-guardrails.sh and registers it in .claude/settings.local.json. Specify rule names to install a subset, or run with no arguments for all nine.
Scans recent Claude Code session logs for anti-pattern frequency. Produces a ranked report with match counts, example excerpts, and recommendations for which rules to install.
Re-analyzes session logs against your installed rules. Identifies false positives (pattern too aggressive), false negatives (pattern too lenient), and uncovered gaps. Applies refinements to the bash script directly.
After installation, your project will have:
.claude/
hooks/
stop-guardrails.sh # The enforcement script (edit to customize)
settings.local.json # Stop hook configuration
Edit .claude/hooks/stop-guardrails.sh directly. Each rule is a grep block:
# no-guessing
if echo "$message" | grep -qiE '(pattern...)'; then
blocked+=("**no-guessing**: Message...")
fi
Add, remove, or modify blocks as needed. Changes take effect immediately.
7-day copy clicks
npx claudepluginhub florianbuetow/claude-code --plugin agent-guardrailsBuilt 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