Claude Dynamic Workflows — on Codex
A Claude Code skill: type /codex-workflows <task> and a fleet of Codex (GPT) agents fans out across the work — Claude authors the workflow, runs it on your local codex app-server, and streams it back as a live execution map.


↑ a real run: diagnose a checkout latency regression — triage the signals in parallel, race three root-cause workers and cancel the losers, steer the winner on its warm thread, then gate the fix. This is the bundled demo; open it yourself in 10 seconds (below ↓).
You describe a task; Claude Code writes a dynamic-workflow script — agent() / parallel() / pipeline() / phase() / budget — and runs it across dozens of GPT-5 agents instead of Claude subagents. The runtime holds the loop, branching, and intermediate results, so your context only sees the final answer — and you watch it build as an interactive map. And unlike the native one-shot DSL, workers here can stay live — steer a worker on warm context, race several and cancel the losers, or let a controller adapt the plan as results land (Beyond one-shot ↓). It scales one level up, too: add --multi and Claude launches a whole fleet of concurrent workflows and supervises them itself — answering their gates, steering, killing dead ends, forking winners (walkthrough 8 ↓). Great for codebase audits, large migrations, cross-checked research, and idea generation.
This repo is two ways in:
- The
/codex-workflows skill — how you use it day to day, from the Claude Code TUI. Start here ↓
- A standalone runner + viewer — the same engine without Claude Code (a CLI, near the end).
Unofficial / community project. Not affiliated with OpenAI or Anthropic.
"Codex" and "Claude" are trademarks of their respective owners.
See it now (no Codex required)
Want a look at a finished run before installing anything? The viewer is offline and self-contained, and the flagship demo is bundled:
git clone https://github.com/scasella/claude-dynamic-workflows-codex
cd claude-dynamic-workflows-codex
node runner/bin/view-run.js examples/incident-demo --open
That opens the map above — a fictional checkout-latency incident: a parallel triage, a race of three sessionful root-cause workers (the winner is steered for a confirming second turn; the two losers are cancelled, marked ⊘), and a lone fix gate. Click any node for its full result; click the n+1 worker to see its per-turn timeline; F frames the graph, drag to pan, scroll to zoom.
| |
|---|
Map — the run as a DAG. Workers carry a ⟳ N badge and a turn-chip strip. | Worker timeline. Click a worker → every turn on its one warm thread. |
 |  |
Cockpit. A live run paused at a human() gate — answer it right in the page. | Light theme. Toggle Dark/Light top-right; there's a dense Tree layout too (below). |
 |  |
The first thing you'll notice is what's not in the old one-shot model: long-lived workers (⟳ 2 turns), a race that cancelled its losers, and — live — an answer card the run is waiting on. The rest of this guide is how to drive all of that from Claude Code.
Install
As a Claude Code plugin (recommended — updates with every push):
/plugin marketplace add scasella/claude-dynamic-workflows-codex
/plugin install codex-workflows@codex-workflows
Or as a classic skills-dir clone:
git clone https://github.com/scasella/claude-dynamic-workflows-codex ~/.claude/skills/codex-workflows
(Developing from a clone elsewhere? npm run sync-skill pushes the skill
surface — SKILL.md, references/, examples/, runner/ — to
~/.claude/skills/codex-workflows in one command.)
Prerequisites
- Node ≥ 18 (zero npm dependencies to install)
- The
codex CLI on your PATH, logged in: codex login
Either way the skill is now available in Claude Code as /codex-workflows.
Verify Codex is reachable any time with:
npx github:scasella/claude-dynamic-workflows-codex doctor # → state: ready