Guard rails for Claude Code: workspace boundaries, protected branches, production targets, lost exit status, and foreground time.
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 99/100 with only 14 stars
- 5 releases in the last 90 days
// how to help
// readme
claude-bouncer
🛡️ 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 tellclaude/fix-42frommain.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:
- Are you in the right workspace?
- Are you in the right branch?
- Are you in the right infrastructure environment?
- Are you hiding your exit status?
- Are you blocking the session’s main thread?
Install
/plugin marketplace add karlkfi/claude-bouncer
Then install whichever you want. They’re independent and work in any combination: