brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: type @ in Claude Code to point at a file instead of describing it

Claude
~/tips/tip-claude-at-mention-files

Why does @src/auth/session.ts refresh the token twice?

Autocompletes file paths in your prompt so Claude looks at exactly the file you mean.

“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

More Claude tips /recap /focus /skill-doctor /autocompact 500k claude purge ~/work/my-repo --dry-run All Claude tips (83) All topics

Link