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.
claude plugin marketplace add edtrackai/claude-code-guardrails-lite claude plugin install guardrails-lite@guardrails-lite
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

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
- Version
- 0.1.2
- License
- MIT
- Repo stars
- 0
- Last change
- 2026-10-17
- Language
- JavaScript
- Files
- 10