Skip to content

Add --effort CLI option for shared app-server sessions #48321

Open

Description

@zed76r

What variant of Codex are you using?

Codex CLI 0.157.0, with the shared app-server daemon.

What feature would you like to see?

Please add a first-class --effort <LEVEL> CLI option, analogous to --model, to select the reasoning effort for a launch without changing config.toml. The option should work when the CLI is connected to the shared app-server daemon, so the resulting conversation remains a normal daemon-managed session that can be found and resumed alongside other sessions.

For example:

codex --effort high
codex resume <session-id> --effort high

The flag should validate the levels supported by the selected model, apply only to the requested session launch or resume, and leave the persistent default unchanged.

Additional information

Today I use a shell wrapper that translates --effort high into -c 'model_reasoning_effort="high"'. On CLI 0.157.0, running that override without --no-daemon starts the TUI with this warning:

Running without the shared background server: command-line configuration overrides (-c, --enable, --disable, or --search) requires embedded mode.

I reproduced this with codex -c 'model_reasoning_effort="high"' --no-alt-screen (no prompt was submitted). The selected effort appears as high, but the CLI runs in embedded mode. My wrapper adds --no-daemon only to avoid the warning; it does not restore shared app-server session behavior. This makes a one-off effort choice create a separate session path instead of staying with my usual daemon-managed sessions.

A dedicated effort option would allow a narrow, typed per-launch override to reach the shared app-server, like --model, without treating it as a general -c configuration override.

Activity

  1. usaloCKLEnTO commented on Sep 26, 2026

    @usaloCKLEnTO

    Same need here, plus service_tier. Our tmux launcher starts Codex agent
    panes with --config model_reasoning_effort="<level>" and
    --config service_tier="default", and different roles run different
    efforts. Both keys fall outside allowed_feature in
    tui/src/daemon_startup.rs (config_exclusion), so every such launch runs
    embedded. The file is unchanged in rust-v0.157.1, rust-v0.158.0-alpha.15.1,
    rust-v0.159.0-alpha.3, and main.

    The client already forwards both settings: AppServerSession::turn_start
    sends effort and service_tier with every turn, and a service_tier set
    in config.toml reaches a daemon-attached session. Without the per-launch
    override, a daemon-attached session on a custom provider without priority
    processing fails its first turn with Fast mode is not supported for model ....

    A typed --effort (and --service-tier) that the client sends per thread
    would cover us, as would allowlisting model_reasoning_effort and
    service_tier as -c keys forwarded the same way.

  2. astral303 commented on Oct 10, 2026

    @astral303

    Please also allow us to override context window size. I use different context windows for different tasks. I need them talking to each other.

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