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.4MITIn 1 marketplace
Development guard for macOS: stops recursive grep from silently skipping gitignored and binary files, 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.
Why use it • What's inside • Prerequisites • Install • Usage • Compatibility • FAQ
💻 Claude Code only — it ships a mod, which runs inside Claude Code. Claude can install it, but the mod doesn't run there. It acts only on macOS and does nothing on Linux or Windows.
[!TIP] TL;DR — On a Mac, a recursive
grepnever returns a quietly incomplete answer: Claude states in the command whether gitignored and binary files count, and BSD or zsh errors come back with the macOS fix.
On macOS, the grep in Claude's shell skips gitignored and binary files during a recursive search, BSD awk ignores IGNORECASE, and many GNU-style commands fail with errors Claude doesn't expect. macOS Grep Guard is a Claude Code mod that reviews every Bash call: it stops a search that would quietly miss files until the command says which files count, stops an awk program that relies on IGNORECASE, and adds the macOS form next to a known BSD or zsh error. Claude's answers stay complete, and its retries land on the first try.
grep is ugrep with --ignore-files and -I, so a recursive search skips gitignored and binary files and an empty result looks like proof that something does not exist. The guard stops the command until it says which files it covers.IGNORECASE. The guard stops the program and suggests tolower($0) ~ /pattern/.uniq -w, stat -c, GNU-style sed -i, timeout, an unmatched glob), Claude reads the macOS form next to the error and retries.| Component | Name | What it does | How it runs |
|---|---|---|---|
| 🧩 Mod | hooks/register.ts | Stops a recursive grep that would skip files and an awk program that relies on IGNORECASE; adds the macOS form after a BSD or zsh error | Automatically on every Bash call, in the main session and in subagents |
| Tool | Minimum version | Check |
|---|---|---|
| Claude Code | 2.1.292 | claude --version |
| macOS, Apple Silicon or Intel | 13.0 | sw_vers -productVersion |
| git, to list the gitignored files under a search folder | — | git --version |
The plugin also uses uname, awk and find, which come with macOS and Linux. On any system other than macOS the guard does nothing.
Already installed? Bring it to the latest version the way you installed it. New to Claude Code? Follow the official setup.
claude update
brew upgrade claude-code
npm install -g @anthropic-ai/claude-code@latest
xcode-select --install
brew install git
sudo port install git
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/the-claude-factory --plugin macos-grep-guard