agentleFS
keli-wenkeli-wen/cospan/skills/codex/SKILL.md

codex

Skill85 starsChanged 17 days agoMITView on GitHub

Point-to-point headless delegation to OpenAI Codex (`codex`) via cospan ($cospan:codex). Delegate code review, second-opinion debugging, repository research, scoped implementation tasks, or (only when explicitly requested via Codex) raster image generation/editing to OpenAI Codex CLI. Model shortcuts include `sol`, `terra`, `astra`, `luna`. Use when you need explicit model/effort selection or an isolated detached cospan session.

156 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ios-sync, audit-decisions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Saqlain-811Skill

    ios-sync

    Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)

    Also in 7 projects that use this

  • dzhngSkill

    audit-decisions

    Audit the decisions an implementing agent made, not its diff — a pure audit that traces the session's history into a decisions ledger, changes no code, and never blocks an unsupervised run. Working code still embeds architecture the user never chose; surface it because future work inherits it. Use when the user wants to review the decisions the AI made on their behalf, before merging or committing AI-implemented work, when integrating a delegated subagent's pass, or when a fix "works" but might be a point fix.

    Also in 4 projects that use this

  • dzhngSkill

    implement-spec-with-codex

    Run [implement-spec](../implement-spec/SKILL.md) with Codex doing the implementation passes while you orchestrate, integrate, and review. Use when the user asks to implement a spec with Codex, or to run implement-spec with Codex as the implementer.

    Also in 4 projects that use this

  • math-incSkill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 6 projects that use this

  • math-incSkill

    pokemon-player

    Play Pokemon games autonomously via headless emulation. Starts a game server, reads structured game state from RAM, makes strategic decisions, and sends button inputs — all from the terminal.

    Also in 6 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 22 projects that use this

  • +1 more from math-inc
  • Other versions156 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 156

    1. NousResearch/hermes-agent★ 267ksame name
    2. garrytan/gstack★ 143ksame name
    3. dzhng/jevgrep★ 3.2ksame name
    4. ispc/ispc★ 3ksame name
    5. bergside/awesome-design-skills★ 2.9ksame name
    6. dataplat/dbatools★ 2.9ksame name
    7. Lilac-Labs/gini-agent★ 1.9ksame name
    8. Open-Curiosity/gini-agent★ 1.9ksame name
    9. dzhng/skills★ 1.5ksame name
    10. math-inc/OpenGauss★ 1.3ksame name

    146 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 132 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always prefer the bundled cospan MCP tools over raw shell command calls—they run outside host command sandboxing and block cleanly inside a …

    line 12
  2. Very specific:

    Call MCP tool cospan_send with:

    line 15
  3. Very specific:

    Call MCP tool cospan_wait with { "cwd": "<workspace>", "id": "<job_id>", "timeout": "20m" } (or { "cwd": "<workspace>", "ids": ["<id1>", …

    line 25
  4. Very specific:

    If exit_code === 2 (status === "running"), call cospan_wait again (batch timeout returns bounded <= 8 KiB JSON without duplicating …

    line 28
  5. Very specific:

    If exit_code === 5 (status === "attention"), ask the user before calling cospan_continue.

    line 29
  6. Distinctive:

    Never mask a failed or incomplete delegation with a silent host-side substitute—surface the delegation failure first.

    line 39
  7. Very specific:

    When readonly: true was used for a review, present the findings before auto-applying controversial edits if the user only asked for a …

    line 40
  8. Distinctive:

    Run unsandboxed in your workspace directory:

    line 44

“Common” is measured: kept by at least 6 in 10 of the 132 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

$cospan:codex — Delegate to OpenAI Codex (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.

1. Preferred Path: Bundled cospan MCP Tools

Always 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:

  1. Dispatch (cospan_send): Call MCP tool cospan_send with:
    • cwd: required absolute path of your current repository/workspace
    • to: "codex"
    • prompt: your task instructions
    • readonly: true for read-only inspection/review, false (default) when file edits are allowed
    • restricted (optional): true to opt into strict OS sandboxing (defaults to unrestricted)
    • model (optional) / effort (optional) / raw (optional) / timeout (optional, e.g. "60m")
    • Models & effort (verbatim shortcut contract): pass user model shortcuts verbatim to 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.
  2. 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.
    • Batch vs. separate 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.
    • If exit_code === 2 (status === "running"), call cospan_wait again (batch timeout returns bounded <= 8 KiB JSON without duplicating completed bodies).
    • If exit_code === 5 (status === "attention"), ask the user before calling cospan_continue.
  3. Follow-up / Peek / Fast Q&A:
    • Multi-turn continuation in the same codex session: cospan_continue (cwd, id or last: true, prompt with only the delta instruction) -> then cospan_wait on the new job ID.
    • Mid-flight bounded snapshot (<= 8 KiB JSON with phase and touched_files): cospan_observe (cwd, id).
    • Fast zero-tool foreground Q&A: cospan_ask (cwd, to: "codex", prompt).
    • Cancel: cospan_cancel (cwd, id).
  4. Result Handling & Evidence Boundaries:
    • Preserve codex's file:line citations, observed facts vs inferences, and severity ordering verbatim.
    • Never mask a failed or incomplete delegation with a silent host-side substitute—surface the delegation failure first.
    • When readonly: true was used for a review, present the findings before auto-applying controversial edits if the user only asked for a review.

2. CLI Fallback (only if 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

3. Raster Image Generation & Editing (Non-Codex Hosts, Explicit Opt-In)

  • Only when running in a non-Codex host (such as Claude Code or DeepSeek Harness) and the user explicitly asks to generate or edit an image via Codex: read <skill-dir>/references/draw.md (references/draw.md in this skill's directory) before dispatching. Inside Codex itself, use $imagegen directly instead of delegating.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.