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★ 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: themode:line ofexternal-agents status <job>(the job id is thejob: <id>line on stderr). A review is alwaysMode: 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--modelor--effort, add themodel:andeffort: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):0ok,1failed,2usage or refused,3blocked by the mode,4Codex unavailable or skipped. On1,2or4, report the first line and the CLI's error and stop: never do the task yourself in Codex's place. On4, point the user toexternal-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-modeis not success. The command records a runblocked-by-mode, exits3, 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 runblocked-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'slog_pathto see which write failed. When the refu
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(external-agents run codex:*) - 02
Bash(external-agents review codex:*) - 03
Bash(external-agents status:*) - 04
Bash(external-agents result:*) - 05
Bash(external-agents cancel:*) - 06
Bash(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), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…