[BUG] Search tool does not find files in workspace folders add with /add-dir
Resolved 💬 5 comments Opened Oct 2, 2025 by kenobasedow Closed Jan 7, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I have added extra include directories with /add-dir so that Claude Code can find the .h files for C++.
The directories are listed in the workspace folders if i call /add-dir without argument.
When Claude Code uses its search tool to find a specific header it is not found although it is available in one of the workspace directories.
What Should Happen?
Search tool should search across all registered workspace directories.
Error Messages/Logs
Steps to Reproduce
No specific workflow.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.1
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Running with the Shell from "Git for Windows".
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗