Cmd. /ide
Include open files, selections, and IDE context in the next prompt.
Key takeaways
- Include open files, selections, and IDE context in the next prompt.
- Check the input surface and availability before using the examples below.
Purpose
Include open files, selections, and IDE context in the next prompt.
/ideAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Codex CLI 0.155.1 |
The installed command menu and account or organization settings determine availability.
Examples
/ideWhen to use it
- Ask Codex to refactor the function currently selected in your IDE.
- Reuse open-file context without restating every relevant path.
Choosing related commands
| Command | Difference | Choose It When |
|---|---|---|
/ide | Adds editor context | The current IDE selection matters |
/mention | Adds paths manually | You are working from the CLI and know the exact path |
/status | Shows session state | You need model, permission, or root details |
Effects and persistence
Shows the current session's IDE connection and integration target. File edits occur through subsequent requests and tool calls.
/ide brings IDE context such as open files and the current selection into the next Codex prompt.
Cautions
- IDE context does not replace complete project context.
- Check open sensitive files before attaching editor state.
Official sources
Complete command list · Verification scope · History for this command