Skip to content

Support GPT-5.6 max/ultra reasoning modes #338

Closed

Description

@maxscheurer

Summary

GPT-5.6 Sol introduces a max reasoning effort and an "Ultra" multi-agent mode (per the OpenAI GA announcement — Ultra is a request-level mode of gpt-5.6-sol, not a separate model ID). dreb's ThinkingLevel type (packages/ai/src/types.ts) tops out at xhigh, so these cannot be selected today.

Proposed Behavior

Support selecting max (and potentially ultra) thinking levels for models that offer them.

Technical Notes

  • ThinkingLevel is cross-cutting: agent loop, TUI thinking selector, settings, subagent configs, effort clamping per provider
  • Codex CLI exposes Low / Medium / High / Extra High / Max / Ultra for gpt-5.6-sol — investigate what it sends on the wire (openai/codex codex-rs source) before designing
  • Ultra reportedly triggers server-side multi-agent orchestration; may be a distinct request parameter rather than an effort string
  • Related: PR for adding the GPT-5.6 models (works at up to xhigh in the meantime)

Acceptance Criteria

  • Wire format for max/ultra confirmed from Codex CLI source
  • ThinkingLevel scale extended (or model-specific effort maps) without breaking existing providers
  • TUI thinking selector offers the new levels only for models that support them

Activity

  1. maxscheurer commented on Aug 20, 2026

    @maxscheurer
    ContributorAuthor

    Issue Assessment

    Summary

    The confirmed immediate gap is a seventh, distinct reasoning tier: max. GPT-5.6 Sol, Terra, and Luna support both xhigh and max, but dreb's normalized scale ends at xhigh, so there is currently no request path that can emit reasoning.effort: "max" for these models.

    ultra should not be treated as another provider reasoning effort. OpenAI Codex implements it as a client-side orchestration mode that sends max to the model while enabling proactive multi-agent behavior locally.

    Current state

    • Both core unions stop at xhigh:
      • packages/agent/src/types.ts
      • packages/ai/src/types.ts
    • CLI, settings, RPC, subagent schemas, TUI, dashboard, dispatch arbiter, and session cycling all independently encode the same ceiling.
    • supportsXhigh() already identifies the GPT-5.6 family as xhigh-capable.
    • Direct OpenAI Responses and ChatGPT OAuth / Responses Lite pass GPT-5.6 xhigh through literally. They do not translate it to max:
      • packages/ai/src/providers/openai-responses.ts
      • packages/ai/src/providers/openai-codex-responses.ts
    • The GPT-5.6 Codex path only clamps minimal to low; it has no max branch.
    • The installed openai@6.26.0 SDK types end at xhigh. Current openai@7.5.0 types include max.

    External behavior confirmed

    OpenAI's official model pages list none, low, medium, high, xhigh, and max for all three GPT-5.6 variants:

    The current OpenAI Codex catalog advertises:

    • Sol: low, medium, high, xhigh, max, ultra
    • Terra: low, medium, high, xhigh, max, ultra
    • Luna: low, medium, high, xhigh, max

    Codex source confirms the semantic distinction:

    • codex-rs/core/src/client.rs: reasoning_effort_for_request(Ultra) returns Max.
    • codex-rs/core/src/session/multi_agents.rs: Ultra selects proactive multi-agent mode.

    Therefore, max is a real wire-level reasoning effort; ultra is max plus client orchestration and is not appropriate as a plain ThinkingLevel without implementing its orchestration semantics.

    Gaps

    1. No max value can enter through any dreb user-facing or internal input path.
    2. The current binary capability model (supportsXhigh) cannot distinguish models whose highest native tier is xhigh from GPT-5.6 models that additionally support max.
    3. Session cycling and model-switch clamping have no seventh-tier ordering.
    4. Provider option types and request builders cannot carry max end to end.
    5. Tests and docs describe six levels only.
    6. Telegram currently omits even xhigh, an existing inconsistency that categorical effort-level work will encounter.

    Recommended scope

    Implement max now as a distinct, model-aware dreb level. Keep xhigh unchanged because GPT-5.6 exposes both tiers.

    A clean capability shape would add supportsMax(model) for GPT-5.6 and order fallback as max → xhigh → high. The UI/session selector should expose max only when the selected model supports it. Explicit validated paths such as subagent overrides should reject unsupported max consistently, matching current xhigh behavior.

    Cover these surfaces together:

    • AI and agent ThinkingLevel unions
    • Effective-level resolution and agent-loop reporting
    • Session availability, cycling, and model-switch clamping
    • CLI/model shorthand, settings, RPC, subagent, and dispatch validation
    • TUI and dashboard selectors, labels, theme, and protocol
    • Direct OpenAI, OpenAI Codex, Azure Responses, and compatible request typing/mapping where supported
    • Provider fallback/clamping for non-max models
    • Tests and root/package/feature documentation

    Prefer upgrading the OpenAI SDK rather than casting around its stale effort union, provided the upgrade is otherwise compatible.

    Treat ultra as separate follow-up scope unless this issue intentionally expands to implement automatic multi-agent orchestration. Merely sending "ultra" would not match Codex behavior or the documented API effort values.

    Suggested acceptance criteria

    • max is a distinct accepted dreb thinking level and does not replace or alias xhigh on GPT-5.6.
    • Sol, Terra, and Luna expose max in model-aware selectors and can persist/select it through CLI, settings, RPC, dashboard, and subagent configuration.
    • Direct OpenAI and OpenAI Codex requests for those models emit reasoning.effort: "max".
    • Unsupported models do not receive max; interactive/model-switch flows clamp predictably and explicit invalid overrides produce a clear error.
    • Existing xhigh behavior remains unchanged across providers that map it to a native top tier.
    • Automated tests cover availability, validation, clamping, and emitted request payloads.
    • Documentation lists max, its supported model family, and the distinction between max and Codex-style ultra orchestration.

    Scope and risk

    This is a medium, cross-cutting change rather than a provider-only patch. The largest risks are silently exposing max to unsupported providers, collapsing xhigh and max into one tier, incomplete updates to duplicated UI/protocol enums, and representing ultra as a wire effort without its multi-agent behavior.


    Automated assessment by mach6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions