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 savethepolarbearsv1.1.0MITIn 1 marketplace
Pre-built safety guardrails as reusable hooks: deploy window, test gate, per-session tool budget and a bounded Stop-hook completion loop.
You run one by typing its /name in Claude Code.
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.
Pre-built safety guardrails as reusable hooks for Claude Code workflows. Prevents common mistakes like deploying outside business hours, committing without tests, or running excessive tool calls.
| Feature | Claude Code | Codex CLI | Gemini CLI | Cursor | Windsurf | Claude Desktop |
|---|---|---|---|---|---|---|
| Commands | full | partial | partial | partial | partial | n/a |
| Skills | full | full | full | full | full | n/a |
| MCP | n/a | n/a | n/a | n/a | n/a | n/a |
| Hooks | full | none | none | none | none | n/a |
No environment variables are required. The hooks are POSIX shell plus:
require-tests and by the git push check in block-prod-deploy, which compute what a git command will really do (hooks/scripts/git_intent.py). Without it, both fail closed: commits are blocked and pushes are treated as deploys./loop guard (loop-arm.sh, loop-guard.sh). Without it /loop arm refuses to arm and the Stop hook never continues a session. Hook payloads are parsed with python3 when jq is missing, but .circuit-breaker-config.json (the /configure overrides and budget thresholds) is read with jq: without jq every breaker stays enabled with its default settings./plugin install circuit-breaker
After installation, all three breakers are enabled by default.
/configure status
/configure disable block-prod-deploy
/configure enable require-tests
/configure disable all
/configure enable all
/configure threshold 200
/configure reset
Intercepts deployment commands (deploy, push, publish, release) and blocks them outside business hours:
/configure disable block-prod-deployIntercepts git commit and checks if any test files (*.test.* or *.spec.*) are in the staged changes:
git diff --cached/configure disable require-testsTracks total tool usage per session and warns when the count exceeds a threshold:
${TMPDIR:-/tmp}/circuit-breaker-${UID:-$(id -u)}/counterhooks/scripts/reset-counter.sh or remove ${TMPDIR:-/tmp}/circuit-breaker-${UID:-$(id -u)}/counterCircuit breakers are implemented as PreToolUse hooks that run shell scripts before tool execution:
hooks/
hooks.json # Hook definitions with matchers
scripts/
block-prod-deploy.sh # Time-of-day and day-of-week check
require-tests.sh # Staged file pattern matching
budget-guard.sh # Counter-based usage tracking
reset-counter.sh # Counter cleanup and reset
Each script reads .circuit-breaker-config.json to check if it is enabled before executing its logic. Scripts exit 0 to allow the action or exit 1 to block it.
The config is stored as .circuit-breaker-config.json in the project root:
{
"breakers": {
"block-prod-deploy": { "enabled": true },
"require-tests": { "enabled": true },
"budget-guard": { "enabled": true, "threshold": 100 }
},
"updated_at": "2025-01-15T10:30:00Z"
}
npx claudepluginhub savethepolarbears/agenthaus-marketplace --plugin circuit-breakerBuilt 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