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.

Council-style workflows usually start with independent new-run submissions, feed all first-pass results into a cross-review step, then send those outputs into one final synthesis step.

      • flow.yml

Supported files

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

JavaScript and TypeScript flow files are blocked by safe mode during workflow discovery. Use static flow files for project workflows.

Top-level keys

KeyRequiredPurpose
idyesStable workflow id used by nax run <id>.
titleyesHuman name shown in lists, prompts, and dashboard.
descriptionrecommendedOne-sentence summary.
disablednoSet to true to hide a workflow from nax list, nax run, and the dashboard without deleting its files.
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 - id: synthesize title: Summarize Consensus prompt: prompts/3_synthesize.md action: issue submit: new-run agents: [codex] input: - step: review results: all - step: cross-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