You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK is intended for non-interactive automation use cases. Plan mode is an interactive feature, so it's not something that's exposed in codex exec (upon which the SDK is built).
If you'd like to use plan mode in a custom client, I recommend building your client on the app server API.
Activity
etraut-openai commentedon Mar 3, 2026
The CLI does support plan mode. Just use the
/planslash command to toggle.gsabran commentedon Mar 3, 2026
I meant in headless mode, ie the CLI doesn't have a parameter to be prompted in plan mode (updated the description)
gsabran commentedon Mar 3, 2026
There seem to be a comment indicating interest to support this:
codex/codex-rs/core/src/codex.rs
Lines 449 to 450 in 745c48b
gsabran commentedon Mar 3, 2026
I made a PR, I don't think I can open it as I'm not a collaborator to this repo:
https://github.com/openai/codex/compare/main...gsabran:gui/plan-exec?expand=1
g-imhoff commentedon Mar 9, 2026
Also very interested about getting this !
0xble commentedon Mar 25, 2026
Strong +1 on this.
The missing piece is not interactive
/plan, it is a first-class startup parameter for Plan mode.What would be most ergonomic is something like:
codex --plancodex --plan "investigate this repo and propose a fix"Possibly also:
codex exec --plan "..."Why this matters:
/planonly works after the session starts/planshims are brittle and less discoverable than a real flag--permission-mode planI would treat this as distinct from "Plan mode exists" and closer to "Plan mode is not addressable as a first-class CLI startup mode".
bluerssen commentedon May 7, 2026
Still looking for this. This should be possible via SDK. I'd be happy to do PR to add it in.
etraut-openai commentedon May 7, 2026
The SDK is intended for non-interactive automation use cases. Plan mode is an interactive feature, so it's not something that's exposed in
codex exec(upon which the SDK is built).If you'd like to use plan mode in a custom client, I recommend building your client on the app server API.