Feature Request: Claude-style /ide command to attach Codex CLI to the active IDE session

Resolved 💬 4 comments Opened Mar 7, 2026 by Wizmann Closed May 3, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

CLI + VS Code

What feature would you like to see?

Please add a Claude Code–style /ide command to Codex CLI.

Goal: let a terminal Codex session attach to the active IDE session and pull in editor-aware context such as the focused file, current selection, and open tabs.

Additional information

Why this matters

Right now, Codex’s IDE extension can work with IDE context, while CLI workflows rely more on manual file/path attachment. For terminal-first users, this adds friction.

A first-class /ide attach flow would make it much easier to ask Codex about “the file I’m currently looking at” without switching UI or manually attaching paths.

Proposed UX

  • /ide → attach to active VS Code session
  • /ide status → show current IDE connection
  • /ide disconnect → disconnect session

Minimum useful scope

  • active file
  • current selection
  • open tabs

View original on GitHub ↗

4 Comments

Nick-Lucas · 5 months ago

Please do support this! It's the one thing making it difficult to commit to Codex instead of Claude Code

Saafo · 4 months ago

Another very useful scope:

  • Current diagnostics(problems)
etraut-openai contributor · 3 months ago

This will be included in the next release!

Wizmann · 3 months ago

Thanks.