/codex-advisor:codex-setup [--model MODEL] [--effort LEVEL] [--status]from codex-advisor
Preflight checks Codex CLI installation, authentication, and configures default model/effort in config.toml. Guides users through plugin installation steps interactively.
Ships in codex-advisor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Preflight check and ~/.codex/config.toml configuration helper for codex-advisor.
Parse $ARGUMENTS:
| Input | Action |
|---|---|
--status or no args | Run preflight + show current config |
--model MODEL | Set default model in config.toml |
--effort LEVEL | Set reasoning effort in config.toml |
| Combined flags | Apply all settings |
One call finds the Official Codex plugin and asks its companion what is installed and signed in:
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-job.sh" setup
If it fails with Official Codex plugin not found, guide the user through the full installation process:
/plugin marketplace add openai/codex-plugin-cc — adds the Official Codex marketplace/plugin install codex@openai-codex — installs the plugin from that marketplace/reload-plugins — activates the newly installed pluginDo NOT just print the steps and move on. Wait for the user to complete them. Until then, report the CLI and authentication rows as unknown — only the companion checks them.
Otherwise fill the status report from the JSON: codex.available and codex.detail for the CLI, auth.loggedIn and auth.detail for authentication. Relay nextSteps, except the review-gate one — --enable-review-gate belongs to the Official plugin's own /codex:setup and Stop hook, which codex-advisor does not wrap.
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-job.sh" config
--model, --effort)Both flags are handled by one call. Empty string = no change for that field:
"${CLAUDE_PLUGIN_ROOT}/scripts/apply-codex-config.py" "<model or empty>" "<effort or empty>"
The script's first stdout line is:
Model: <before> -> <after> | Effort: <before> -> <after>
Relay that line verbatim to the user — it shows before/after so they can confirm. If it exits non-zero, relay its stderr instead — the file was left untouched. A Note: line means the current project's own .codex/config.toml sets the same key, which outranks config.toml in that project — relay it.
Model and effort handling
The script writes both values as given and judges neither — Codex owns the list of valid models and effort levels, and it decides at run time. Don't add a validity check here or reintroduce one downstream, and don't teach the script a model alias: any model name we keep goes stale the moment OpenAI ships the next one, and then it calls a working value wrong.
So when a user asks which models or efforts they can use, don't answer from memory — availability is account-scoped and changes. Tell them to run codex and open its /model picker.
The effort value lands on the model_reasoning_effort key (none is the exception — it belongs to plan_mode_reasoning_effort, which this plugin doesn't set). The script edits only the top-level keys (above the first [table] header), preserves everything else (e.g. model_context_window, [projects.*]), follows CODEX_HOME, and writes atomically via a temp file. On Python 3.11+ it parses the file before and after and refuses to write if anything other than the requested keys would change.
If a value looks like an obvious typo, AskUserQuestion beats letting it through — config.toml is global, so a typo follows the user into every later session.
## Codex Setup Status
| Item | Status |
|------|--------|
| Codex CLI | `codex.detail` or NOT_INSTALLED |
| Authentication | `auth.detail` or NOT LOGGED IN |
| Official Plugin | OK or NOT_INSTALLED (required) |
## Current Configuration (~/.codex/config.toml)
| Setting | Value |
|---------|-------|
| model | <current or "default (not set)"> |
| model_reasoning_effort | <current or "default (not set)"> |
| web_search | <current or "default (not set)"> |
These defaults apply to ALL Codex commands — both Official plugin and direct CLI.
To change: `/codex-setup --model gpt-5.6-sol --effort high`
--model/--effort and write them through the same script. Review and adversarial have no --effort flag, so config.toml is the only way to set their effort — details in references/companion-usage.md §2.apply-codex-config.py "" "" is safe (no-op, prints current values) but avoid it when just reporting — codex-job.sh config is enough.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub leejuoh/claude-code-zero --plugin codex-advisor10 skills in this plugin
/codex-adversarialRun Codex adversarial review — actively tries to break confidence in the change. Use when asked "adversarial review", "red-team this change", or wants thorough security/correctness challenge./codex-cancelCancel an active background Codex job./codex-rescueDelegate an implementation task to Codex, then Claude reviews the result. Use when asked "codex rescue", "delegate to codex", "have codex do it", or wants Codex to implement or fix something./codex-researchDeep-dive research using Codex, double-checked by a fresh verifier subagent. Use when asked "codex research", "deep dive with codex", "investigate this topic". Not for code review or plan verification./codex-resultShow the final stored result of a completed Codex job./codex-reviewRun Codex code review with Claude's independent double-check. Use when asked "codex review", "review my code with codex", or wants Codex to review code changes. For adversarial review use /codex-adversarial.Other plugins' skills for the same job