Claude Code's grep is not grep, and it fails silently
Ask Claude Code to grep -rn your repository and it will answer. The answer is not always grep’s answer. Since version 2.1.117, Claude Code’s native builds for macOS and Linux run nearly every shell grep (a few flags such as -Z fall through to the system grep) through a bundled copy of ugrep with extra flags. Those flags make it skip some files that GNU grep would search, and it says nothing when it does. For a person that is a quirk. For an agent that treats “no match” as a fact, it is a blind spot. Everything below was measured on 2026-11-11 with Claude Code 2.1.322 on an Apple Silicon Mac. I did not test a Linux build; what I say about Linux comes from the changelog. The scripts are in the reproduction repo. ...