/codex:codex-delegationfrom codex
Delegates coding tasks to Codex in the background for parallel execution, second opinions, or security/architecture analysis. Manages the fire-await-collect loop without user typing /codex commands.
Ships in 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.
None: SKILL.md is the whole skill.
This skill is the policy and the loop for delegating work to Codex without a /codex:* command. Presenting output stays governed by the codex-result-handling skill; prompt shape stays governed by the gpt-5-4-prompting skill. Do not duplicate either — defer to them.
status --json and confirm nothing of the same class is still active.Fire — start the job in the background:
node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" task --background [--write] [--profile <deep|fast>] [--effort <tier>] "<prompt>"
started in the background as <jobId> carries the job id. Record it.--write only when Codex is supposed to edit files; leave it off for analysis and second opinions.--profile <deep|fast> is accepted on task (and its rescue forwarder) only; review and adversarial-review reject it.task only. Reviews detach differently — see below.Await — issue the wait as a background Bash task so the harness notifies on completion instead of blocking the session:
Bash({
command: `node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" status <jobId> --wait --timeout-ms 1800000 --json`,
description: "Await Codex job",
run_in_background: true
})
waitTimedOut is true and the job is still active, re-issue the same wait instead of assuming failure — a timeout is not a verdict.Collect — fetch the stored output once the job is terminal:
node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" result <jobId> --json
codex-result-handling skill — including its rule that review findings are never auto-applied: present them, stop, and ask which ones to fix.review and adversarial-review have no companion-side enqueue: the companion parses --background but always runs the review in the foreground, and no started in the background as <jobId> line is printed. Delegate a review by running the whole command as a background Bash task — the wake IS the collect step, carrying the rendered review on stdout:
Bash({
command: `node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.mjs" review [--base <ref>]`,
description: "Codex review in background",
run_in_background: true
})
adversarial-review [--base <ref>] [focus text] detaches the same way.status and result work on it afterwards.--effort high
for verdict checks), never by re-sending the same brief. Ledger evidence,
2026-08-07: two open-ended xhigh analysis briefs died or hung; both
narrowed re-delegations returned approve-with-corrections and merged.task or adversarial-review; raise --effort when a verdict needs more depth.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zebbern/agent-collab --plugin codex4 skills in this plugin
/codex-cli-runtimeInternal helper contract for calling the codex-companion runtime from Claude Code/codex-result-handlingInternal guidance for presenting Codex helper output back to the user/gpt-5-4-promptingInternal guidance for composing Codex and GPT-5.4 prompts for coding, review, diagnosis, and research tasks inside the Codex Claude Code pluginOther plugins' skills for the same job