Command reference Β· Codex CLI
/ide-context
Turns automatic IDE context on or off.
With IDE context on, Codex automatically pulls in information from the development environment (such as open files).
β WHEN TO USE IT?
Let Codex read the IDEβs open files
/ide-context
β WHEN NOT TO?
Codex runs in a plain terminal with no connected IDE
without an IDE there is no IDE context for the toggle to switch.
Better: name the files you need yourself
SOURCES
- Codex CLI docs: Slash Commands β developers.openai.com