By karlkfi
Guard rails for Claude Code: workspace boundaries, protected branches, production targets, lost exit status, and foreground time.
Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub karlkfi/claude-bouncerWorkspace-boundary shell permissions for Claude Code.
Cut routine git/gh approval prompts: auto-approve safe commands (read-only, staging, branch/worktree create, feature-branch commits & pushes) and confirm protected-branch or destructive ones.
Production-target guard for Claude Code Bash commands.
Deny shell commands whose exit status is the answer and gets lost.
Main-thread time guard for Claude Code Bash commands: catch foreground polling/watching and slow commands about to be killed by an inadequate timeout.
🛡️ Guard rails for Claude Code: five PreToolUse guard plugins in one marketplace.

The bouncer doesn't care what name you go by. He only cares how you behave.
Claude Code's permission rules judge a shell command by its name, and a name is a bad ID.
Bash(grep:*) can't tell an in-repo grep from one reading ~/.aws/credentials.Bash(git push:*) can't tell claude/fix-42 from main.Bash(kubectl:*) can't tell your local kind cluster from the one your customers are on.So you either trust every command, or you answer a prompt every time.
These five plugins are PreToolUse hooks that read the command arguments instead.
They work five different doors and ask five different questions:
/plugin marketplace add karlkfi/claude-bouncer
Then install whichever you want. They're independent and work in any combination:
/plugin install workspace-guard@claude-bouncer
/plugin install branch-guard@claude-bouncer
/plugin install prod-guard@claude-bouncer
/plugin install exit-status-guard@claude-bouncer
/plugin install foreground-guard@claude-bouncer
| Plugin | Version | What it stops at the door | |
|---|---|---|---|
| workspace-guard | 1.17.0 | grep/sed/jq/cat reading or writing outside the workspace, and blind process kills | |
| branch-guard | 1.16.0 | Commits and pushes to a protected branch, and destructive git/gh commands. Auto-approves the safe ones | |
| prod-guard | 2.10.0 | Mutating kubectl/helm/terraform/gcloud/aws aimed at production, or relying on ambient context that can change under it | |
| exit-status-guard | 2.6.0 | A gate whose failure reads as success: piped into a filter, backgrounded behind an echo, or sequenced before a state change with ; | |
| foreground-guard | 0.11.0 | Polling and watching on the main thread, and slow commands about to be killed by too short a timeout |
Each plugin's README covers its rules, its config file, its override, and its /friction-report command.
Start there.
This page is the map.
Every command gets one of three answers, and the interesting one is the third.
In. Silence, which defers to your normal permission settings. Most commands never hear from a guard at all. branch-guard goes further and auto-approves the git commands it can vouch for, so routine work stops prompting.
Carded. An ask.
Claude Code shows you the prompt with the guard's reason in it.
This is the verdict for a command whose intent the guard genuinely can't know from the command string: a path outside your project root, a cluster it doesn't recognize.
Turned away, with the fix. A deny.
The reason goes back to the model rather than to you, and it carries the rewrite: background it, add --context prod-us, capture $? instead of piping into tail.
The agent fixes the command and comes straight back through the same door, and nobody at the keyboard is interrupted.
That's a routing decision rather than a severity one.
When the fix can be written into the reason, spending your attention on it buys nothing.
Here's one from the session that wrote this README, quoted as it arrived (paths shortened, lines re-wrapped).
The command was make check > check.log 2>&1; echo "EXIT=$?", backgrounded:
7-day visitors to each marketplace page
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Claude Code marketplace entries for the plugin-safe Agentic Awesome Skills library and its compatible editorial bundles.
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations