Search tool doesn't find anything when user has custom `~/.config/ripgrep/.ripgreprc` present

Resolved 💬 11 comments Opened Sep 4, 2025 by corneliusroemer Closed Oct 27, 2025

Search tool doesn't find anything when user has custom ~/.config/.ripgreprc present.

I'm also experiencing this issue - the below report was closed as stale. So here is me reopening it.

Ok I figured it out! Like a few different variations of issues have mentioned, the issue is with ripgrep! The issue specifically is having a ripgrep config file (~/.config/.ripgreprc) set on my system. I am on Windows using Claude Code through WSL2 (arch) and using zsh (if any of that matters). The solution for me was to add to the Claude Code settings.json file the RIPGREP_CONFIG_PATH environment variable setting it to a "dummy" value (so it does not load a custom ripgrep config in claude code)! ``json { "env": { "RIPGREP_CONFIG_PATH": "dummy" }, } ` The USE_BUILTIN_RIPGREP env variable (as others have mentioned helped them) did NOT work for me for some reason, but RIPGREP_CONFIG_PATH did work! NOTE: This actually solved FOUR different issues for me!! 1. /agents not showing up 2. @ file autocompletion not working properly 3. /custom-slash-commands` not showing up 4. Search / Grep tools always showing "0 results found" I am going to link all the issues that relate to these problems below so that this message shows up linked in those comments! - https://github.com/anthropics/claude-code/issues/2288 - https://github.com/anthropics/claude-code/issues/1843 - https://github.com/anthropics/claude-code/issues/5284 - https://github.com/anthropics/claude-code/issues/5256 - https://github.com/anthropics/claude-code/issues/5185 - https://github.com/anthropics/claude-code/issues/5182 - https://github.com/anthropics/claude-code/issues/5062 - https://github.com/anthropics/claude-code/issues/4632

_Originally posted by @GitMurf in #4741_

View original on GitHub ↗

This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗