Inject a file or folder into your prompt
sessions & context
// what it does
Prefix a path with @ to pull its content into the current prompt: @src/main.ts includes one file, @src/ includes a whole directory, and you can mix several in one line. Directory inclusion is git-aware — it skips anything in .gitignore and .geminiignore. A lone @ with no path is passed through literally.
// shell
$ @src/auth.ts explain the bug on line 42$ @package.json @src/ audit the dependencies// gotcha
@ on a large folder can blow past the context window and burn tokens fast — scope it to the subtree you actually need. To pull in the entire workspace at once instead, launch with the -a (--all-files) flag rather than a broad @.