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 sarahcallmesmaddsv0.6.1MITIn 1 marketplace
Safety rails for people building with AI who aren't systems engineers. Blocks commits to protected branches, asks before commands that cannot be undone, flags prompt injection, and can require a governing document be read before a directory is written. Enforced automatically in both Claude Code and Codex.
Claude loads one when your task matches it, or you run it by name.
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.
Catch the mistakes that don't undo, in either host.
Most guidance for AI coding tools assumes an engineer who already knows not to
commit to main, not to run rm -rf outside a build directory, and not to trust
text a webpage handed them. If you are building anyway without that background,
nobody has packaged that knowledge for you. This is an attempt at it.
Five things, and it says which are enforced and which are advice.
Blocks direct commits to a protected branch. main and master by default,
in every repository, not just the ones you remembered to configure. Says what to
type instead. This one refuses rather than asks, and so does the commit message
check, because each of them knows the better command and prints it. There is
nothing for you to weigh.
The branch guard resolves explicit cd and git -C paths, including ~ and
relative paths. When a path is computed by the shell and cannot be resolved
from the command text, it checks the command's working directory instead. A
dynamic path that targets some other repository cannot be inspected reliably;
name that path explicitly when the distinction matters.
Asks before commands that cannot be undone. Recursive force-delete outside
disposable paths, git reset --hard, git clean -fd, git push --force, and
git branch -D. It deliberately allows git push --force-with-lease, which
refuses to overwrite work you have not seen.
These prompt rather than refuse, and the difference is who can answer. The guard knows what the command does and not whether you want it, so it says what would happen and puts the decision to you. Until 0.5.1 the same reasons arrived as a refusal, which made "confirm this is intended before running it" impossible to act on: a squash-merged branch could not be deleted through the tool at all, and the way past was to leave the session and run the command by hand. A guard you have to step around to do ordinary work is not adding safety.
Asks before going around the commit hooks. git commit --no-verify and its
short form -n skip every pre-commit and commit-msg hook, and the commit that
results looks exactly like one that passed them, so nothing afterwards records
that the checks did not run. It deliberately allows a dry run of git clean in
every spelling, -n, -nd, -ndx and --dry-run, since a preview removes
nothing.
Flags prompt injection in content. Text that arrives from a file or a fetched page is data, not instruction. The risk is that instructions buried inside it get treated as though you wrote them. That is easy to spot when you read a document and act on it immediately, and hard once a long session compacts: a summary cannot tell you whether "delete the old records" came from you or from a file that suggested it. Flagging at the moment content arrives is the last point where the difference is still visible.
Blocks writes to a directory whose governing document you have not read. Point a resource at a folder, name the document that governs it, and a Write, Edit, NotebookEdit or common shell write into that folder is denied until the document has been opened in that session. Nothing is governed by default; you add your own.
| Claude Code | Codex | |
|---|---|---|
| Automatic prompting and blocking | Yes, via hooks | Yes, via hooks |
| On-demand scanning | Yes | Yes |
This section said the opposite until 2026-08-16, and the correction is worth stating plainly rather than quietly swapping a table cell. It said Codex plugins cannot register hooks, so Codex got the same checks only as skills you invoke by hand. That was wrong, and wrong in the direction that matters for a plugin whose job is to stop things: it told a Codex user they had no automatic protection when they had it.
The claim came from the manifest. .codex-plugin/plugin.json has no hooks
field, and the inference was that a host whose manifest cannot declare hooks
does not run them. Measured directly instead, by adding a probe hook to the
Codex-installed copy: Codex has its own hooks engine, reads each installed
plugin's hooks/hooks.json, knows the full event vocabulary including
PreToolUse and PostToolUse, and runs every command through a login shell.
The guards fire there. What the manifest declares and what the host reads are
two different questions.
Both runtimes call the same code in scripts/. The detection logic exists once,
so a verdict reads identically wherever it came from.
One difference that is real, and is about updates rather than about hooks: Codex replaces a plugin's version folder when it updates, so a session that was already open is left pointing at a folder that has gone and its guards stop until you restart. Claude Code keeps old versions, so the same session keeps running the code it started with. Either way the guards say so rather than failing silently. See the section on how a hook finds Node.
npx claudepluginhub sarahcallmesmadds/infra-plugins --plugin guardrailsPlugins from other owners that cover similar ground
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.