Insert a file path or run a shell command
slash commands & shortcuts
// what it does
Type @ to fuzzy-search files and insert a path into your prompt, or use /mention to attach a specific file. Start a line with ! to run a shell command yourself without leaving Codex.
// shortcut
@
!
// gotcha
! runs the command in your real shell, outside the agent's sandbox — so it is you executing it, not Codex. Handy for git status or running your own tests between turns.