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.
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.
Claude Code hooks that block shell commands known to fail. Each hook denies the call and tells the agent what to run instead, so the agent fixes the command on the next try rather than losing its shell.
Claude Code only. The hooks use Claude Code's hook format, so the plugin is not in the Codex marketplace.
pkill-self-match (PreToolUse, Bash)Blocks pkill -f <pattern> (also --full and combined flags such as -9f or -fx) when the pattern is plain text.
Claude Code runs each Bash call through a bash -c whose command line holds the whole command, pattern included. pkill -f matches full command lines, so it matches that shell and kills it. The call ends in "Exit code 144", even with ; true after it. Over 14 days on one host, 83 Bash calls ended in exit 144, and 44 of them started with pkill -f.
The deny message offers two fixes:
fuser -k 8765/tcp.pkill in a Bash call of its own: pkill -f '[u]vicorn app:app'. The class still matches the process, but the text [u]vicorn does not match itself. A later plain mention in the same call, such as pkill -f '[p]ytest x' ; pytest x, matches the pattern again, so the hook blocks it too: it tests each pattern against the command's own text.The hook also blocks pgrep -f <pattern> with a plain pattern when it sits in an until or while condition, such as until ! pgrep -f 'capture.sh'; do sleep 5; done. The bash -c running the loop holds the pattern too, so pgrep always finds it and the loop never ends. One such loop ran on through a 3-hour capture. The fix is the same bracket: until ! pgrep -f '[c]apture.sh'. The deny message brackets the first letter or digit ('.*[u]vicorn'), and for a pattern that is already bracketed it says to run the call on its own instead.
pkill or pgrep without -f, a pattern that does not match the command's own text (a bracketed pattern on its own), a one-shot pgrep -f outside a loop condition, and every other command pass through untouched. A command the hook cannot parse also passes.
rev-parse-short-multi (PreToolUse, Bash)Blocks git rev-parse --short with two or more revisions, such as git rev-parse --short HEAD origin/main.
--short implies --verify, which takes one revision, so the call always exits 128 with "fatal: Needed a single revision". In an && chain the failure also skips the rest, such as a loop's closing notify.sh "DONE #962". Over 14 days on one host, 78 calls failed this way, all but one in this form.
The deny message offers one call per revision: git rev-parse --short A; git rev-parse --short B. One revision, a redirection after it (2>/dev/null) and git rev-parse without --short pass through untouched. Only a git command word followed by rev-parse counts, so a commit message or a search pattern that quotes the form passes too.
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 pgoell/pgoell-claude-tools --plugin guardsPlugins from other owners that cover similar ground