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 pedropaulovcv0.4.7MITIn 1 marketplace
PreToolUse hook that injects a visible output separator between Bash commands joined by `&&` or `;` so per-command output is easy to read
Run automatically on Claude Code events. Claude doesn't decide.
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
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Rust PreToolUse hook for Bash that injects two blank lines between commands chained with && or ;, so per-command output is easy to read in long chains.
Rewrite:
# input
npm install && npm run build && npm test
# output (what actually executes)
npm install && printf '\n\n' && npm run build && printf '\n\n' && npm test
Same idea for ;-separated commands. printf (not echo) is used so the \n escapes render as real newlines on every shell; single-quoting keeps the backslashes literal until printf consumes them.
Behavior:
Bash tool printf '\n\n' <op> after each top-level && or ;, preserving that operator so && still short-circuits. The inserted printf is an extra command; after a ;, a following $? may observe printf's status instead of the preceding command's'...', "...", `...`, $'...', $(...), ${...}, and (...) subshells are ignored<< sequence aborts rewriting, including heredocs (<<EOF, <<-EOF) and here-strings (<<<){ outside ${...} aborts rewriting, including brace command groups and brace expansions;; case-statement terminators# commentsif, for, while, case, function, select, until[no-rewrite] to the tool descriptionKnown limitations (intentional, prioritizing safety):
&& chains around it (e.g. echo a && for x in 1 2; do …; done && echo b is not rewritten)&& and ;)python3 hooks/build-hooks.py
Attempts to build the Rust binary for Linux x86_64 and Windows x86_64 and copies each successful output to hooks/bin/; a failed target is warned about and skipped. Use after Rust source changes or when the bundled platform binaries need refreshing.
Claude Code has no permission-mode gate, but rewrites only eligible Bash commands on supported Linux/Windows builds. The hook's Codex path rewrites only when the session is already in bypassPermissions or dontAsk; it stays inert when approval is required. The Codex hook launcher resolves its binary through CLAUDE_PLUGIN_ROOT, while the Rust hook detects Codex through PLUGIN_ROOT, so the host must provide the launcher path as well.
OpenCode: on Linux/Windows, mutates eligible Bash arguments in tool.execute.before without changing the normal permission flow; when a rewrite occurred, tool.execute.after appends its advisory to the tool result.
The local PreToolUse hook reads the host's JSON event from standard input, including the Bash command and tool description. For supported requests it rewrites top-level && and ; separators in memory and returns the updated tool input; it does not execute the Bash command. The hook makes no network requests or persistent writes. Subsequent command behavior, including any network access, is determined by the command the host executes.
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 pedropaulovc/agent-plugins --plugin command-chain-separatorPlugins from other owners that cover similar ground