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 TheVoskampsv0.19.0GPL-3.0In 1 marketplace
Compiled PreToolUse permission-gate hook: command classification and worktree/cross-repo path containment, three-tiered (deny-with-teaching, positive-grounds allow, enumerated hard asks) with the judgment middle deferred to the automode evaluator.
Run automatically on Claude Code events. Claude doesn't decide.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
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 compiled PreToolUse hook that inspects every gated tool call Claude
Code is about to make and, where it can settle the question from the call
alone, allows it, denies it with a redirect, or holds it for a human
click — before any prompt, allow-list or model judge sees it.
Claude Code's own permission handling is a static allow-list plus, in
auto mode, an LLM judge reading the call in context. That stack is good
at judgment and poor at two other things: refusing a known-bad call
with an explanation the model can act on, and reserving a fixed set of
actions for a human click that no allow-list entry and no judge is
meant to waive. This plugin supplies both, and it takes the calls it
can prove harmless off the judge's plate entirely, so the ordinary hot
path of a session costs no prompt and no evaluator round-trip. Which
actions fall where, and why, is in
plugins/guardrails/hooks/permission-gate/README.md.
Every Bash, Read, Write, Edit, MultiEdit and NotebookEdit
call, and every mcp__* tool call, passes through the gate before
Claude Code's normal permission handling. What the gate does with a
given call — what it allows, denies, holds for you, or passes through
with no opinion — is not restated here: run a session with the plugin
installed to see it, or read the permission-gate README and the gate's
source under hooks/permission-gate/.
Install it like any plugin from this marketplace. There is no skill
and no command. The hook registers itself from hooks/hooks.json and
runs on every matched call; there is nothing to configure for it to
work. The policy is compiled into the binary, so there is no rule file
to edit — a change of policy is a source change and a rebuild, not a
setting.
One optional file exists, ~/.config/guardrails/config.yml, which
nothing installs and you write yourself. What it is for, its format,
and what it can and cannot relax are in the permission-gate README,
which is the component document for the gate itself: the verdict
model, what each verdict guarantees, and how to build, test and rebuild
the binaries.
The plugin only works on a platform with a committed binary, and it
fails closed everywhere else. Binaries are committed under
hooks/bin/ for darwin-arm64, linux-amd64 and linux-arm64. On
any other platform, hooks/hooks.json finds no executable gate for the
running uname and denies every matched tool call. A session on such a
platform cannot do anything until a binary for it is built and
committed per the permission-gate README, which also lists the other
conditions under which hooks/hooks.json denies rather than runs the
gate. This is deliberate — a gate that cannot run must block rather
than step aside — but it means installing this plugin on an unsupported
platform stops the session rather than degrading it.
It is not the whole permission stack. The gate decides only what
it can settle better than a model can, and deliberately passes the
judgment middle to the downstream auto mode evaluator with no opinion,
rather than spending a human prompt on it. That posture assumes a tuned
auto mode configuration is there to catch what it passes through;
without one, those calls fall to whatever your allow-list and prompt
settings do with them. The
auto-mode-tools plugin is the other
half: it tunes and personalizes that configuration.
The Bash-to-file-tool redirect is graded on the command's shape, not
on what the file holds or what the pipe does. Unless
redirect-bash-file-work in ~/.config/guardrails/config.yml is set
to off, a Bash command that reads, edits in place or writes a file the
way the Read, Edit or Write tool does is denied and sent to that tool —
in every linked worktree by default, and in every session under
always. The grading accepts these consequences rather than carving
exceptions for them:
sed -i on a file that is not valid UTF-8 is denied and sent to Edit,
although Edit refuses such a file.awk whose program only selects lines is denied and sent to Read,
while one that prints a field or sets a separator is not, although
both read the file: Read can reproduce the first's output and not the
second's.cat f | tr a a) passes.- names
stdin, an option's value (head -n 5, nl -ba, sed's script,
less +G) is not a file, and a reader that names no file reads stdin
and is never denied. So make 2>&1 | tail -20, cmd | head and
cat <<EOF | x pass, while cat f, cat a; cat b and cat f | head
are denied.npx claudepluginhub thevoskamps/claude-plugins-marketplace --plugin guardrailsBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground