[BUG] @ file autocomplete shows .git/objects and dependency directories causing 2-5s delays
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?
Environment:
- Platform: macOS 15.5 (Sequoia)
- Claude CLI version: 2.0.42
- Terminal: Ghostty
- Installation method: Native installer
Bug Description:
The @ file autocomplete shows files from directories that should typically be excluded, including:
.git/objects/from the current repositorynode_modules/from~/.claude/skills/.venv/and__pycache__/from~/.claude/skills/
This causes inconsistent performance with 2-5 second delays when using @ file references.
Actual Behavior:
- Autocomplete takes 2-5 seconds to appear
- Suggestions include files from:
.git/objects/f6/,.git/objects/fd/, etc.~/.claude/skills/*/node_modules/...~/.claude/skills/*/.venv/lib/python3.*/site-packages/...- Various
__pycache__/,.dist-info/directories
Workaround:
Manual cleanup of dependency directories helps performance:
find ~/.claude/skills -name "node_modules" -type d -exec rm -rf {} +
find ~/.claude/skills -name ".venv" -type d -exec rm -rf {} +
However, .git/objects/ still appears in suggestions and the underlying issue remains.
Additional Context:
- Issue appears to affect Rust-based fuzzy finder (2.0.34+)
- Standard tools like
ripgrep --filesautomatically exclude these directories - @ autocomplete seems to scan globally (including
~/.claude/skills/) rather than just current project - No apparent way to configure exclusion patterns for @ autocomplete
What Should Happen?
@ autocomplete should have default exclusion patterns for common directories:
.git/(especially.git/objects/)node_modules/.venv/,__pycache__/- Other dependency/build directories
These are standard exclusions in most file search tools (ripgrep, fd, etc.) and including them provides no value to users.
Steps to Reproduce
- Use a repository with commit history (generates .git/objects/)
- Have custom skills installed that use dependencies:
- Skills using npm (with node_modules/)
- Skills using Python (with .venv/)
- Start Claude Code in any project:
claude - Type
@followed by 1-2 letters - Autocomplete takes 2-5s, freezes UI
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Before the Rust re-implementation of fuzzy finder?
Claude Code Version
2.0.42
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗