“The session file in the auth folder” leaves Claude to search. A path leaves no doubt.
Why does @src/auth/session.ts refresh the token twice?
Typing @ starts path autocomplete. Type a few letters of the name, pick the match, and the full path lands in your prompt. Claude then reads that file instead of guessing which one you meant.
I think it pays off most when a project has several files with similar names. config.ts in three packages is a classic. With the path there’s no question which one.
The picker leaves out files that match .gitignore by default. That keeps node_modules and build output out of the list, but it also hides a .env.local or a generated file you might want. The respectGitignore setting turns that off if you need it.
A file you mention goes into the context in full. A large lockfile or a minified bundle eats a lot of it for little gain. Point at the source file, not the output.
Further reading: Interactive mode: quick commands, respectGitignore setting