Paths Subjects Questions Quizzes Pricing Search
Intermediate Open Free

What @-Referencing a File Actually Pulls In

You type @src/auth/session.ts in a Claude Code prompt instead of describing the file in words.

Besides the file's contents, what else does this pull into context?

Solution

The correct answer is "The CLAUDE.md files along that file's path."

@-referencing a file reads it before Claude responds and pulls in the CLAUDE.md files along that path — so directory-specific conventions load automatically along with the code. It does not pull in git blame history, and it doesn't walk the import graph to load every file that imports from it — that would defeat the entire point of scoping what enters context deliberately.

Share this question

← Back to Claude Code Fundamentals practice

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.