ClaudeCodeMod

All shelves / Mods / Safety

guardrails-lite

By edtrackai

guardrails-lite is a Claude Code safety mod by edtrackai.

Holds a read of a secret .env file, a git force-push, and a recursive rm on /, ~, or $HOME. .env.example, .env.sample, and .env.template are allowed.

Holds a command

Install

The marketplace name is guardrails-lite.

In your shell
claude plugin marketplace add edtrackai/claude-code-guardrails-lite
claude plugin install guardrails-lite@guardrails-lite
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.2
License
MIT
Repo stars
0
Last change
2026-10-17

What it can reach

  • Holds a command

Claude Code 2.1.287 or later; run /reload-plugins or start a new session after installing. It checks each Read, Grep, Glob, and Bash call and denies three kinds before they run. Reading a secret .env file, such as .env, .env.local, or .env.production, with Read, Grep, or Glob, or with a Bash reader such as cat, head, grep, cp, source, or base64. A git force push, as -f, --force, --force-with-lease, combined short flags like -uf, or a +refspec push. A recursive rm on /, ~, or $HOME, such as rm -rf ~ or rm -Rf $HOME/*. .env.example, .env.sample, and .env.template are allowed, and a plain git push and rm -rf node_modules run. Each denial tells Claude why, such as to ask you to run a force push yourself. A call over 64K characters is denied unchecked, and if the check itself throws, the call is denied and the error goes to stderr.

The marketplace, guardrails-lite, holds only this plugin, from the repo root. Stopping three commands nobody means Claude to run is why this page files it under safety. bash-guard, by Singh-AP, holds every Bash call, even in bypass mode, blocks rm -rf on a home or system directory, and asks before a force-push, a hard reset, or a pipe into sh. subagent-fence-erikdarlingdata refuses a force-push, a push to a protected branch, a git command that skips hooks, and killing a process by name. This one is about 75 lines of dependency-free JavaScript with three rules, and the author says to read it before you install it. The author says it is pattern-based, so rephrased, encoded, or indirect commands can get past it, such as a script that reads .env, shell variables or aliases, find / -delete, or rm -rf on other important folders. MCP tools and other file tools are not checked. It does not load with --safe-mode, --bare, or disableAllHooks, and another mod that approves tool calls can approve a call before this one sees it. It passes claude plugin validate and claude plugin test, and the author says it has not been tested in a live interactive session. Its plugin.json names Stack & Ship as its author, and the marketplace names the same owner, linked to edtrackai on GitHub.

Demo

The three kinds of call it denies, from the README on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • tool.callAround a tool call, where it can hold one

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 5 files. They load when you open them.

Facts

Author
edtrackai
Category
Safety
Marketplace
guardrails-lite
Repo
edtrackai/claude-code-guardrails-lite
Version
0.1.2
License
MIT
Repo stars
0
Last change
2026-10-17
Language
JavaScript
Files
10

Other mods in Safety

injection-guardSingh-APStrips hidden characters from tool output and marks results that carry instructions aimed at Claude, so they reach it as untrusted data.collision-guardnateherkaiHolds a commandHolds an edit to a file another open chat changed in the last 30 minutes, and asks you to proceed, move this chat to a worktree, or cancel.recording-modenateherkaiHolds a commandMasks keys, personal details, and business figures on screen while you record, hides results from mail, chat, and finance tools, and keeps private files closed.secret-boxray-amjadHolds a commandOpens a masked box when Claude needs a key, writes the key to .env, and gives Claude a placeholder; any key a tool prints comes back as a placeholder too.secret-shieldSingh-APHolds a commandReplaces API keys, tokens, private keys, and passwords in tool output with a redaction marker before the model or the transcript sees them.transcript-redactorray-amjadSwaps secrets and email addresses in the session for stable placeholders, and puts the real value back on the way into Bash, Write, and Edit.safe-deletecharlie947Holds a commandMoves the files Claude deletes to the Bin instead, toasts a receipt, and /undo-delete puts the last batch back.loop-detectiveYeonwooSungOpens a case when the same Bash command fails the same way again, ties it to the edits that followed, and shows the live cases in a pane and a status line.display-redactionmelodic-softwareMasks email addresses and secret-shaped text in what Claude Code draws, and leaves the transcript, the model's context, and the files unchanged.jev-permission-gatemadisonrickertHolds a commandHolds routine tool calls in auto mode for Jev to allow or deny, and sends the uncertain ones on to Claude Code's built-in classifier.subagent-wallerikdarlingdataHolds a commandHolds a subagent after a time limit to git, gh, and Markdown or text writes, and nudges a code-changing subagent that has edited nothing.public-repo-guardSzotaszHolds a commandAsks in a popup before a push to a public GitHub repo, or before one goes public, when outgoing commits hold keys, emails, local paths, or private repo names.
All 73 in Safety