/cospan:codexfrom cospan
Delegates tasks to OpenAI Codex CLI via cospan for code review, debugging, repository research, implementation, and raster image generation/editing. Supports model shortcuts and effort selection.
Ships in cospan. 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.
Read when SKILL.md points to them.
codex)$cospan:codex is a persona-free point-to-point delegation primitive. State the concrete task directly in prompt, and select readonly: true (research/review/verification) vs readonly: false (default writable workspace edits). Runs unrestricted by default unless restricted: true or config.json opts into OS sandboxing.
cospan MCP ToolsAlways prefer the bundled cospan MCP tools over raw shell command calls—they run outside host command sandboxing and block cleanly inside a single tool call without polling overhead:
Dispatch (cospan_send):
Call MCP tool cospan_send with:
cwd: required absolute path of your current repository/workspaceto: "codex"prompt: your task instructionsreadonly: true for read-only inspection/review, false (default) when file edits are allowedrestricted (optional): true to opt into strict OS sandboxing (defaults to unrestricted)model (optional) / effort (optional) / raw (optional) / timeout (optional, e.g. "60m")model / --model (sol, terra, astra, luna), pass explicit full model IDs or <provider>/<model> verbatim when specified, or omit model / --model when unspecified so cospan uses effective target defaults (~/.cospan/config.json and <workspace>/.cospan/config.json defaults; pass inherit to defer to Codex CLI settings). Never guess or expand version numbers (such as gpt-6.0-*) or append effort suffixes (such as -medium) on the host side—always pass reasoning effort separately via effort / --effort (supported --effort: low, medium, high, xhigh) and let cospan resolve shortcuts deterministically at runtime.Collect (cospan_wait):
Call MCP tool cospan_wait with { "cwd": "<workspace>", "id": "<job_id>", "timeout": "20m" } (or { "cwd": "<workspace>", "ids": ["<id1>", "<id2>"], "timeout": "20m" } for batch WaitAll).
cospan_wait blocks quietly until the detached worker(s) finish and returns status + full deliverable outputs in one shot.cospan_wait: pass ids: [id1, id2, ...] when the next step needs all parallel outputs together (e.g., merging multi-module reviews or validating parallel subtasks together)—wakes the host only once. Issue separate cospan_wait calls when parallel jobs are independent with uneven runtimes (e.g., 2 min vs. 15 min) and you want to act on whichever finishes first.exit_code === 2 (status === "running"), call cospan_wait again (batch timeout returns bounded <= 8 KiB JSON without duplicating completed bodies).exit_code === 5 (status === "attention"), ask the user before calling cospan_continue.Follow-up / Peek / Fast Q&A:
cospan_continue (cwd, id or last: true, prompt with only the delta instruction) -> then cospan_wait on the new job ID.phase and touched_files): cospan_observe (cwd, id).cospan_ask (cwd, to: "codex", prompt).cospan_cancel (cwd, id).Result Handling & Evidence Boundaries:
file:line citations, observed facts vs inferences, and severity ordering verbatim.readonly: true was used for a review, present the findings before auto-applying controversial edits if the user only asked for a review.cospan MCP server is unavailable)Run unsandboxed in your workspace directory:
node "<skill-dir>/../../bin/cospan.mjs" send --to codex [--readonly] --prompt "<task>"
node "<skill-dir>/../../bin/cospan.mjs" wait <job-id...> --timeout 10m
<skill-dir>/references/draw.md (references/draw.md in this skill's directory) before dispatching. Inside Codex itself, use $imagegen directly instead of delegating.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/agyPoint-to-point headless delegation to Google Antigravity (`agy`) via cospan ($cospan:agy). Delegate repository-wide research, multimodal/large-context analysis, code review, or implementation tasks to Google Antigravity CLI. Model shortcuts include `neon`, `carbon`, `hydrogen`, `opus`, `sonnet`./claudePoint-to-point headless delegation to Anthropic Claude Code (`claude`) via cospan ($cospan:claude). Delegate code review, architectural analysis, repository debugging, or scoped implementation tasks to Anthropic Claude Code CLI. Model shortcuts include `sonnet`, `opus`, `haiku`, `fable`./dshPoint-to-point headless delegation to DeepSeek Harness (`dsh`) via cospan ($cospan:dsh). Delegate repository research, verification, second-opinion debugging, or implementation tasks to DeepSeek Harness CLI. Model shortcuts include `flash`, `pro`, `v4.1-flash`, `v4-pro`.npx claudepluginhub keli-wen/cospan --plugin cospanOther plugins' skills for the same job