[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.
4 Comments
rgisn'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.This seems like a dupe of #1386, which they say they are "tracking internally".
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 issuesThis 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.