Reference files and run shell commands inside a prompt

sessions & tui

// what it does

Type @ to fuzzy-find a file and drop its contents into the prompt, so the agent sees exactly what you mean without pasting. Prefix a line with ! to run a shell command and feed its output back as context — !git diff or !ls -la — without leaving the input box.

// shell

$ @src/api.ts
$ !git diff --stat

// gotcha

! runs the command on your machine with your permissions immediately, before the model sees anything — treat it like your own shell. @ inserts the file at send time, so later edits are not reflected until you reference it again.

// resources