effort — OpenAI Codex CLI¶
Choose a data-derived reasoning effort for a policy-routed Codex run.
- Source: codex/skills/effort/SKILL.md
- Also available on: GitHub Copilot CLI
In practice¶
What it does¶
Chooses a supported reasoning-effort level from current Codex pricing and capability data. Effort changes how a selected model works; it does not replace the central worker assignment or turn Astra into an ordinary implementer.
When to reach for it¶
- Use it when a task has concrete evidence that the current reasoning level is insufficient.
- Use it to inspect which levels the policy-selected model actually supports.
- Not for expressing a vague request to use the best model or bypassing recovery gates.
Worked example¶
python3 bin/codex_pricing.py knobs
python3 bin/codex_execute.py run --kit tasks/kits/<slug> --task <id> --effort <level>
The driver validates the level for every possible worker rung before dispatch, so escalation cannot fail halfway through because a later model rejects the chosen effort.
Failure modes & fallbacks¶
If a level is unavailable, omit the override or choose a supported level reported by current data. Increase one rung only after useful failure evidence. Never smuggle model or profile changes through extra command arguments; the driver rejects configuration overrides that could weaken policy.
Cost & safety¶
Listing knobs is read-only. A kit run may consume subscription usage or API tokens, so preview its assignment first and keep dollar figures labeled as API-equivalent proxies unless the run is API-metered. Availability and levels are resolved at runtime rather than copied into prose.
Related¶
- route selects and estimates the worker.
- execute validates and records the dispatched effort.
- escalate handles evidence-based worker escalation.
The skill card — what the model reads¶
This is the SKILL.md body the model reads, transformed for this page: the source's own leading title, if it had one, is removed; every remaining heading is demoted one level to nest under this section; and relative links are rewritten to site or GitHub URLs. ${CLAUDE_PLUGIN_ROOT} and {{POLYTROPOS_ROOT}} are install-time path variables, left intact exactly as the model sees them. The unmodified original is codex/skills/effort/SKILL.md.
Resolve the plugin root before running commands¶
Resolve POLYTROPOS_ROOT from this skill's location. In a managed copy use POLYTROPOS_ROOT="{{POLYTROPOS_ROOT}}". Reject a literal placeholder. Confirm pricing data and bin/codex_execute.py exist. If not, use python3 bin/harness_select.py doctor --harness codex.
Derive the complete effort ladder and mode notes at runtime. Do not enumerate levels, model support, or prices in prose:
python3 "$POLYTROPOS_ROOT/bin/codex_pricing.py" knobs
Omit an override for routine work. Increase one data-reported rung only after concrete machine evidence says the current worker's reasoning was insufficient. A worker-tier change addresses capability; effort addresses thinking time. For a kit, carry the validated selection through the central driver:
python3 "$POLYTROPOS_ROOT/bin/codex_execute.py" run --kit tasks/kits/<slug> --task <id> --effort <level>
The driver applies the validated selection through its model_reasoning_effort configuration while preserving the policy-selected worker and planned/dispatched/observed records. For subscription use, explain increased burn before any API-equivalent proxy; for API-key runs, use the engine when a token-metered estimate is needed.