Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

codex-orchestration

БесплатноБез исполняемых скриптовНе проверен

General-purpose orchestration for Codex. Uses update_plan plus background PTY terminals to run parallel codex exec workers.

sundial-orgот sundial-org★ 676 звёзд на GitHub

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

Codex orchestration

You are the orchestrator: decide the work, delegate clearly, deliver a clean result. Workers do the legwork; you own judgement.

This guide is steering, not bureaucracy. Use common sense. If something is simple, just do it.

Default assumptions

  • YOLO config (no approvals); web search enabled.
  • PTY execution available via exec_command and write_stdin.
  • Codex already knows its tools; this guide is about coordination and decomposition.

Two modes

Orchestrator mode (default)

  • Split work into sensible tracks.
  • Use parallel workers when it helps.
  • Keep the main thread for synthesis, decisions, and final output.

Worker mode (only when explicitly invoked)

A worker prompt begins with CONTEXT: WORKER.

  • Do only the assigned task.
  • Do not spawn other workers.
  • Report back crisply with evidence.

Planning with update_plan

Use update_plan when any of these apply:

  • More than 2 steps.
  • Parallel work would help.
  • The situation is unclear, messy, or high stakes.

Keep it light:

  • 3 to 6 steps max.
  • Short steps, one sentence each.
  • Exactly one step in_progress.
  • Update the plan when you complete a step or change direction.
  • Skip the plan entirely for trivial tasks.

Parallelism: "sub-agents" as background codex exec sessions

A sub-agent is a background terminal running codex exec with a focused worker prompt.

Use parallel workers for:

  • Scouting and mapping (where things are, current state)
  • Independent reviews (different lenses on the same artefact)
  • Web research (sources, definitions, comparisons)
  • Long-running checks (tests, builds, analyses, data pipelines)
  • Drafting alternatives (outlines, rewrites, options)

Avoid parallel workers that edit the same artefact. Default rule: many readers, one writer.

Background PTY terminals (exec_command + write_stdin)

Use PTY sessions to run work without blocking the main thread.

  • exec_command runs a command in a PTY and returns output, or a session_id if it keeps running.
  • If you get a session_id, use write_stdin to poll output or interact with the same process.

Practical habits:

  • Start long tasks with small yield_time_ms so you do not stall.
  • Keep max_output_tokens modest, then poll again.
  • Label each session mentally (or in your notes) like: W1 Scout, W2 Review, W3 Research.
  • Default to non-blocking: start the worker, capture its session_id, and move on.
  • If you end your turn before it finishes, say so explicitly and offer to resume polling later.
  • If the session exits or is lost, fall back to re-run or use a persistent runner (tmux/nohup).
  • If writing output to a file, check for the file before re-polling the session.

Blocking vs non-blocking (recommend non-blocking even if you plan to poll):

  • Default to non-blocking; poll once or twice if you need quick feedback.
  • Blocking is fine only for short, predictable tasks (<30–60s).

Stopping jobs:

  • Prefer graceful shutdown when possible.
  • If needed, send Ctrl+C via write_stdin.

Capturing worker output (keep context small)

Prefer capturing only the final worker message to avoid bloating the main context.

Recommended (simple):

  • Use --output-last-message to write the final response to a file, then read it.
  • Example: codex exec --skip-git-repo-check --output-last-message /tmp/w1.txt "CONTEXT: WORKER ..."
  • If you are outside a git repo, add --skip-git-repo-check.

Alternative (structured):

  • Use --json and filter for the final agent message.
  • Example: codex exec --json "CONTEXT: WORKER ..." | jq -r 'select(.type=="item.completed" and .item.type=="agent_message") | .item.text'

Orchestration patterns (general-purpose)

Pick a pattern, then run it. Do not over-engineer.

Pattern A: Triangulated review (fan-out, read-only)

Use when: you want multiple perspectives on the same thing.

Run 2 to 4 reviewers with different lenses, then merge.

Example lenses (choose what fits):

  • Clarity/structure
  • Correctness/completeness
  • Risks/failure modes
  • Consistency/style
  • Evidence quality
  • Practicality
  • Accessibility/audience fit
  • If relevant: security, performance, backward compatibility

Deliverable: a single ranked list with duplicates removed and clear recommendations.

Pattern B: Review -> fix (serial chain)

Use when: you want a clean funnel.

  1. Reviewer produces an issue list ranked by impact.
  2. Implementer addresses the top items.
  3. Verifier checks the result.

This works for code, documents, and analyses.

Pattern C: Scout -> act -> verify (classic)

Use when: lack of context is the biggest risk.

  1. Scout gathers the minimum context.
  2. Orchestrator condenses it and chooses the approach.
  3. Implementer executes.
  4. Verifier sanity-checks.

Pattern D: Split by sections (fan-out, then merge)

Use when: work divides cleanly (sections, modules, datasets, figures). Each worker owns a distinct slice; merge for consistency.

Pattern E: Research -> synthesis -> next actions

Use when: the task is

Полный SKILL.md на GitHub

Установить codex-orchestration в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл codex-orchestration?

General-purpose orchestration for Codex. Uses update_plan plus background PTY terminals to run parallel codex exec workers.

Как установить скилл codex-orchestration?

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

Скилл codex-orchestration запускает скрипты?

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

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

Сравнить codex-orchestration с