[FEATURE] Improve @ file search command for large repos
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
The @ file search command in Claude Code becomes noticeably slow in large monorepos, taking several seconds to populate results compared to terminal-based tools like fzf which provide near-instant results. This creates friction in developer workflow when frequently referencing files during conversations with Claude. The delay accumulates over time, especially when exploring unfamiliar codebases, referencing multiple related files in sequence, or iterating on code across different modules. While .claudeignore helps, it requires manual configuration and doesn't match the performance of optimized fuzzy finders in large repositories.
Proposed Solution
Add a configuration option to use fzf (or similar high-performance fuzzy finder) for the @ file search command when available. The implementation would:
- Check if fzf is installed on the system
- Use fzf for file search when available, falling back to the current implementation if not
- Respect both .gitignore and .claudeignore when generating the file list
- Consider using ripgrep (rg) for initial file list generation, as fzf + ripgrep is a common high-performance
combination
The user experience would be: developers who already have fzf installed (commonly bound to ctrl+t in terminals) would automatically get the same fast search performance in Claude Code, with no additional configuration required beyond an optional setting to enable it.
Alternative Solutions
I open up another terminal window, use fzf to find the file, copy it, then paste it into claude code
Priority
Medium - Would be very helpful
Feature Category
Performance and speed
Use Case Example
Example scenario:
- I'm working in a large monorepo
- I need to reference a specific API file to ask Claude about its implementation
- I type @ to search for the file
- Current behavior: Search takes 3-5 seconds to populate results per character typed, breaking my flow of thought
- Desired behavior: Search returns results in <100ms, similar to using ctrl+t (fzf) in my terminal
- Over the course of a conversation, I might reference 10-20 files, so the time savings would be significant (30-50
seconds saved per character per conversation)
- This would also reduce cognitive friction - the current delay causes me to lose my train of thought or forget what I was searching for
Additional Context
_No response_
7 Comments
I regularly feel the effect of this as well, especially in a large monorepo with lots of nesting. The experience in OpenCode (where they use
fuzzysearch) is both faster and more accurate.agreed, it would be great if we can add fuzzy search functionality to this
+1 the @ file search could have nicer fuzzyness 👍
@andrewklingelhofer out of curiosity are you using the native build of Claude Code? It should have better performance on larger repos.
My claude is entirely unable to reference any sub directories at all (v2.0.55), if I use @ it shows none of my sub directories/files, weirdly it only shows folders like .claude, .cursor etc. Then when claude tries to do file searches it finds nothing and annoyingly it has issues writing to files even when its given them. I asked claude to figure out what's going on:
Closing this as it should be resolved with the native build. @dennislbc please open another issue if you this continues. Yours seems to be Windows specific.
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.