#2975·gstack

[feature] /codex: a GSTACK_CODEX_EFFORT env default, like GSTACK_CODEX_MODEL

Author: exGeniCreated Sep 25, 2026Updated Sep 25, 2026

[feature] /codex: a GSTACK_CODEX_EFFORT env default, like GSTACK_CODEX_MODEL

Version: gstack 1.89.1.0 (main at the time of writing).

Problem

/codex lets an operator choose the model per shell with GSTACK_CODEX_MODEL (codex/SKILL.md, "Model & Reasoning"), but reasoning effort has no equivalent default. Each mode hard-codes it (high for review and challenge, medium for consult), --xhigh is the only override, it has to be typed on every invocation, and it cannot express Codex's max. Every mode also passes -c model_reasoning_effort=... explicitly, so a model_reasoning_effort set in ~/.codex/config.toml is always overridden.

The per-mode defaults make sense for frontier models, and the skill's warning about xhigh cost and hangs is fair. The trade-off is different for small, cheap models on a ChatGPT account (for example on a plan where only such models are available). There, maximum reasoning costs little and closes much of the quality gap. An operator who has made that choice for a machine or a worker has no way to express it except typing --xhigh on every call, and cannot reach max at all.

Proposal

Read an optional GSTACK_CODEX_EFFORT (low|medium|high|xhigh|max) as the default effort for all modes, the same way GSTACK_CODEX_MODEL sets the model:

  • unset: current per-mode defaults, no behaviour change;
  • set: use it for review, challenge and consult;
  • --xhigh on a request still wins for that request (or accept --effort <level> generally);
  • mention it in the "Model & Reasoning" section next to GSTACK_CODEX_MODEL, together with the existing cost and hang warning, and have the model probe or version check reject an unknown value early (Codex itself only rejects a bad model_reasoning_effort at request time, as an API error).

Why an env var

It matches the existing model override, needs no config-file plumbing, and lets an operator pin a (model, effort) pair per worker environment, such as a Claude Code settings.json env block, without editing the skill, which auto-update would overwrite anyway.