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 nsheapsv0.1.0In 1 marketplace
Stops Claude from chaining bash commands with && , | or ; so each command can be approved on its own. A PreToolUse hook rejects chained Bash calls and suggests alternatives; # CHAINED: comments bypass it.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
command-approval, permissions, shell-commands, hooks, command-chaining, chaining
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that enforces single-command execution by rejecting bash commands that use chaining operators (&&, |, ;).
Chained commands are impossible to properly handle permissions for:
cmd1 && cmd2 means cmd2 only runs if cmd1 succeeds - you can't review conditional behaviorcmd1 | cmd2 streams data to cmd2 with no visibility into what cmd2 does with it| Pattern | Example | Reason |
|---|---|---|
&& | npm install && npm build | Conditional chaining |
| | cat file | grep pattern | Output piping |
; | cmd1; cmd2 | Sequential execution |
| Pattern | Example | Reason |
|---|---|---|
|| | cmd1 || echo "failed" | Error handling/fallback |
| Single commands | npm install | Can be properly reviewed |
| Redirects | cmd > file.txt | Output goes to reviewable file |
This plugin is part of the nsheaps/.ai plugin marketplace. Add it to your Claude Code configuration:
{
"plugins": ["nsheaps/.ai/plugins/bash-command-rejection"]
}
If chaining is truly necessary, add an acknowledgment comment:
# CHAINED: Explanation of why this is safe/necessary
command1 && command2
Use sparingly - the comment should explain why the chain is safe and necessary.
See the bash-chaining-alternatives skill for detailed guidance on:
The plugin installs a PreToolUse hook that:
Bash tool calls before execution# CHAINED: acknowledgment patternNo configuration required. The plugin works automatically once installed.
MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub nsheaps/ai-mktpl --plugin bash-command-rejectionPlugins from other owners that cover similar ground