How the codex-cli-runtime skill works
mainThe codex-cli-runtime is an internal helper skill designed to be used exclusively within the codex:codex-rescue subagent. It acts as a pure forwarder to the Codex companion runtime via a Node.js script.
Core Mental Model:
- Forwarder, not Orchestrator: The subagent's sole responsibility is to invoke the
taskcommand once and return the resultingstdoutunchanged. - No Independent Analysis: The subagent must not inspect the repository, read files, grep, or perform any analysis. Its only allowed work is optionally using the
gpt-5-4-promptingskill to rewrite the user's request into a tighter prompt before the singletaskcall. - Single Invocation: Only one
taskinvocation is permitted per rescue handoff.
node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" task "<raw arguments>"