@kbediako/codex-orchestrator
v0.1.11
Published
Codex Orchestrator is the CLI + runtime that coordinates Codex-driven runs, pipelines, and delegation MCP tooling. The npm release focuses on running pipelines locally, emitting auditable manifests, and hosting the delegation server.
Readme
Codex Orchestrator
Codex Orchestrator is the CLI + runtime that coordinates Codex-driven runs, pipelines, and delegation MCP tooling. The npm release focuses on running pipelines locally, emitting auditable manifests, and hosting the delegation server.
Install
- Global install (recommended for CLI use):
npm i -g @kbediako/codex-orchestrator - After install, use either
codex-orchestratoror the short aliascodex-orch:codex-orchestrator --version - Or run via npx:
npx @kbediako/codex-orchestrator --version
Node.js >= 20 is required.
Quick start
- Run a pipeline with a task id so artifacts are grouped under
.runs/<task-id>/:
The command prints thecodex-orch start diagnostics --format json --task <task-id>run_idplus the manifest path under.runs/<task-id>/cli/<run-id>/manifest.json. - Watch status:
codex-orch status --run <run-id> --watch --interval 10 - Resume if needed:
codex-orch resume --run <run-id>Tip: if you prefer
npx, replacecodex-orchwithnpx @kbediako/codex-orchestrator. Tip: for multiple commands, you can alsoexport MCP_RUNNER_TASK_ID=<task-id>once.
Delegation MCP server
Run the delegation MCP server over stdio:
codex-orchestrator delegate-server --repo /path/to/repoOptional: add --mode question_only to disable delegate.spawn/pause/cancel, keeping only delegate.question.* + delegate.status in the delegate namespace. GitHub tools remain available when GitHub integration is enabled.
Register it with Codex once, then enable per run:
codex mcp add delegation -- codex-orchestrator delegate-server --repo /path/to/repo
codex -c 'mcp_servers.delegation.enabled=true' ...delegate-server is the canonical name; delegation-server is supported as an alias (older docs may use it).
Delegation flow
flowchart LR
A["Parent Codex run\n(MCP disabled by default)"]
B["Background Codex run\n(delegation enabled)"]
C["Delegation MCP server"]
D["delegate.spawn"]
E["Child run"]
F["delegate.question.enqueue / poll\n(optional back to parent)"]
G["Artifacts\n.runs/<task-id>/cli/<run-id>/manifest.json"]
A --> B --> C --> D --> E
E -. optional .-> F -.-> A
E --> GSkills (bundled)
The release ships skills under skills/. Install them into $CODEX_HOME/skills:
codex-orchestrator skills installOptions:
--forceoverwrites existing files.--codex-home <path>targets a different Codex home directory.
Bundled skills (may vary by release):
delegation-usage
DevTools readiness
Check DevTools readiness (skill + MCP config):
codex-orchestrator doctor --format jsonPrint DevTools MCP setup guidance:
codex-orchestrator devtools setupCommon commands
codex-orchestrator start <pipeline>— run a pipeline.codex-orchestrator plan <pipeline>— preview pipeline stages.codex-orchestrator exec <cmd>— run a one-off command with the exec runtime.codex-orchestrator self-check --format json— JSON health payload.codex-orchestrator mcp serve— Codex MCP stdio server.
What ships in the npm release
- CLI + built-in pipelines
- Delegation MCP server (
delegate-server) - Bundled skills under
skills/ - Schemas and templates needed by the CLI
Repository + contributor guide
Repo internals, development workflows, and deeper architecture notes live in the GitHub repository:
docs/README.md
