VCode home

Mention a file with @

Agents: claude, codex, opencode · On: phone, desktop

Type @ in the composer and a list of the tab's files opens above it. Pick one and its path goes into your message, so the agent knows which file you mean.

Why you would use it

You want the agent to look at one file, and on a phone you do not want to type src/storage/migrations/0042.sql letter by letter or get it slightly wrong.

How to use it

  1. Type @ in the box (#draft), at the start or after a space. The panel (#slashmenu) opens on the top level of the tab's folder under Files in <folder>, folders first.

    The file list open above the composer: Files in ledger, then src/ and tests/ marked folder, then README.md.

  2. Keep typing to filter. Matching is fuzzy across the whole path: @stor finds src/storage.js, and @lib/app finds lib/app.js. A file whose name starts with what you typed comes first.

  3. The top match shows in grey after the caret. When what you typed starts its path, you see the rest of it; otherwise you see the whole path after an arrow, → src/storage.js.

    The box reading Look at @src/fo with rmat.js in grey after the caret, and src/format.js the one row in the list.

  4. Take it with Tab, or tap the grey text. Walk the rows with ↓ and ↑ and take one with Enter or Tab, or tap a row. On a bare @, Tab takes the first row.

  5. A file goes in as @path with a space after it. A folder goes in as @folder/ and the list stays open on what it holds, so you can go on down. A folder with a space in its name goes in quoted and closes the list.

  6. Escape closes the list. Enter with no row chosen sends your message as it is.

What you see

Limits and known gaps