Beta Coming soon. This feature is still being built, so names and details may change before it ships.

Drag, paste & @ files

Add files to a chat message by dragging them from the project tree or your desktop, by pasting, or by typing @ to pick any file in the project. Each one becomes a chip in your message, and its content goes to the agent with that message only.

The chat input with chips for a file and a folder from the project tree, a text file, a binary file and two images from the desktopThe chat input with chips for a file and a folder from the project tree, a text file, a binary file and two images from the desktop
The chat input with chips for a file and a folder from the project tree, a text file, a binary file and two images from the desktop

Drag files into the chat

Drag a file or folder from the Explorer onto the chat input (or anywhere on the chat). The chip appears where you drop it, so you can place it in the middle of a sentence. Drop several files at once to get several chips.

You can also drag files from Finder, Explorer or your file manager:

You dropChipWhat is sent
A text or code filecart.tsthe file's content
A folder from the project treedocs/the folder's entries (up to 200 names), not their content
An image (PNG, JPEG, GIF, WebP)the image name with a previewthe image, for models that read images
Any other binary filearchive.bina short note such as (binary file, 5 B; not attached), never the bytes

Text files are read up to 1 MB. Hover a chip to preview what will be sent. Backspace or Delete removes a chip as a whole, and the arrow keys step over it.

While you drag files over the chat, a Drop to add to chat frame shows in your theme's drop colour. It goes away as soon as you drop, drag the files back out or cancel the drag. When nothing is being dragged, the chat has no frame or dashed outline.

The chat panel when nothing is being dragged: no frame or outline around itThe chat panel when nothing is being dragged: no frame or outline around it
The chat panel when nothing is being dragged: no frame or outline around it
The chat panel while a file is dragged over it: a thin frame in the theme's drop colour with Drop to add to chatThe chat panel while a file is dragged over it: a thin frame in the theme's drop colour with Drop to add to chat
The chat panel while a file is dragged over it: a thin frame in the theme's drop colour with Drop to add to chat

Paste files, images and code

Paste (⌘V, Ctrl+V) in the chat input and Ingot decides what the clipboard holds:

You copiedChipWhat is sent
Lines of code in the editorcart.ts (1-2) (file and lines)the selected lines, with the file path and line numbers
Files in the project tree (right-click › Copy)money.tseach file's content
Files in Finder or Explorerthe file namethe content, or a note for binary files
A screenshot or an imageimage-….png with a previewthe image
Two or more lines that look like code (from a browser, a terminal…)Pasted code (3 lines)the code as a block
Plain textnone: it is typed inthe text, as part of your message

Pasted screenshots get a unique name, so two screenshots in one message never collide.

The chat input with a cart.ts (1-2) chip from the editor, a money.ts chip from the project tree, a Pasted code chip, plain text and a pasted imageThe chat input with a cart.ts (1-2) chip from the editor, a money.ts chip from the project tree, a Pasted code chip, plain text and a pasted image
The chat input with a cart.ts (1-2) chip from the editor, a money.ts chip from the project tree, a Pasted code chip, plain text and a pasted image

Mention any project file

Type @ in the chat input to open the file picker. It lists every file in the project, not only the ones you opened: the first 100 show at once and the rest load as you scroll. Files and folders in .gitignore are left out, as are .git, node_modules, __pycache__ and .venv.

Keep typing to filter. The filter is fuzzy, so @crt finds src/cart.ts and @utmo finds src/utils/money.ts.

KeyAction
↑ ↓Move through the list
Enter or TabInsert the file as a chip where you typed @
EscClose the picker and keep what you typed

You can also click a row. The chip replaces the @query you typed and the rest of your message stays as it is.

The @ picker listing project files filtered by a fuzzy query, with one row selectedThe @ picker listing project files filtered by a fuzzy query, with one row selected
The @ picker listing project files filtered by a fuzzy query, with one row selected

The file list is refreshed every 30 seconds, so new files show up while you work. In a workspace with several folders, the picker lists files from all of them.

To pick from open editors, pinned tabs or another project, see @opens, @pins, / rules & /projects.

What is sent

A chip sends its content with the message it is in and nowhere else: the agent sees File src/utils/money.ts followed by the content, or Selected code from src/cart.ts (lines 1-2) for editor code. Nothing is attached automatically; see Context & memories. The chips you sent stay visible under your message, so you can see later what the agent got.

From the terminal

ingot context (ingot CLI) lists and prints the same context without opening the IDE. No model is called.

ingot context files            # every project file, @ picker order (first 100; --limit 0 for all)
ingot context files utmo       # fuzzy: src/utils/money.ts
ingot context attach src/cart.ts:1-2 src/utils/money.ts docs assets/logo.png

attach prints the blocks the chat sends, one per chip: [cart.ts (1-2)] Selected code from src/cart.ts (lines 1-2), [money.ts] File src/utils/money.ts, [docs/] Folder docs (its entries), a note for binary files and [image 1: logo.png] for images. Add --json for scripts.

Line ranges you type (@cart.ts:20-21), messages over several lines and recent files in the @ picker are covered in Inline chips in the chat.