Codex CLIcontext-managementbuilt-in

/mention

Attach a file or folder to the conversation via popup picker so Codex references it directly in the next turn.

Syntax

/mention <path>

Example

/mention src/lib/api.ts

When to use

  • Pointing Codex at a specific file for a focused review
  • Attaching config files when asking about environment issues
  • Including test files alongside the implementation being discussed

More Codex CLI commands