usage

Codex 0.153.0

Tools and page contents
On this page

New 9

01

Vim mode adds undo and redo to safeguard draft edits

When modifying drafts in Vim mode, accidentally deleting a section of attachment notes previously required retyping the whole piece. You can now press u to undo the last action and Ctrl+R to redo, reversing the undo operation. ⟦It is like writing with an erasable pen: when you make a mistake, you erase and rewrite, and if you erase too much, you can trace the erased strokes right back on the clean paper.⟧ Furthermore, regardless of how much content was pasted or how many attachments were included, undo and redo preserve the complete state without dropping parts of your draft.

Original changelog

Vim mode now supports undo with u and redo with Ctrl+R, preserving complete drafts including pasted content and attachments. ([#41941](https://github.com/openai/codex/pull/41941), [#42140](https://github.com/openai/codex/pull/42140))

02

The plugin CLI brings remote marketplace browsing, installation, and removal to the terminal

Looking to install plugins to expand Codex with extra capabilities? The plugin CLI now connects directly to remote marketplaces: you can run a command to list available plugins, install a chosen plugin with a single command, or remove it just as easily when no longer needed, all without leaving your terminal. ⟦It is like a tool rental shop putting its entire catalog online, allowing you to browse available tools on screen, check them out with a click, and return them when finished without ever flipping through paper lists at the counter.⟧

Original changelog

The plugin CLI can list, install, and remove plugins from remote marketplaces. ([#42150](https://github.com/openai/codex/pull/42150))

03

Automatic recaps can be disabled and paste-burst settings move to nested keys

This release introduces two new configuration keys for managing recap behavior and paste detection. Codex previously generated recap summaries automatically. If you prefer to trigger recaps manually with /recap, add the following line to your configuration file: ``` {"tui": {"auto_recap": false}} ``` This sets tui.auto_recap = false, disabling automatic generation while keeping manual /recap invocations available. Additionally, the paste burst detection setting has moved to a nested structure: ``` {"tui": {"disable_paste_burst": true}} ``` This introduces tui.disable_paste_burst, while the legacy top-level key continues to work as a fallback so immediate migration is not required. ⟦It is like a car audio traffic announcement that can be turned off entirely in favor of an on-demand button, with the toggle relocated from the physical dashboard into a digital menu while the familiar dashboard button still works as a backup.⟧

Original changelog

Set tui.auto_recap = false to disable automatic recaps while keeping manual /recap available. ([#42101](https://github.com/openai/codex/pull/42101))

tui.disable_paste_burst replaces the top-level setting, which remains supported as a fallback. ([#41976](https://github.com/openai/codex/pull/41976))

04

TUI history displays complete patches, background inputs, and individual commands

Scrolling back through TUI history in Codex now provides a much clearer view of past actions. Code modifications display complete patch diffs, inputs sent to background terminal sessions are fully recorded, and individual completed commands appear distinctly without being omitted or merged together. ⟦It is like a construction site log that includes before-and-after photos alongside separated step-by-step records for each task rather than just noting that work occurred, making every past change immediately obvious when reviewed.⟧

Original changelog

TUI history shows complete patches, input sent to background terminals, and individual completed commands. ([#41893](https://github.com/openai/codex/pull/41893), [#42107](https://github.com/openai/codex/pull/42107))

05

Plus and Team plans receive earlier alerts when usage drops below half

Subscribers on Plus and Team plans can now gauge their quota consumption earlier. While warnings were previously triggered only as allowances were nearly exhausted, alerts are now sent as soon as less than half of the allowance remains within an approximately five-hour usage window. This gives you time to pace your prompts without having to abruptly adjust your workflow. ⟦It is like a laundry machine displaying an early reminder when fewer than half of your laundry coupons remain, giving you time to plan an extra load before your allowance resets rather than discovering you are out of coupons at the very last moment.⟧

Original changelog

Plus and Team users receive an earlier warning when less than half of their allowance remains in an approximately five-hour usage window. ([#42142](https://github.com/openai/codex/pull/42142))

06

External app-server drops reconnect automatically while pending submissions pause for review

When using Codex through an external app-server connection that suddenly drops, ⟦it is like a video conference reconnecting after a network drop, where your draft chat messages and previous chat logs are intact while an ongoing poll is paused until you confirm how to proceed⟧. Codex now automatically reconnects to the external app-server, preserving drafts and conversation transcripts intact. Any submissions that were in-flight or queued when the connection dropped are held in a paused state for user review before proceeding.

Original changelog

TUI sessions reconnect after an external app-server connection drops, preserving drafts and transcripts while keeping uncertain or queued submissions paused for review. ([#41911](https://github.com/openai/codex/pull/41911), [#41916](https://github.com/openai/codex/pull/41916), [#41918](https://github.com/openai/codex/pull/41918))

07

Guardian skips unnecessary reviews while preserving history across rollbacks and forks

Guardian reviews in Codex now feature clearer operational boundaries. In Full Access mode, Guardian skips reviews for confirmation-only actions. When running in User approval mode, it stops background proposal scoring and prewarming while preserving existing checks for sensitive actions and user input requests. Furthermore, Guardian review histories now survive compaction, application restarts, and user-created forks while strictly respecting rollback boundaries and isolating subagent history from the main thread. ⟦It is like a residential security guard waving recognized residents through without repeated paperwork while still logging outside visitors, keeping visitor logbooks organized and isolated even across desk moves, shift changes, or side-door entries.⟧

Original changelog

Full Access skips Guardian reviews for confirmation-only actions. User approval mode skips background Guardian scoring and prewarming, while sensitive-action checks and requests for user input retain their existing handling. ([#42147](https://github.com/openai/codex/pull/42147), [#42256](https://github.com/openai/codex/pull/42256))

Guardian review history survives compaction, restarts, and user-created forks while respecting rollback boundaries and isolating subagent history. ([#41879](https://github.com/openai/codex/pull/41879), [#42065](https://github.com/openai/codex/pull/42065))

08

Context management experimental mode is disabled by default and enables new tools when activated

Codex introduces the disabled-by-default features.context_management.experimental_mode configuration setting. To try it when eligible, add the following snippet to your configuration file: ``` {"features": {"context_management": {"experimental_mode": true}}} ``` When enabled for eligible ChatGPT Plus, Pro, or Pro Lite sessions using the Codex backend, it activates token-budgeted context management, history notes, and the new_context tool. API-key sessions, custom providers, and temporary structured threads remain excluded from these new capabilities. ⟦It is like a pilot trial program that grants access to new amenities only to pre-registered eligible members, while day-pass visitors and outside contractors are not included yet.⟧

Original changelog

Adds the disabled-by-default features.context_management.experimental_mode configuration. When enabled for eligible ChatGPT Plus, Pro, or Pro Lite sessions using the Codex backend, it activates token-budget context, history notes, and the new_context tool. API-key sessions, custom providers, and temporary structured threads remain excluded. ([#42385](https://github.com/openai/codex/pull/42385))

09

Refined account scoping, path handling, and session resumes across backend features

This release refines several backend implementation details. Remembered MCP tool approvals are now scoped to the active account so switching accounts will not reuse permissions granted by another user, and relative MCP executable paths launch more reliably on macOS. Rollout compression now incorporates shared histories, allowing codex exec resume to handle compressed rollouts when resuming by working directory, while thread forks operate cleanly with symlinked session roots. Additionally, app-server thread metadata includes nullable model and reasoningEffort fields, and request_user_input_async enables structured asynchronous prompts when supported by the model catalog. ⟦It is like checking luggage where the claim ticket must match the account holder to retrieve bags, items remain retrievable even if moved between storage lockers, and additional insurance notices can be sent for later review without requiring an immediate answer on the spot.⟧

Original changelog

Remembered MCP tool approvals are scoped to the selected app account, and relative MCP executable paths start more reliably on macOS. ([#42133](https://github.com/openai/codex/pull/42133), [#42117](https://github.com/openai/codex/pull/42117))

Rollout compression includes shared histories, codex exec resume handles compressed rollouts when selecting by working directory, and thread forks work with symlinked session roots. ([#42039](https://github.com/openai/codex/pull/42039), [#42135](https://github.com/openai/codex/pull/42135))

App-server thread metadata includes nullable model and reasoningEffort fields. Structured asynchronous questions are supported through request_user_input_async when enabled by the model catalog. ([#42151](https://github.com/openai/codex/pull/42151), [#42178](https://github.com/openai/codex/pull/42178))