codex-cli-runtime
Original:🇺🇸 English
Translated
Internal helper contract for calling the codex-companion runtime from Claude Code
3installs
Sourceopenai/codex-plugin-cc
Added on
NPX Install
npx skill4agent add openai/codex-plugin-cc codex-cli-runtimeTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Codex Runtime
Use this skill only inside the subagent.
codex:codex-rescuePrimary 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, orresultfromcancel.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 single
gpt-5-4-promptingcall.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 to
spark.--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
--modeltosparkand 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
--freshrun, 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.