[BUG] Listing git tree files and other hidden files
Resolved 💬 2 comments Opened Aug 8, 2025 by moltar Closed Aug 8, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.71 (Claude Code)
- Operating System: macOS
- Terminal: iTerm2
Bug Description
Referencing files with @... includes all hidden files, and even git tree files.
Steps to Reproduce
- Open Claude Code in a git repo.
- Type in
@.git/ - Observe git tree contents being suggested
Expected Behavior
Ignore files like it did before.
Actual Behavior
Files are not ignored.
Additional Context
<img width="758" height="478" alt="Image" src="https://github.com/user-attachments/assets/6092f4b8-191d-4ba2-a869-88ae0e0b9d19" />
This issue claims that contents of .gitignore are observed: https://github.com/anthropics/claude-code/issues/166#issuecomment-2691489811
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗