Launches and manages the local OpenAI Codex CLI as a non-interactive coding sub-agent via ChatGPT OAuth. Delegates coding tasks, runs codex exec, generates/refactors code, and handles daemon lifecycle and fault recovery.
Ships in daymade-codex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Delegate coding tasks to the local OpenAI Codex CLI agent using the authorized ChatGPT account's OAuth access.
codex exec for non-interactive tasksCRITICAL: Use ChatGPT OAuth through the selected credential store. Do NOT set OPENAI_API_KEY, CODEX_API_KEY, or pass API keys for this workflow (the bundled wrapper strips both environment variables before launching Codex). Keep the authentication route separate from the account's allowance and extra Credit policy; OAuth does not guarantee that long work cannot consume extra Credit.
CODEX_HOME and store; the desktop app and CLI can share credentials.The skill auto-detects Codex CLI in this order:
CODEX_BIN env var, if set — explicit override. A non-executable path fails loudly
instead of silently falling through to a different build (that would make whatever
the wrapper measured unattributable).which codex — the executable first on the wrapper process's PATH, including
npm global installs under nvm (~/.nvm/versions/node/*/bin/codex). This lookup
does not execute an interactive shell's alias or function./Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex — the copy bundled inside
ChatGPT.app, fallback only. Its version tracks the Desktop app and can diverge from
the npm build, so it is deliberately last.If a bad CODEX_BIN was set, the wrapper exits 1 with
{"error": "CODEX_BIN not executable", "path": <value>} — the offending value is in
the error itself, and searched_paths is not emitted for this case (no other search
step ran). If neither PATH nor the app bundle has a codex, the wrapper exits 1 with
the actual search order in searched_paths.
Whichever binary wins, attribute behaviour to it by versioning the binary that
ran. An unrelated shell's codex --version may resolve another entry, which is
the wrong build to quote when the fallback picked the app-bundled one. Use the
codex_path field from the wrapper's status output:
"<codex_path from status output>" --version
Before using this wrapper, resolve the user's ordinary CLI entry. When that entry
is a shell function or launcher supplying network/auth context, use it through
its owning shell instead of silently substituting the discovered binary. On macOS
zsh, inspect with /bin/zsh -lic 'command -v codex; codex --version', then run
codex inside that same shell mode. Put the finite timeout around the shell
process: gtimeout … codex resolves an executable and cannot call a shell function.
The bundled Python wrapper does not reproduce shell initialization or support
every native flag; use native CLI invocation when those capabilities are required.
Before an expensive build, resume or recovery claim that depends on which codex entry is in play, freeze the identity once and compare it at claim time; never refresh a baseline to make a comparison pass.
# Freeze once, before the work (add --watch-file for owner-selected configs):
python3 scripts/entry_identity.py snapshot --output <task-owned-baseline.json>
# Compare before the expensive claim:
python3 scripts/entry_identity.py check --baseline <task-owned-baseline.json>
The check separates the owning-shell dispatch entry (what /bin/zsh -lic
resolves codex to: external, function, alias) from the wrapper-selected
external executable (the CODEX_BIN > PATH > app-bundle order above). Exit
codes: 0 unchanged, 1 drift, 2 unknown, 3 usage or baseline error.
unchanged is identity-only evidence — it never proves wrapper downstream
runtime, authentication, quota or model health. When the dispatch entry is a
function or alias, its consumer stays opaque (the definition is hashed, never
executed). Verify its downstream executable through the launcher's owner;
setting CODEX_BIN selects the wrapper and does not prove where a function runs.
Read entry-identity.md for
fields, failure shapes and a startup-report example.
Before attributing an account, quota, error, or process state to a session, apply
the existing-session evidence recipe.
Require observer proof that binds the target session ID (SID), its cwd, and
exactly one runtime to the same session. A runtime-scoped state response alone is
insufficient. Zero, multiple, or incomplete matches remain unknown; never select
or fall back by recency, account capability, quota availability, or a healthy
runtime. Treat a contradictory first-hand user /status as a stopping
contradiction and reconcile it rather than repeating the agent inference. When
available, Minions' public session-bound diagnostic owns the mechanical gate.
python3 scripts/codex_wrapper.py exec "<prompt>" [<workdir>] [<model>] [<sandbox>] [<timeout>]
Example (pass "" or omit <model> to use Codex's configured default model):
python3 scripts/codex_wrapper.py exec \
"Write a Python function to calculate fibonacci" \
/tmp \
"" \
workspace-write \
300
python3 scripts/codex_wrapper.py review [<workdir>] [<model>] [uncommitted:true] [<timeout>]
Example:
python3 scripts/codex_wrapper.py review \
/path/to/repo \
"" \
true \
300
python3 scripts/codex_wrapper.py status
Interpret this result using cached login inspection. For an authorized real access check, follow that guide's Verification route.
The command arguments, defaults and JSON fields are defined by main(),
exec_codex(), review_codex() and check_auth_status() in
scripts/codex_wrapper.py. Use those definitions
rather than a second parameter or output-field table.
sandbox=read-only for analysis/review tasks (no file writes)sandbox=workspace-write for code generation (writes to working dir)sandbox=danger-full-access only when explicitly needed (full system access)--skip-git-repo-check when running outside git repos--ephemeral for one-off tasks (no session persistence)For a session reporting 400 Bad Request or another model-request failure, use
model-request diagnostics before
changing configuration or resuming work. It covers complete error capture,
verified HTTP/WebSocket transport, request-byte provenance, compression controls
and recovery checks on the original SID.
For a local Codex upgrade, follow the coordinated CLI and App Server upgrade.
After local verification, apply the fleet parity check before closing the upgrade.
For native automatic-update eligibility, an authorized shared-daemon restart
or package replacement, or fault recovery when Codex hooks or spawns fail with
Too many open files, read
shared daemon maintenance. Preserve
affected work, retain an independent operation receipt, and verify continuation
under the original session IDs; a new daemon is not proof that tasks resumed.
For client/backend version differences or a proposed local patch, use that guide's target-package assessment before treating a custom build as necessary.
For multi-step tasks, Codex supports session resume:
# First step
codex exec --json "Step 1..."
# Later, use the session ID reported by that first invocation:
codex exec resume "${CODEX_SESSION_ID:?Set the session ID from the first invocation}" "Step 2..."
The wrapper currently runs single-shot exec. For multi-step workflows, use raw codex exec commands.
An ephemeral invocation does not persist a session for later resume.
--last is not session-selection evidence or an attribution fallback. Use it only
after independently confirming the intended recorded session, and apply the
SID+cwd+unique-runtime gate above before any account or process claim about it.
doctor --help before using its diagnostics; when supported, use the full report for endpoint/remedy details rather than --summary. Interpret the failed check, not only the aggregate exit code, and read the emitted JSON schema instead of assuming an older build's keys.codex doctor --json once. Back-to-back --all and --json runs can each repeat full SQLite integrity scans across multi-gigabyte databases.shell_environment_policy; inspect the effective configuration. Keep credentials out of prompts.references/entry-identity.md (opens in a new tab)references/model-request-diagnostics.md (opens in a new tab)references/oauth-guide.md (opens in a new tab)references/shared-daemon-maintenance.md (opens in a new tab)scripts/codex_wrapper.py (opens in a new tab)scripts/entry_identity.py (opens in a new tab)scripts/test_codex_wrapper.py (opens in a new tab)scripts/test_entry_identity.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/codex-1m-context-window-setupConfigures and verifies an expanded, model-aware context window for OpenAI Codex CLI and Desktop. Use to inspect local context settings, lower or set the auto-compaction threshold, expand ~258K context to 500K or 1M, or repair model_context_window/model_auto_compact_token_limit. Not for changing the selected model or other Codex settings./codex-image-galleryStart or reuse a self-contained local web gallery for browsing Codex-generated images. Use when the user asks to browse Codex generated images, open a local image gallery, inspect ~/.codex/generated_images, view a Codex image output folder, or browse image files produced by Codex./design-style-pickerBatch-generate and compare visual design directions so a user can choose the style they actually want. Use when the user says they cannot describe an abstract visual style, asks for many style options, wants to choose from generated UI/design-system images, rejects outputs as too colorful/too dead/too generic, or needs an existing UI/design system evolved without discarding current assets./interaction-design-boardGenerates several distinct, clickable HTML interaction prototypes for one product surface into a Design Board and collects selection/remix feedback before implementation. Use for multiple UI versions, interaction alternatives, progressive-disclosure options, or when styling is fine but hierarchy/workflow/interaction feels off. Not for static visual-style calibration (use design-style-picker) or a settled CSS tweak./daymade-codex:local-codexfrom daymade-codex
npx claudepluginhub daymade/claude-code-skills --plugin daymade-codexOther plugins' skills for the same job