Feature Request: Add a plan Mode to Codex CLI
What feature would you like to see?
I would like to request the addition of a plan mode in the Codex CLI, similar to the functionality provided in Claude Code.
Motivation
For AI-assisted coding, having a dedicated planning phase is extremely valuable. Instead of executing directly, the model should first gather information, perform research, and then propose a structured plan. The user can then review the plan, choose to approve or deny, and optionally provide feedback explaining why. The model should iterate on the plan until the user approves it, and only then proceed to execution.
Proposed Behavior
- User switches Codex CLI into plan mode.
- Codex generates a complete step-by-step plan.
- User reviews the plan and either:
• Approves (execution starts), or
• Denies with feedback (Codex refines the plan).
- Iteration continues until the plan is approved.
- Codex executes the approved plan.
Benefits
• Creates a clear separation between planning and execution.
• Improves transparency and user control.
• Reduces errors from premature execution.
• Aligns Codex with emerging best practices for AI coding tools, where a planning stage is becoming a standard.
This feature would significantly improve the usability of Codex CLI for real development workflows.
Are you interested in implementing this feature?
_No response_
Additional information
_No response_
7 Comments
Duplicated of https://github.com/openai/codex/issues/2101
Hi @bernaferrari thanks for marking this as a dupe.
Since there's so much interest in this feature any chance of reconsidering its priority?
They know it is important and they are making it, but they have a very big todo list.
@bernaferrari
is this todo list or plan visible somewhere? I like to see if they are adding features like giveing me more control over each change codex does? like cursor or claude code
No but just look at releases, they are almost daily.
The behavior of Codex can be defined through a configuration file named AGENTS.md. You can set the Plan mode in the global configuration (~/.codex/AGENTS.md) or in the AGENTS.md file of the project root directory.
I proposed a potential high-level architectural plan that outlines how to implement this in my issue #4897 .
Feedback is appreciated.