[BUG] `rg` not installed by default

Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Activity 4 comments · opened Jun 11, 2025 · closed Aug 20, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator) responded on this thread — see the highlighted reply below.

(On macOS at least) Claude Code wants to keep calling rg, which appears to be an Anthropic-specific version of grep that ignores binary build outputs etc. -- but rg is not installed by default with Claude Code. It has to be installed using brew or similar. Please bundle this with Claude Code, or at least install it as a dep.

View original on GitHub ↗

4 Comments

mhjacobson · 1 year ago

rg isn't Anthropic-specific, it's <https://github.com/BurntSushi/ripgrep>. But I agree, Claude Code should not assume that its users have it installed. I don't.

Claude Code has a built-in "Search" tool anyway, and it should always use that instead of shelling out to rg, grep, ack, or similar.

mhjacobson · 1 year ago

This seems like a dupe of #1386, which they say they are "tracking internally".

ant-kurt collaborator · 1 year ago

Claude Code bundles rg. As of v1.0.84, this is preferred over the system installed version. See https://docs.anthropic.com/en/docs/claude-code/troubleshooting#search-and-discovery-issues if you're still having issues

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.