Command Palette

Search for a command to run...

Назад к скиллам
скилл № 53478

Codex

Delegate a task, investigation, or read-only review to OpenAI's Codex CLI as a background job (status, result, cancel, update); delegate only when asked for…

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Codex в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Codex

Arguments. [run <prompt>|review --base <ref>|status [<job>]|result <job>|cancel <job>|update]. A bare request that is not one of the other actions is run.

This skill drives the plugin's external-agents command, which is on the Bash PATH while the plugin is enabled. The command is the only thing that starts Codex; never call codex yourself, and never look up the plugin's install path. Delegate only when the user asks for Codex.

Actions

Action Command Read
run (default): a task (may write) or an investigation (read-only) external-agents run codex --use task|investigate [--add-dir <dir>]... --prompt-file <file> reference/run.md
review: Codex reviews this branch, read-only external-agents review codex --base <ref> [--brief-file <file>] reference/run.md
status, result, cancel external-agents status [<job>], result <job>, cancel <job> reference/jobs.md
update: readiness, CLI facts, version and routing check external-agents update codex reference/update.md
Choosing a model or effort --model, --effort for one run; config keys otherwise reference/routing.md

Reporting a run

  • First reply line: Mode: <mode> (<use>), taken from the job, never from what was asked: the mode: line of external-agents status <job> (the job id is the job: <id> line on stderr). A review is always Mode: read-only (review). When the mode ceiling lowered a write request, say so and name the config key the notice names. When the run passed --model or --effort, add the model: and effort: lines from the same status output and why they were chosen.
  • Then the command's first stdout line, then Codex's final message verbatim. That message is Codex's answer, not yours: relay it, and add your own reading only below it, labeled as yours.
  • Exit codes (scripts/lib/runner.mjs:12): 0 ok, 1 failed, 2 usage or refused, 3 blocked by the mode, 4 Codex unavailable or skipped. On 1, 2 or 4, report the first line and the CLI's error and stop: never do the task yourself in Codex's place. On 4, point the user to external-agents update codex.

Prompts

Write the prompt with the Write tool to a file in a gitignored scratch folder (this repository's convention, else the session scratchpad) and pass it with --prompt-file; the command keeps its own copy in the job folder. Name the files and paths Codex should read; never paste file contents, diffs or logs into the prompt. Codex reads them itself inside its sandbox. Unless the hold_rule config key turns it off (hold_rule.enabled: false), the command opens every prompt with the hold rule (holdRuleFor in scripts/lib/runner.mjs), naming the labels in hold_rule.labels. While it is on, never ask Codex for what it forbids: hold labels, merges and review threads stay with you.

Before a write task, list every directory it will write outside the worktree and outside the temp directories (which the sandbox already allows), pass each with --add-dir and name them in the prompt; pass none when the worktree and temp directories are enough. Codex cannot stage or commit inside its sandbox: tell it to leave Git to you, and stage and commit after the run (reference/run.md).

Background runs

Run every run and review with the Bash tool's run_in_background: a run can last up to codex.timeout_seconds, which can outlast a foreground Bash call (how long one may wait: timeout and output limits), and a call cut off by its own timeout leaves the job without its result. You are notified when it exits, so do not poll. The job id prints only at the end, so while it runs, find it with bare external-agents status. Stop a run with external-agents cancel <job>, which stops Codex's whole process tree; stopping the background Bash task alone may leave Codex running.

Next

/review:council for a ranked, multi-reviewer review of the same change, with Codex as one member.

Gotchas

  • blocked-by-mode is not success. The command records a run blocked-by-mode, exits 3, and still prints the final message whenever the sandbox refused a command, whatever Codex's own exit was; that message may describe work that never happened. Say the run was blocked, give the blocked count and commands from the first line, and never report the task done. Any failed command whose output reads like a refusal records the run blocked-by-mode, including one Codex then worked around, such as a cache write it retried under a temp directory: the command cannot tell the two apart. The first line names the command, not what was refused; read the job's log_path to see which write failed. When the refu
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(external-agents run codex:*)
  2. 02Bash(external-agents review codex:*)
  3. 03Bash(external-agents status:*)
  4. 04Bash(external-agents result:*)
  5. 05Bash(external-agents cancel:*)
  6. 06Bash(external-agents update codex:*)

Вложенные файлы

  • evals/evals.json
  • reference/jobs.md
  • reference/routing.md
  • reference/run.md
  • reference/update.md

FAQ

Что делает скилл Codex?

Delegate a task, investigation, or read-only review to OpenAI's Codex CLI as a background job (status, result, cancel, update); delegate only when asked for Codex. Use when: 'ask Codex', 'Codex review of this branch', 'resume the Codex thread'. Not for a multi-reviewer panel: /review:council.

Как установить скилл Codex?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Codex запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Codex с