Command reference ยท Codex CLI
/ide
Turns IDE context on or off.
The name /ide-context comes from the general Codex command reference, which applies across all surfaces: there, the command turns shared IDE context on or off. In the pure terminal CLI's own documentation, the identical feature is instead called /ide (with optional arguments like /ide on, /ide off, or /ide status) and pulls open files, the current selection, and further editor context from a connected IDE extension into the next prompt.
It's the same feature under two different names in two different docs tables, not two separate features. It requires a running IDE with the Codex extension installed (e.g. VS Code), which supplies context via a local IPC connection. According to several issues reported in the Codex GitHub repository, activation occasionally fails even when the IDE extension is active.
โ WHEN TO USE IT?
Have Codex automatically read along the IDE's open files and current selection
/ide (in the terminal CLI; referred to as /ide-context in the general command reference)
Specifically check or set whether IDE context is currently active
/ide status or /ide on
โ WHEN NOT TO?
Codex runs without a connected IDE in the pure terminal
Without an active IDE extension there's no IDE context that the command could turn on or off.
Better: reference files yourself specifically via mention
You're looking for exactly the command name /ide-context in the terminal and can't find it
The pure terminal CLI documents the same feature under the name /ide, not /ide-context.
Better: use /ide in the terminal
SOURCES
- Codex CLI docs: Slash Commands โ learn.chatgpt.com
MORE COMMANDS ยท Codex CLI