Skip to content
Agentic Workflow
Updated 11 min read

Codex Thinking Effort Guide: Levels, Models, Max vs Ultra

Learn to change Codex thinking effort in the CLI and IDE. Compare supported levels and Max vs Ultra, then choose a model and diagnose when to raise effort.

Model and supported effort feed a scoped task, then tests, review and evidence determine acceptance.

How do you change Codex thinking effort?

Use /model in an interactive Codex CLI session to choose a model and its supported reasoning effort. In the IDE extension, use the model switcher below the composer. For saved CLI and IDE defaults, set model_reasoning_effort in ~/.codex/config.toml; a one-off CLI override can change it for a particular run. These controls are documented in OpenAI's Models guide and Config basics.

My recommendation is to start with a supported baseline, name the test or evidence that will make the result acceptable, then change one control when that gate fails. More reasoning is useful when the model needs deeper planning or checking. It cannot supply a missing requirement or restore access to a broken tool.

Documentation checked 30 October 2026: this refresh replaces the earlier GPT-5.6-centred recommendations with current documented controls and recommended models. The examples below are assembled from those documents, not a report of hands-on CLI tests or a model benchmark. Availability depends on the model, plan, client, workspace settings and rollout. Check the options your client actually offers.

Change effort in the CLI, IDE or desktop app

For the CLI procedure, you need Codex installed, authenticated, and access to the selected model. OpenAI currently documents gpt-6.1-sol as a CLI model example. If you choose GPT-6.1 Terra instead, its documented minimum is Codex CLI 0.159.0. That version requirement does not establish access for every account (Models).

Change the current CLI session

  1. Start Codex in the repository where you intend to work.
  2. Enter /model.
  3. Choose an available model, then an offered reasoning effort.
  4. Continue with a bounded task and check its result against the same acceptance criteria.

For supported Max or Ultra options, the documented path is /model, choose a model, then More reasoning…. Do not assume that every model exposes the same menu.

To request a model and effort when launching a session, combine the documented model flag with a configuration override:

sh
codex --model gpt-6.1-sol -c 'model_reasoning_effort="high"'

The model flag also works with non-interactive runs. This example requests a review at High effort:

sh
codex exec -m gpt-6.1-sol -c 'model_reasoning_effort="high"' "Review the current changes"

These examples illustrate the documented controls; they have not been executed for this article. Use a level supported by your selected model and client. The -c override syntax is documented in Config basics, and the supported effort key is defined in the Configuration reference.

Save a CLI or IDE default

In your existing user configuration, set the top-level keys without duplicating an existing setting:

toml
# ~/.codex/config.toml
model = "gpt-6.1-sol"
model_reasoning_effort = "medium"

Medium here is an explicit example, not a claim about every client's default. The CLI and IDE share configuration layers. In the IDE extension, open the gear icon in the top-right corner, then Codex Settings > Open config.toml. For a session-level selection, use the model switcher below the composer (Config basics, Models).

Find the desktop or Work web control

In Codex in the ChatGPT desktop app, use the model and reasoning control beneath the composer. Current desktop and ChatGPT Work web guidance also describes a Power setting: Smarter favours deeper reasoning, Faster favours faster, lower-cost work, and Advanced lets you choose a specific model, effort or speed. The documented options are illustrative and vary by account and client (Models).

These Work web instructions are not a promise that every Codex cloud surface has the same controls. If your menu differs, check the documentation for that surface rather than searching for a button from another client.

When the option is missing or the saved value loses

A saved value is a default, not proof of the effective session setting. Codex gives CLI flags and configuration overrides higher precedence than trusted project config; project config outranks selected profile files, which outrank user config. Cloud-managed defaults, system config and built-in defaults follow. Project .codex/config.toml layers load only for trusted projects, and managed requirements can constrain configuration (Config basics).

There is another easy trap: Plan mode has a separate plan_mode_reasoning_effort override. When it is unset, Plan mode uses its built-in preset. A global model_reasoning_effort = "medium" therefore does not establish Medium for every Plan-mode interaction (Configuration reference).

Check the selected model, offered effort and relevant overrides before raising the setting again. A configuration problem can look like a reasoning problem until you separate the two.

Codex effort levels: what the labels change

Reasoning effort guides how much work the model puts into thinking through a request. OpenAI says higher effort can improve complex-task results, but takes longer and uses more tokens. That is a direction of tradeoff, not a fixed token multiplier or a guarantee that High will pass your tests (Models).

Visible effortConfiguration spellingDocumented role
Light in app/IDE, Low in CLIlowQuick, well-scoped tasks
MediummediumTasks needing more planning, balancing speed and depth
HighhighDifficult work with multiple steps, sources or tradeoffs
Extra HighxhighMore demanding reasoning where the model and client offer it
The Configuration reference lists these spellings along with max and ultra, while explicitly making availability model- and client-dependent. It is not a universal support matrix. A model picker is a better check than copying a value from somebody else's setup.

OpenAI recommends starting with the effort available by default in your client for GPT-6.1 Sol, High for Luna, and Light for Astra. The latter two are recommended starting settings, not established universal client defaults. Astra's Light configuration value is low. Effort meanings also do not map exactly between model generations (Models).

Do not confuse this setting with model_reasoning_summary, which controls the detail of reasoning summaries. Asking for a longer summary is a different configuration change from asking for more effort.

Sol, Terra, Luna and Astra: start from the task

OpenAI's currently recommended set includes gpt-6-astra, gpt-6.1-sol, gpt-6.1-terra and gpt-6-luna. It positions Astra for the hardest end-to-end work, Sol for repeated long-running work at lower cost than Astra, Terra for everyday writing and visual work, and Luna for clear, repeatable tasks. Those are vendor descriptions, not measured results from your repository (Models).

This is not an exhaustive inventory. GPT-6 Sol still appears in documented presets and pricing. The older GPT-5.6 family also remains in the pricing table; the change in recommendations does not establish its retirement. In particular, the old rule “Terra for routine code” should not be carried forward merely by changing its version number.

For repository work, I would test the following starting policy. Each row is a hypothesis with a gate, not an OpenAI benchmark ranking:

Task shapeStarting hypothesisGate before acceptanceEscalation trigger
Rename a typed field across six known filesLuna at the recommended High starting settingFocused diff, all declared references checked, existing relevant test passesA file or constraint is missed despite a clear contract
Add an endpoint beside an established handlerSol at the client defaultRequest validation, targeted tests and authorization reviewImplementation is plausible but verification is incomplete
Diagnose intermittent authentication failureSol at the client defaultLogs or reproduction distinguish the leading causesThe model lists causes without testing between them
Review a consequential database migrationTest Astra Light or Sol High against the same review contractRollout, lock behaviour, data-loss risks and rollback are resolved or explicitly acceptedMaterial uncertainty remains after reviewing evidence
The endpoint contract should name the neighbouring handler, request schema, expected status codes and forbidden permission changes. If tests pass but review finds a missing authorization check, the next action is a bounded repair. Replaying the entire task at Max is a poor diagnosis.

A migration needs a different gate. A syntax check cannot establish whether a backfill holds a long lock or whether rollback preserves intervening writes. Spend judgment on those questions before optimising for a cheaper turn.

There is a sensible opposing policy: use one available model at its default for almost everything. For a low-volume developer, that simplicity may be worth more than maintaining a routing matrix. Introduce routing when task shapes repeat or usage pressure gives you a reason to measure it. A table earns its overhead only when you can compare the results.

Codex Max vs Ultra: one hard task or separate streams

Max gives the selected model more time to reason about one task. Ultra uses subagents to handle separate parts in parallel. Most tasks do not need either. GPT-6 Luna supports effort up to Max, but not Ultra (Models).

Use Max when the hard part is a connected decision. For a migration, that might mean comparing two rollout strategies while keeping lock behaviour and rollback semantics in the same chain of reasoning. Splitting that decision among several agents could duplicate the investigation rather than resolve it.

Ultra fits a different shape: one audit checks source documentation, another traces the code path, and another inspects tests. Before splitting the work, define a handoff contract: what each audit may touch, what evidence it must return, and who reconciles conflicting findings. Parallel execution still needs a merge and review owner. It does not guarantee a faster accepted result.

In the CLI, use /model, select the model, then More reasoning… to see supported Max or Ultra options. If a supported Ultra option is hidden in the desktop app's model slider, OpenAI documents Settings > Configuration > Ultra in model picker slider. For a missing Max option, the guide says to check app settings, but does not establish an equivalent exact toggle label. Do not treat the Ultra toggle as a Max instruction.

Ultra is also different from Ultrafast. One is a subagent reasoning mode; the other is a speed setting with separate usage effects. Neither tells you whether the task was accepted.

Escalate the failed stage, then stop

Suppose Sol identifies a token-refresh race and a cache-invalidation issue behind an authentication failure, but does not compare the timestamp sequence already present in the logs. The missing move is discriminating evidence. Keeping the model and raising effort is a clean next test.

Now suppose it edits password validation without investigating the refresh path. More effort may produce a longer defence of the wrong frame. Recheck the scope and evidence, then consider a different model while keeping the gate unchanged. If the logs are inaccessible, repair that access problem first. No reasoning setting can inspect evidence it cannot obtain.

One-variable escalation loop: define the gate, run a baseline, classify failure, change one control, review fresh, then stop or repair.
An operating method to test: classify the failed stage, change one variable, review fresh, and stop when the gate passes.

The diagram's effort, model and Ultra branches are choices after diagnosis, not an automatic escalation ladder. For a tightly sequential task, keep one agent. For a vague request, improve the contract. During an urgent incident, changing model and effort together can be rational, but that result teaches you less about which change helped.

Review is a separate decision. Give a fresh migration reviewer the objective, exact diff, schema and data-volume assumptions, test or dry-run evidence, data-loss constraints and rollback requirement. Ask for blockers and material risks separately from optional improvements. A style comment should not compete with an irreversible backfill error.

Route an explicit index-name fix or test addition back to a bounded repair pass. Keep an unresolved transaction-boundary question with a reviewer able to assess it. Acceptance means the named checks pass, material findings are resolved or consciously accepted, and the required evidence exists. Once that happens, stop.

Measure accepted work, not the cheapest turn

The published Standard-speed rates below are credits per million tokens, checked 30 October 2026. They cover the four recommended models discussed here, not the full catalogue. They are not API dollar prices or costs per completed task (Pricing).

ModelInput credits / million tokensCached-input credits / million tokensOutput credits / million tokens
GPT-6 Astra250251,250
GPT-6.1 Sol502.5250
GPT-6.1 Terra251.25125
GPT-6 Luna2.50.2512.5
A cheaper rate can still produce a more expensive accepted result if it requires another implementation attempt and a repair pass. A more capable model can waste usage by exploring beyond a six-file rename. Token rate, subscription allowance and accepted work answer different questions.

Fast and Ultrafast speed modes also affect usage differently for included subscription allowances and purchased credits or Enterprise pay-as-you-go. Check the live rate card and usage dashboard for your account. Do not convert an API token price into an assumed number of included Codex tasks. The pricing page documents /status in the CLI as another way to check remaining usage limits.

To measure workflow cost and latency, include retries, tool calls and review rather than counting only the first response. Keep the task class stable: five endpoint tasks tell you little about a destructive migration or an authentication bug without a reproduction.

Use this copyable run record. The filled row is illustrative, not an observed test result:

text
Task class: endpoint beside an established handler
Model and effort: Sol, client default (record the actual level)
Artifact and gate: endpoint diff; targeted tests and authorization review
Outcome: fail, missing authorization check
Failure class: incomplete verification
Usage: record observed usage and elapsed time, including repair/review
Next change: bounded repair; keep the acceptance gate unchanged

Copy the run record and compare five tasks of the same kind before changing your default. Choose the lowest configuration that reliably passes that particular gate. When the evidence already meets the contract, another turn has no job to do.

Run records and acceptance decisions are only useful if they outlive the session that produced them. Keep them in shared project state rather than chat history. Agiflow is one place to hold that record: it does not run Codex or choose effort. See project management for developers using AI for the wider workflow.

References

Documentation inspected 30 October 2026. These are OpenAI's descriptions of its own controls and rates, not independent performance evaluations.

  1. Models: supported surfaces, currently recommended models, effort guidance, Max and Ultra.
  2. Configuration reference: model_reasoning_effort, Plan-mode override and reasoning-summary setting.
  3. Config basics: configuration location, IDE path, shared layers, trust and precedence.
  4. Pricing: Standard-speed credit rates, allowance caveats, speed distinctions and usage checks.

Give your coding assistant a shared project board

Keep tasks, decisions, and handoff notes on one board your team can see. Follow the coding-agent setup guide to connect your assistant to an Agiflow project. Agiflow provides shared project state. It does not run your agent or sandbox its code.