Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · OpenAI

codex-cli-runtime — Claude Code skill: install

An internal skill that forwards Claude Code tasks to codex-companion through the codex:codex-rescue subagent.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/codex-plugin-cc --skill codex-cli-runtime -a claude-code
Open on GitHub

What codex-cli-runtime does

codex-cli-runtime defines how Claude Code calls codex-companion. It is restricted to the codex:codex-rescue subagent, which sends a request through scripts/codex-companion.mjs with the task action and returns stdout unchanged.

The rescue subagent makes one task call for each handoff. It handles --resume, --fresh, --model, and --effort before forwarding the request, and maps spark to gpt-5.3-codex-spark. A write-capable run is the default unless the user asks for read-only work, review, diagnosis, or research.

This is an internal contract, not a standalone command. That restriction matters when you wire it into a workflow. The helper runs with node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" task "<raw arguments>"; the rules also prevent Claude Code from inspecting the repository or doing follow-up work.

What it helps with

  • forward a Claude Code task to Codex
  • continue a previous rescue run with --resume
  • run a task with a selected Codex model
  • separate write-capable work from read-only review

Example prompts for the agent

  • Call `codex:codex-rescue` and pass this task: inspect the failing tests in `src/` and fix the cause.
  • Call `codex:codex-rescue` with `--resume` to continue the previous task and apply its top fix.
  • Call `codex:codex-rescue` with `--model spark` to investigate the error without editing files.

How to install codex-cli-runtime

1Skills CLI (Vercel)

npx skills add openai/codex-plugin-cc --skill codex-cli-runtime -a claude-code

2Manually: put the files in place

~/.claude/skills/codex-cli-runtime/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/codex-cli-runtime/

From the same set3

The whole set →

Similar

deep-research bytedance A skill for thorough web research using multi-angle analysis methodology. Use it instead of basic search when you need to understand a topic from all angles before writing content or tackling a complex question. Claude Code CX Codex Cursor +1 2,800installs google-agents-cli-onboarding official google This skill guides agents-cli work across agent creation, testing, deployment, and publishing. Use it when building with ADK. Claude Code Gemini CLI CX Codex 6,434installs bigquery-bigframes official google Generates Python code for BigQuery data processing, analysis, and machine learning with BigFrames. Use it when a DataFrame API fits the task. Claude Code Gemini CLI CX Codex 6,426installs detection-engineering-coverage-evaluation official google This skill checks Google SecOps rule coverage against synthetic events generated from threat intelligence. Use it to find detection gaps and prepare rules to address them. Claude Code Gemini CLI CX Codex 6,394installs link-prospecting every-app Finds realistic link prospects from search results and competitor backlinks, uncovers public contact details, and drafts targeted outreach pitches. Claude Code CX Codex Cursor +1 6,500installs competitive-landscape every-app This skill maps SEO competitors, content themes, keyword coverage, and backlinks. Use it to find gaps across a market. Claude Code CX Codex Cursor +1 6,500installs find-skills vercel-labs Discovers and installs agent skills from skills.sh directly inside your coding assistant. Handy when you need domain-specific workflows for a project. Claude Code CX Codex Cursor +1 4,000,000installs frontend-design official anthropics This skill guides intentional visual design for new interfaces and redesigns. Use it when a generic generated UI is not enough. Claude Code Claude.ai 1,025,790installs

Questions about codex-cli-runtime

How do I install codex-cli-runtime in Claude Code?

Run npx skills add openai/codex-plugin-cc --skill codex-cli-runtime -a claude-code, then run the same command again: npx skills add openai/codex-plugin-cc --skill codex-cli-runtime -a claude-code. The skill file is at ~/.claude/skills/codex-cli-runtime/SKILL.md.

What does codex-cli-runtime do?

It defines an internal contract for the codex:codex-rescue subagent. The subagent calls codex-companion once with the task action and returns its stdout unchanged.

Can codex-cli-runtime handle review without editing files?

Yes. The --write flag is omitted for review, diagnosis, or research. Regular tasks use a write-capable run by default.

Source text

SKILL.md · Apache-2.0
---
name: codex-cli-runtime
description: Internal helper contract for calling the codex-companion runtime from Claude Code
user-invocable: false
---

# 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 `task` once and return that stdout unchanged.
- Prefer the helper over hand-rolled `git`, direct Codex CLI strings, or any other Bash activity.
- Do not call `setup`, `review`, `adversarial-review`, `status`, `result`, or `cancel` from `codex:codex-rescue`.
- Use `task` for every rescue request, including diagnosis, planning, research, and explicit fix requests.
- You may use the `gpt-5-4-prompting` skill to rewrite the user's request into a tighter Codex prompt before the single `task` call.
- 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 `--effort` unset unless the user explicitly requests a specific effort.
- Leave model unset by default. Add `--model` only when the user explicitly asks for one.
- Map `spark` to `--model gpt-5.3-codex-spark`.
- Default to a write-capable Codex run by adding `--write` unless the user explicitly asks for read-only behavior or only wants review, diagnosis, or research without edits.

Command selection:
- Use exactly one `task` invocation per rescue handoff.
- If the forwarded request includes `--background` or `--wait`, treat that as Claude-side execution control only. Strip it before calling `task`, and do not treat it as part of the natural-language task text.
- If the forwarded request includes `--model`, normalize `spark` to `gpt-5.3-codex-spark` and pass it through to `task`.
- If the forwarded request includes `--effort`, pass it through to `task`.
- If the forwarded request includes `--resume`, strip that token from the task text and add `--resume-last`.
- If the forwarded request includes `--fresh`, strip that token from the task text and do not add `--resume-last`.
- `--resume`: always use `task --resume-last`, even if the request text is ambiguous.
- `--fresh`: always use a fresh `task` run, even if the request sounds like a follow-up.
- `--effort`: accepted values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`.
- `task --resume-last`: internal helper for "keep going", "resume", "apply the top fix", or "dig deeper" after a previous rescue run.

Safety rules:
- Default to write-capable Codex work in `codex:codex-rescue` unless the user explicitly asks for read-only behavior.
- 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 `task` command exactly as-is.
- If the Bash call fails or Codex cannot be invoked, return nothing.

© openai · Apache-2.0 · openai/codex-plugin-cc

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor