t3code icon indicating copy to clipboard operation
t3code copied to clipboard

CLI: add --effort to `t3 thread start` and `t3 thread send`

Open jordanbehar opened this issue 4 weeks ago • 5 comments

Problem

t3 thread start takes --provider and --model but no reasoning effort. For Codex with gpt-6-astra, a thread started from the CLI always runs at medium:

  • CodexProvider.ts:163-164 defaults effort to medium for gpt-6-astra when the thread has no effort option.
  • CodexAdapterV2.ts:750-754 picks that default, and lines 792 and 799 send it as effort / reasoning_effort on every turn.
  • That per-turn value overrides model_reasoning_effort in ~/.codex/config.toml, so the user's Codex config has no effect.
  • cli/thread.ts:582-595 sends the model selection with no effort field.

The server already accepts an effort option (t3_thread_launch on new threads, t3_thread_configure on existing ones), so only the CLI is missing it.

Seen on T3 Code 0.1.3 with Codex CLI 0.166.0-alpha.5.1. The same code is on main. The Codex session log for the thread shows medium on every turn, while config.toml sets max.

Request

  • t3 thread start --effort <low|medium|high|xhigh|max|ultra>: include the effort option in the model selection sent at launch.
  • t3 thread send --effort <...>: change effort for that turn and later turns, matching t3_thread_configure.
  • Reject values the selected model doesn't list, with a clear error.

Why

Scripts that drive T3 from the CLI (for example handoff tools that start a Codex thread for a task) currently cannot request higher effort at all for gpt-6-astra.

jordanbehar avatar Nov 03 '26 02:11 jordanbehar

[!NOTE] Written by Claude Opus 5.5 on behalf of fenerax, and posted at their request.

Also hit with gpt-6.1-sol, plus a workaround that works today when a script always wants the same effort in a project.

Without the flag. A script starts Codex threads with t3 thread start <project> - --provider codex --model gpt-6.1-sol --wait --json. For Sol with no effort option, T3 sends no effort at all (CodexAdapterV2.ts#L781-L785), and the Codex session log for that thread shows "reasoning_effort": null on its turn context, even though that Codex home's config.toml sets model_reasoning_effort = "high". orchestrator_capabilities lists low as gpt-6.1-sol's default there. Seen on Windows desktop with projectSettingsFolded: true; the CLI code is the same on main (a185dd9248).

Workaround: give the project a default model and omit --provider/--model. With no modelSelection, t3_thread_launch resolves the project's effective defaults for a caller outside a thread (handlers.ts#L172-L204), and that selection keeps its options. So setting the project's default model in Settings → Projects → (project) → Model, which writes projectSettingsOverrides.<projectId>.defaultModelSelection, carries the effort through:

"projectSettingsOverrides": {
  "<projectId>": {
    "defaultModelSelection": {
      "instanceId": "codex",
      "model": "gpt-6.1-sol",
      "options": [{ "id": "reasoningEffort", "value": "high" }]
    }
  }
}

Then t3 thread start <project> - --wait --json with no model flags ran on codex/gpt-6.1-sol, and the Codex session log shows "reasoning_effort": "high" on every request. The global default on that install is a Claude model, so the project default is what applied.

Two limits:

  • Setting the same default through t3_project_update has no effect on folded installs: it writes the project record, which launch doesn't read (#14991).
  • If the default model's usage runs out and a fallback model is set, launch switches to the fallback with the fallback's own options.
  • It fixes one effort per project. A script that needs a different effort per thread, or a different model than the project's, still needs --effort (#26887, #27189).

fenerax avatar Nov 04 '26 02:11 fenerax

Same need here: an unattended orchestrator starts threads from cron/launchd and needs a different effort per thread, so the project-default workaround doesn't cover it. Both start and send matter, as #27189 implements.

Morriz avatar Nov 08 '26 11:11 Morriz

Claude posting on behalf of Herb Caudill

Same gap with the Claude provider, not just Codex. A script starts threads with t3 thread start <project> - --provider claudeAgent --model claude-opus-5-5, and the thread runs at medium, the catalog default for Opus 5.5. The script reads its model and effort from a role table, and the role says high. The project-default workaround above doesn't fit, because different scripts launch into the same project with different roles. Seen on T3 Code 0.1.7, macOS 27.2.

HerbCaudill avatar Nov 09 '26 18:11 HerbCaudill

Two more gaps between the CLI and the MCP tools, from 0.1.9-nightly.20261110.4465. The same code is on main at 2dd207a:

  • Modes. t3 thread start sends only modelSelection: { instanceId, model }. Besides effort, it cannot set runtimeMode or interactionMode, both of which t3_thread_launch accepts. A new thread always starts in the project's default mode.
  • Settle and archive. The CLI's thread subcommands are list, start, send and show. There is no counterpart to t3_thread_organize's settle or archive, so a script that starts threads from the CLI cannot settle them afterwards without a separate MCP client.

Eugene3dotdev avatar Nov 13 '26 06:11 Eugene3dotdev

Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

juliusmarminge avatar Nov 17 '26 04:11 juliusmarminge