Skip to Content
ReferenceWorkflow Files

Workflow file reference

A workflow is a directory containing one flow.* file and any prompt files referenced by its steps. It is the durable program for a multi-agent run: it names the steps, which agents run each step, how results feed forward, and what nax must wait for before continuing.

      • flow.yml

Supported files

flow.yml, flow.yaml, flow.json, flow.toml, flow.js, and flow.ts are supported.

Top-level keys

KeyRequiredPurpose
idyesStable workflow id used by nax run <id>.
titleyesHuman name shown in lists, prompts, and dashboard.
descriptionrecommendedOne-sentence summary.
defaultsnoDefault transport, notification, and agents.
stepsyesOrdered workflow steps.

Step keys

KeyValuesPurpose
actionissue, comment, human-reviewSubmission or gate behavior.
submitnew-run, follow-upStart fresh or reuse prior context.
agentsclaude, gemini, codexAgent fan-out targets.
input[{ step, results }]Earlier results to include.
waitForagent-resultsWait until every configured agent has a result.

Example

workflows/review/flow.yml
id: review title: Review description: Review, cross-review, and synthesize findings. defaults: transport: auto agents: [claude, gemini, codex] steps: - id: review title: Review prompt: prompts/1_review.md action: issue submit: new-run agents: [claude, gemini, codex] waitFor: agent-results - id: cross-review title: Cross Review prompt: prompts/2_cross-review.md action: comment submit: follow-up agents: [claude, gemini, codex] input: - step: review results: all waitFor: agent-results
⚠️

Project-local flows with the same id as bundled flows shadow the bundled version. This is useful when intentional and confusing when accidental.

See also

Last updated on