[BUG] Search tool often does not work
Resolved 💬 4 comments Opened Aug 21, 2025 by aivarsi Closed Aug 22, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.86 (Claude Code)
- Operating System: Ubuntu 20.04 LTS (Linux 5.15.167.4-microsoft-standard-WSL2)
- Terminal: Windows 11 Terminal
Bug Description
Search tool often does not work. It's not that it never works, sometimes it does, which confuses the issue.
Steps to Reproduce
I can't give you specific steps but I can give you an example of conversation:
● Search(pattern: "utmdata\.js")
⎿ Found 0 files
● Search(pattern: "attachToForm")
⎿ Found 0 files
⎿ Interrupted by user
> use rg instead of your broken search tool
● Bash(rg -l "attachToForm")
⎿ AFFILIATE_SYSTEM_IMPLEMENTATION.md
session/views/signup.view.php
libs/js/utmdata/utmdata.js
Expected Behavior
I would have expected Search tool to find both of the phrases as easily as rg did.
Actual Behavior
Search tool found nothing and I had to tell Claude Code to use rg instead. This is a very common pattern for me.
Additional Context
This keeps happening for a while. I'm unable to tell you which update caused this, but it has been weeks and I have been waiting patiently for some update to fix it.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗