Skip to content

Add "minimal" reasoning effort for GPT 5 models #2296

@hf-fdsilva

Description

@hf-fdsilva

What feature would you like to see?

Based on a few of the OpenAI specific documentation, the GPT-5 models support a new "minimal" reasoning effort that works much better for coding tasks. Unfortunately, this current reasoning is not exposed as an option in Codex CLI.

Trying the following run command:
codex --ask-for-approval never --sandbox danger-full-access -c model_reasoning_effort="minimal"
Results with the following error:

Error loading configuration: unknown variant `minimal`, expected one of `low`, `medium`, `high`, `none`
in `model_reasoning_effort`

Regarding the minimal reasoning effort functionality, please refer to the following articles:
"GPT‑5 with minimal reasoning is a different model than the non-reasoning model in ChatGPT, and is better tuned for developers." (Source)

"The new minimal setting produces very few reasoning tokens for cases where you need the fastest possible time-to-first-token. We often see better performance when the model can produce a few tokens when needed versus none. The default is medium.

The minimal setting performs especially well in coding and instruction following scenarios, adhering closely to given directions. However, it may require prompting to act more proactively. To improve the model's reasoning quality, even at minimal effort, encourage it to “think” or outline its steps before answering." (Source)

Are you interested in implementing this feature?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions