You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Declarative Dynamic Workflows foundation for Codex #25446
I would like to propose an experimental foundation for declarative Dynamic Workflows in Codex.
I understand from docs/contributing.md that unsolicited PRs are not currently accepted, so I am opening this as a proposal first rather than requesting code review directly.
Codex already has subagent and MultiAgentV2 infrastructure. A workflow layer could provide a typed foundation for repeatable, bounded, inspectable multi-agent orchestration without placing all intermediate orchestration state inside the main model context.
The goal is not to add a broad user-facing workflow runtime immediately. The goal is to establish a conservative foundation that can later support workflows safely.
Prototype scope
The prototype includes:
a standalone codex-workflows crate
TOML workflow manifest parsing and validation
strict unknown-field rejection
deterministic DAG validation and phase waves
an in-memory workflow run store
a mock workflow executor
an async-compatible workflow scheduler/executor abstraction
a private core-side MultiAgent workflow executor adapter
a minimal CLI validation command:
codex workflows validate <path>### Additional information
_No response_
I reviewed #24721. It is closely related and describes the broader product concept of user-defined Codex workflows.
I think this issue may still be useful as a more implementation-oriented follow-up/prototype. The scope here is intentionally narrower:
standalone codex-workflows crate
TOML manifest parsing and validation
deterministic DAG validation and phase waves
mock scheduler/executor foundation
async executor abstraction
private core-side MultiAgent adapter
CLI-only manifest validation command
This proposal does not try to define the full UX surface yet, such as slash-command workflows, workflow progress panels, persistent workflow state, JavaScript workflow scripts, or runtime workflow execution exposed to users.
If maintainers prefer to keep the discussion centralized in #24721, I’m happy to close this and move the implementation notes/prototype link there.
Thanks for the feedback. The strongest initial slice may be the deterministic workflow foundation rather than the full runtime surface. If maintainers are interested, I can narrow this down to a first invited PR containing only:
standalone codex workflows crate
manifest parsing and validation
deterministic DAG validation
stable phase waves
focused tests
The broader runtime pieces can stay out of scope until the direction is confirmed.
Thanks for the additional feedback from others here.
I think the strongest low-risk first slice is not a full user-facing workflow runtime, but a deterministic workflow validation foundation that could later support whatever product surface Codex chooses.
A narrow invited PR could be limited to:
a standalone codex-workflows crate
TOML manifest parsing
strict unknown-field rejection
deterministic DAG validation
stable phase/wave computation
focused tests
no runtime execution exposed to users
no UX changes
no persistent state
no JavaScript workflow scripts
no slash-command workflow surface
This keeps the proposal separate from the broader product question in #24721.
On the “skills referencing other skills” question raised there: the main difference is that a workflow needs explicit structure and validation before execution:
declared inputs
declared nodes
dependency graph validation
cycle detection
deterministic execution phases
stable handoff boundaries
inspectable failure points
A skill chain can describe a process in natural language, but it does not give Codex a typed, validated execution graph. The proposed foundation is mostly about making the orchestration boundary explicit and safe, not about adding a broad workflow product immediately.
If this direction aligns with the team’s thinking, I can reduce my prototype to only the validation/DAG foundation and wait for an explicit invitation before opening any PR.
You can try a related implementation with the LazyMind plugin for Codex Desktop, without switching agents. I'm one of the developers. It provides declared steps, inputs/outputs, and dependency validation, alongside a panel for running and reviewing workflows.
Watch the demo and try the plugin with a small workflow from your proposal. We'd welcome a comparison with your prototype.
Activity
github-actions commentedon May 31, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ErenAri commentedon May 31, 2026
Thanks for the duplicate suggestion.
I reviewed #24721. It is closely related and describes the broader product concept of user-defined Codex workflows.
I think this issue may still be useful as a more implementation-oriented follow-up/prototype. The scope here is intentionally narrower:
codex-workflowscrateThis proposal does not try to define the full UX surface yet, such as slash-command workflows, workflow progress panels, persistent workflow state, JavaScript workflow scripts, or runtime workflow execution exposed to users.
If maintainers prefer to keep the discussion centralized in #24721, I’m happy to close this and move the implementation notes/prototype link there.
xing5 commentedon Jun 11, 2026
deterministic DAG validation and phase waves -> this is the way.
theepicsaxguy commentedon Jun 15, 2026
I agree with this. Claude code implemented dynamic workflows recently and it is hugely superior to subagents when doing large scale refactoring etc.
ErenAri commentedon Jun 15, 2026
Thanks for the feedback. The strongest initial slice may be the deterministic workflow foundation rather than the full runtime surface. If maintainers are interested, I can narrow this down to a first invited PR containing only:
The broader runtime pieces can stay out of scope until the direction is confirmed.
new-TonyWang commentedon Jun 26, 2026
This is what I need most !
ErenAri commentedon Jun 26, 2026
Thanks for the additional feedback from others here.
I think the strongest low-risk first slice is not a full user-facing workflow runtime, but a deterministic workflow validation foundation that could later support whatever product surface Codex chooses.
A narrow invited PR could be limited to:
codex-workflowscrateThis keeps the proposal separate from the broader product question in #24721.
On the “skills referencing other skills” question raised there: the main difference is that a workflow needs explicit structure and validation before execution:
A skill chain can describe a process in natural language, but it does not give Codex a typed, validated execution graph. The proposed foundation is mostly about making the orchestration boundary explicit and safe, not about adding a broad workflow product immediately.
If this direction aligns with the team’s thinking, I can reduce my prototype to only the validation/DAG foundation and wait for an explicit invitation before opening any PR.
ErenAri commentedon Oct 15, 2026
Sounds good i'll try
Marcelo-Henry commentedon Oct 25, 2026
I'm down! Idk if this will be helpful, but I already reverse-enginnered Claude Code's Dynamic Workflows on my CLI!