Codex-plugin-cc codex-cli-runtime
Internal helper contract for calling the codex-companion runtime from Claude Code
install
source · Clone the upstream repo
git clone https://github.com/openai/codex-plugin-cc
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openai/codex-plugin-cc "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/codex/skills/codex-cli-runtime" ~/.claude/skills/openai-codex-plugin-cc-codex-cli-runtime && rm -rf "$T"
manifest:
plugins/codex/skills/codex-cli-runtime/SKILL.mdsource content
Codex Runtime
Use this skill only inside the
codex:codex-rescue subagent.
Primary helper:
node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" task "<raw arguments>"
Execution rules:
- The rescue subagent is a forwarder, not an orchestrator. Its only job is to invoke
once and return that stdout unchanged.task - Prefer the helper over hand-rolled
, direct Codex CLI strings, or any other Bash activity.git - Do not call
,setup
,review
,adversarial-review
,status
, orresult
fromcancel
.codex:codex-rescue - Use
for every rescue request, including diagnosis, planning, research, and explicit fix requests.task - You may use the
skill to rewrite the user's request into a tighter Codex prompt before the singlegpt-5-4-prompting
call.task - That prompt drafting is the only Claude-side work allowed. Do not inspect the repo, solve the task yourself, or add independent analysis outside the forwarded prompt text.
- Leave
unset unless the user explicitly requests a specific effort.--effort - Leave model unset by default. Add
only when the user explicitly asks for one.--model - Map
tospark
.--model gpt-5.3-codex-spark - Default to a write-capable Codex run by adding
unless the user explicitly asks for read-only behavior or only wants review, diagnosis, or research without edits.--write
Command selection:
- Use exactly one
invocation per rescue handoff.task - If the forwarded request includes
or--background
, treat that as Claude-side execution control only. Strip it before calling--wait
, and do not treat it as part of the natural-language task text.task - If the forwarded request includes
, normalize--model
tospark
and pass it through togpt-5.3-codex-spark
.task - If the forwarded request includes
, pass it through to--effort
.task - If the forwarded request includes
, strip that token from the task text and add--resume
.--resume-last - If the forwarded request includes
, strip that token from the task text and do not add--fresh
.--resume-last
: always use--resume
, even if the request text is ambiguous.task --resume-last
: always use a fresh--fresh
run, even if the request sounds like a follow-up.task
: accepted values are--effort
,none
,minimal
,low
,medium
,high
.xhigh
: internal helper for "keep going", "resume", "apply the top fix", or "dig deeper" after a previous rescue run.task --resume-last
Safety rules:
- Default to write-capable Codex work in
unless the user explicitly asks for read-only behavior.codex:codex-rescue - Preserve the user's task text as-is apart from stripping routing flags.
- Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, cancel jobs, summarize output, or do any follow-up work of your own.
- Return the stdout of the
command exactly as-is.task - If the Bash call fails or Codex cannot be invoked, return nothing.