Skip to main content
reopt Handbook
reopt Handbook
Codex Command MasterLabels and command selectionHow to read a detail guideComplete command listTerminal CLI Commands and Options

Task guides

Core Command GroupSession Command GroupCustom Command GuideMCP Command and Integration GuideDesign Workflows

Conversation and context

Cmd. /clearCmd. /renameCmd. /archiveCmd. /deleteCmd. /compactCmd. /copyCmd. /memoriesCmd. /importCmd. /initCmd. /mentionCmd. /forkCmd. /sideCmd. /resumeCmd. /newCmd. /cdCmd. /exportCmd. /recap

Planning and execution

Cmd. /planCmd. /goalCmd. /psCmd. /stopCmd. /app

Review and verification

Cmd. /review

Models and settings

Cmd. /modelCmd. /fast

Permissions and integrations

Cmd. /permissionsCmd. /ideCmd. /setup-default-sandboxCmd. /sandbox-add-read-dirCmd. /pluginsCmd. /hooksCmd. /approveCmd. /skillsCmd. /mcp

Status and diagnostics

Cmd. /agentCmd. /appsCmd. /diffCmd. /feedbackCmd. /personalityCmd. /rawCmd. /statusCmd. /debug-configCmd. /title

Display and input

Cmd. /keymapCmd. /vimCmd. /experimentalCmd. /statuslineCmd. /themeCmd. /petsCmd. /voiceCmd. /worktree

Account and usage

Cmd. /exitCmd. /logoutCmd. /quitCmd. /usage

Legacy

Cmd. /approvals

Verification and history

Current verification scopeHandbook updatesRelease coverage historyEarlier verification recordsCommand change history
Handbook›Codex Command Master›Cmd. /ide
한국어English

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.

/ide

Availability

FieldValue
Input surfaceRunning CLI prompt
KindBuilt-in
StatusCurrent reference
Aliases—
Documented minimumNot specified
Reviewed against2026-09-22 · Codex CLI 0.155.1

The installed command menu and account or organization settings determine availability.

Examples

/ide

When to use it

  1. Ask Codex to refactor the function currently selected in your IDE.
  2. Reuse open-file context without restating every relevant path.

Choosing related commands

CommandDifferenceChoose It When
/ideAdds editor contextThe current IDE selection matters
/mentionAdds paths manuallyYou are working from the CLI and know the exact path
/statusShows session stateYou 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

  • Developer Commands
  • Ide

Complete command list · Verification scope · History for this command

Related docs

Cmd. /ide

Claude Code Command Master · Shows the current session's IDE connection and integration target. File edits occur through subsequent requests and tool calls.

IDE Integration

Claude Code Complete Guide · Combine Claude Code terminal sessions with editor context and review workflows.

Codex App and IDE

Advanced Codex Usage · Use Codex across the app, terminal, and IDE without losing context discipline.

Cmd. /diff

Review current Git changes from inside Codex.

Cmd. /loop

Claude Code Command Master · Repeat a prompt while the session stays open (skill, /proactive).

Cmd. /permissions

Change Codex approval and permission policy during a session.

Cmd. /setup-default-sandbox

Set up the elevated Windows agent sandbox when Codex is running in degraded restricted-token mode.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceCautionsOfficial sources