Reference Files and Directories
Use @ to quickly include files or directories without waiting for Claude to read them.
Reference a Single File
> Explain the logic in @src/utils/auth.jsThis includes the full content of the file in the conversation.
Reference a Directory
> What's the structure of @src/components?This provides a directory listing with file information.
Reference MCP Resources
> Show me the data from @github:repos/owner/repo/issuesThis fetches data from a connected MCP server using the @server:resource format. See MCP Resources for details.
Tips:
- File paths can be relative or absolute
@file references also add CLAUDE.md files from the file’s directory and parent directories to the context- Directory references show a file listing, not file contents
- You can reference multiple files in a single message (e.g., “@file1.js and @file2.js”)