codex
Installation
SKILL.md
Codex Skill Guide
Running a Task
- If the user did not specify a model or reasoning effort, use the installed Codex default or ask once with the available user-question mechanism. Do not hardcode a model list; model names change over time.
- Select the sandbox mode required for the task; default to
--sandbox read-onlyunless edits or network access are necessary. - Run
codex --versionfirst. Stop and report the failure if Codex is unavailable. - Assemble the command with the appropriate options:
-m, --model <MODEL>--config model_reasoning_effort="<xhigh|high|medium|low>"--sandbox <read-only|workspace-write|danger-full-access>; only use other modes whencodex exec --helplists them-C, --cd <DIR>--add-dir <DIR>--skip-git-repo-check--dangerously-bypass-approvals-and-sandbox
- Do not use
--skip-git-repo-checkby default. Use it only when the user explicitly asks to run outside a Git repository or has approved that boundary bypass for this command. - When continuing a previous session, use
codex exec resume --lastvia stdin. Do not add model, reasoning, or sandbox flags on resume unless the user explicitly requests an override. - IMPORTANT: By default, append
2>/dev/nulltocodex execcommands to suppress thinking tokens (stderr). Only show stderr if the user explicitly requests it or if debugging is needed. - Run the command, capture stdout/stderr (filtered as appropriate), and summarize the outcome for the user.
- After Codex completes, inform the user: "You can resume this Codex session at any time by saying 'codex resume' or asking me to continue with additional analysis or changes."