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 nerymurillohndv0.1.0MITIn 1 marketplace
Stops recursive grep from silently skipping gitignored and binary files on macOS, blocks BSD awk's ignored IGNORECASE, and adds the macOS form when a BSD or zsh command fails.
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs.
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.
Stops recursive grep from silently skipping gitignored and binary files on macOS, blocks BSD awk's ignored IGNORECASE, and adds the macOS form when a BSD or zsh command fails.
Part of Claude Essentials, a Claude Code plugin marketplace.
🧭 Contents: 📖 Overview · 🎯 What it does · 🚫 What it does not do · 📋 Prerequisites · ⚡ Installation · 🚀 Usage · 🧩 Components · 🔐 Permissions · ✅ Verification · 🚧 Limitations · ❓ FAQ · 📚 Documentation · 🔄 Update and uninstall · 📄 License
On macOS, Claude Code has no Grep or Glob tools, so Claude searches with grep and find through Bash. In Claude's shell, grep runs ugrep with --ignore-files and -I, so a recursive search silently leaves out files a .gitignore excludes and every binary file, and an empty result looks like proof that something does not exist. The rest of the shell is BSD (sed, stat, uniq, awk), which rejects or quietly misreads the GNU forms Claude tends to write.
For anyone who runs Claude Code on a Mac and needs search results that are complete unless they choose otherwise.
IGNORECASE, which macOS awk ignores, is stopped with the portable form.| 🧭 Situation | 🎯 What the plugin does | ✅ Result |
|---|---|---|
Claude runs grep -rn TODO . in a repository with gitignored files | Stops the command and asks for --no-ignore-files --binary-files=binary, or --ignore-files / -I to skip them on purpose | The search covers every file, or the omission is written in the command |
Claude runs grep -rn TODO . in a folder with no .gitignore | Asks only for the binary choice | Binary files are never skipped without saying so |
Claude runs awk 'BEGIN{IGNORECASE=1} …' | Stops it and suggests tolower($0) ~ /pattern/ | The match is case-insensitive for real |
A command fails with uniq: invalid option -- w, stat: illegal option -- c, a GNU-style sed -i, or zsh: no matches found | Adds the macOS form next to the error | Claude retries with a working command in the same turn |
grep on single files or on piped input, or any find: gitignore does not apply there, and find in Claude's shell is bfs, which does not read .gitignore.uname and does nothing there.| 🧰 Tool | 📏 Minimum | 🧪 Tested with | 🔎 Check | 💡 Why |
|---|---|---|---|---|
| macOS (Apple Silicon or Intel) | 13.0 | 27.0.1, Apple Silicon | sw_vers | The guard acts only on macOS; Claude Code's own minimum is macOS 13.0 |
| Claude Code | 2.1.287 in the terminal, 2.1.286 in the Desktop app | 2.1.296 | claude --version | Runs the plugin; mods need these versions |
| git | Any recent version | 2.54.0 (Apple Git-157) | git --version | Lists the gitignored files under a search root |
Install Claude Code with the native installer (recommended) or brew install --cask claude-code. Install git with xcode-select --install, which adds Apple's Command Line Tools. The processor architecture makes no difference: Claude Code ships for both, and the BSD tools are Apple's own on both.
Add the marketplace once, then install the plugin. In a Claude Code session:
/plugin marketplace add nerymurillohnd/claude-essentials
/plugin install macos-shell-guard@claude-essentials
From your shell:
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 nerymurillohnd/claude-essentials --plugin macos-shell-guard