By broven
Enforce bash permission rules in Claude Code to block hazardous commands, auto-approve compound operations, sync project-level permissions globally, and analyze logs to discover missing allow rules — preventing unintended commits and securing the CLI workflow.
A Claude Code plugin for managing Bash permissions efficiently.
bash-compound-allowAutomatically approves compound Bash commands (joined with &&, ||, ;, |, or newlines) when every individual part matches your existing allow rules — no more per-prompt interruptions.
Solves: anthropics/claude-code#16561
~/.claude/settings.json, ~/.claude/settings.local.json, .claude/settings.json, .claude/settings.local.json)echo, printf, cd, etc.) and variable assignments are auto-allowed/tmp/bash-compound-allow.logsystemMessage identifying the exact commandsystemMessage is not surfaced to the user — check /tmp/bash-compound-allow.log to see what was blocked/permission-updateCollects allow rule candidates from two sources and lets you pick which to promote to global settings:
.claude/settings.local.json not yet in global ~/.claude/settings.jsonRun periodically to keep your allow list up to date.
In Claude Code, run these two commands:
/plugin marketplace add broven/claude-permissions-plugin
/plugin install claude-permissions-plugin@broven-claude-permissions-plugin
To install for a specific project only (shared with collaborators via .claude/settings.json):
/plugin install claude-permissions-plugin@broven-claude-permissions-plugin --scope project
git clone https://github.com/broven/claude-permissions-plugin.git
Then in Claude Code:
/plugin marketplace add ./claude-permissions-plugin
/plugin install claude-permissions-plugin@claude-permissions-plugin
All hook decisions are written to /tmp/bash-compound-allow.log:
[14:23:01] APPROVE | parts: ['npm install', 'echo "done"']
[14:23:05] PROMPT | not in allow list: 'unknowncmd foo'
Use /permission-update to turn PROMPT entries into allow rules.
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub broven/claude-permissions-plugin --plugin claude-permissions-pluginHarness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Complete collection of battle-tested Claude Code configs from an Anthropic hackathon winner - agents, skills, hooks, and rules evolved over 10+ months of intensive daily use