Codex CLIcontext-managementbuilt-in

/ide

Include open files, current selection, and other IDE context in the next prompt without re-explaining what's open.

Syntax

/ide [text]

When to use

  • Referencing what's currently open in your editor without copy-pasting
  • Pulling current selection context into a prompt
  • Connecting Codex CLI to your IDE's active state

More Codex CLI commands