Feature request: Filter @ mention file suggestions via settings or .claudeignore
Resolved 💬 3 comments Opened Apr 9, 2026 by alhomaidy Closed Jun 6, 2026
Feature Request
When typing @ in the Claude Code prompt box to mention a file, all project files appear in the suggestion list — including folders like dist/, and sensitive paths like .env files.
The current permissions.deny rules in settings.json (e.g. Read(**/dist/**)) do not filter these suggestions — they only block Claude's built-in tools from accessing those paths.
Proposed Solution
Add a way to exclude files/folders from the @ mention autocomplete, either via:
- A
.claudeignorefile (similar to.gitignore) - A new
settings.jsonkey (e.g.fileSearch.exclude) - Respecting existing
permissions.denyRead rules for the suggestion list
Use Case
Prevents clutter and avoids accidentally referencing sensitive or irrelevant files when using @ mentions.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗