Choose node modes and providers

A workflow connects nodes with dependencies. Inside each node, the mode determines how Crewplane handles its input or provider calls.

5 sections20 steps

1. Choose a mode

Start with the job of the node

Before choosing a mode, decide what this step should produce. Use input to make a file available; use parallel for one response or independent responses to the same prompt; use sequential for ordered executor rounds or a review loop. Most provider-backed steps can start with parallel, even when only one agent is needed.

Use foreach when the same child workflow must run for each item in a collection. It is a group rather than a provider call, so it does not declare providers. The mode choice is separate from needs, which orders nodes in the larger workflow.

Four ways to run a node

input Load a file without a provider
parallel Collect independent responses
sequential Run rounds or review a candidate
foreach Run a child workflow for each item

Load a file

Use an input node when the workflow needs a file as context but no interpretation yet. Here standards reads standards.md and saves its contents as an input artifact; it has no provider list or prompt section.

A later node must both depend on standards and include {{standards.output}} in its prompt to receive the text. The dependency establishes order; it does not insert content by itself. The complete example at the end puts both pieces together.

review.task.md
nodes:  - id: standards    mode: input    source: "{{file:standards.md}}"

Load a file

An input node does not invoke a provider.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • File → Input node · load
Read the source file

The file supplies the text for the input node. Crewplane reads it through the file template; this step does not ask a provider to interpret or rewrite its contents.

Make the text available

The input node copies the file into its result. Later prompts can reference that result explicitly; a dependency alone does not insert the text into another node’s prompt.

Send one prompt to providers

Use parallel mode for independent answers to one question. In compare.designs, Codex, Claude, and Gemini each receive the same prompt and produce their own output. Crewplane collects those outputs into sections of one node result; it does not decide which proposal is best.

This fanout happens inside one node. Separate nodes whose dependencies are ready may also run concurrently, but that is a property of the workflow graph. A call limit can make providers wait even in parallel mode.

review.task.md
nodes:  - id: compare.designs    mode: parallel    providers: [codex, claude, gemini]

One node and three providers

The three providers run inside one parallel node.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • Prompt → codex · send
  • Prompt → claude · send
  • Prompt → gemini · send
  • codex → Node result · output
  • claude → Node result · output
  • gemini → Node result · output
One prompt, separate calls

The same authored instructions go to each executor in this node. These provider calls are separate from concurrent branches elsewhere in the workflow.

Codex responds independently

Codex receives the shared prompt as an executor and writes its own output. It does not need to wait for Claude or Gemini to produce a proposal.

Claude responds independently

Claude receives the same prompt as the other executors and writes a separate output. This lets the final result retain its response alongside theirs.

Gemini responds independently

Gemini gets the same instructions and produces its own response. Provider concurrency can be capped, so parallel mode does not promise that all calls start at once.

Collect the responses

Finalization combines the latest selected output from each provider task into sections of the node result. A downstream prompt can reference the combined result explicitly.

Run in order

Choose sequential mode when work must happen in ordered rounds or when a candidate needs review and possible fixes. This example is a review loop: Codex creates a candidate, Claude reviews it, and blocking feedback can go back to Codex while fix attempts remain.

The result is selected from executor output; reviewer responses remain review evidence. A single-provider sequential node has different depth behavior, covered later. For a handoff between distinct tasks, use separate nodes instead.

review.task.md
nodes:  - id: implement    mode: sequential    providers:      - provider: codex        role: executor      - provider: claude        role: reviewer

Executor and reviewer

The reviewer checks the candidate from the executor.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • codex → claude · review
  • claude → codex · feedback
  • codex → Node result · select
Create and revise a candidate

Codex runs as the executor and produces the work for review. If Claude reports blocking issues and a fix is available, Codex receives unresolved feedback for another attempt.

Check the candidate

Claude reviews the executor output and returns a verdict and feedback. A blocking review can lead to a fix; approval can end the current audit.

Use executor output

The result is selected from the executor’s output, while the reviewer’s response remains available in the run record. The node’s exhaustion policy determines whether unapproved work can continue.

2. Set provider options

Connect a provider name to an agent

A provider entry selects an exact name under agents in .crewplane/config.yml. In this minimal CLI configuration, the workflow name codex matches that key. It is an alias chosen in configuration, not a model name or an executable name; a missing or mismatched alias causes validation to fail.

Use this example to update the relevant agent and invoker settings in your existing configuration, keeping other agents you need. provider_kind selects the CLI adapter. The invoker decides whether calls are real: cli starts the configured command, while mock produces sample output without calling it. Mock can use configured names such as codex and claude; the name alone does not select live execution.

.crewplane/config.yml
version: "1.0"agents:  codex:    cli_cmd: ["codex", "exec"]    provider_kind: "codex"    prompt_transport: "stdin"    prompt_transport_arg: "-"settings:  integrations:    invoker:      implementation: "cli"      options: {}

Use a provider name

A string is the shortest way to select an executor. In this complete one-node workflow, providers: [codex] uses the configured agent’s default model and adds no Crewplane reasoning override. The heading matches the node ID, so the sentence below it becomes that node’s prompt.

Use shorthand when the shared agent settings suit this task. If only this invocation needs a different model, reasoning value, or explicit role, use an object instead; editing the shared agent affects other workflows that use it.

review.task.md
---schema_version: "1.0"name: "Project review"nodes:  - id: review.project    mode: parallel    providers: [codex]---
## review.projectReview the project and summarize the highest-risk issues.

One provider

One executor receives the node prompt.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • Prompt → codex · send
  • codex → Node result · save
Send the instructions

The node’s authored prompt supplies the task for Codex. Listing one executor makes this a single provider call, even when the node uses parallel mode.

Run one executor

Codex uses its configured agent defaults when listed by name. It receives the node prompt and produces the response that Crewplane saves for the node.

Save the response

Crewplane writes the executor’s output as the node result. A later node can include it with an output reference when it needs the response in its own prompt.

Use provider objects

Use an object when this node needs an override or an explicit role. Here model and reasoning apply to the Codex executor for this invocation; they do not rewrite the shared codex agent. Claude has a reviewer role and no workflow model or reasoning override.

Provider names must match configured agent aliases. Choose a model supported by the configured provider, or omit model to use its agent default. The sequential node shown here places the executor and reviewer in a review loop.

review.task.md
nodes:  - id: implement    mode: sequential    providers:      - provider: codex        model: gpt-6.1-sol        reasoning: high        role: executor      - provider: claude        role: reviewer

Executor and reviewer

The reviewer checks the candidate from the executor.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • codex → claude · review
  • claude → codex · feedback
  • codex → Node result · select
Create and revise a candidate

Codex runs as the executor and produces the work for review. If Claude reports blocking issues and a fix is available, Codex receives unresolved feedback for another attempt.

Check the candidate

Claude reviews the executor output and returns a verdict and feedback. A blocking review can lead to a fix; approval can end the current audit.

Use executor output

The result is selected from the executor’s output, while the reviewer’s response remains available in the run record. The node’s exhaustion policy determines whether unapproved work can continue.

Choose reasoning effort

reasoning: high requests provider-native effort for the Codex invocation in this example. Omit the field or set it to null to send no Crewplane reasoning override and leave the provider’s normal configuration in control.

Crewplane supports the field with the built-in cli invoker for codex and claude provider kinds. Supported values depend on the provider and model. Do not also specify the native reasoning selector in cli_cmd or extra_args: conflicting selectors fail preflight.

review.task.md
nodes:  - id: implement    mode: sequential    providers:      - provider: codex        model: gpt-6.1-sol        reasoning: high        role: executor      - provider: claude        role: reviewer

Executor and reviewer

The reviewer checks the candidate from the executor.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • codex → claude · review
  • claude → codex · feedback
  • codex → Node result · select
Create and revise a candidate

Codex runs as the executor and produces the work for review. If Claude reports blocking issues and a fix is available, Codex receives unresolved feedback for another attempt.

Check the candidate

Claude reviews the executor output and returns a verdict and feedback. A blocking review can lead to a fix; approval can end the current audit.

Use executor output

The result is selected from the executor’s output, while the reviewer’s response remains available in the run record. The node’s exhaustion policy determines whether unapproved work can continue.

Assign roles

An executor performs the node task and produces output. In a review loop, a reviewer checks the executor’s candidate and returns a verdict and feedback. A string entry or an object without role defaults to executor.

Parallel nodes and single-provider sequential nodes accept executors only. For a multiple-provider sequential node, list all executors first and all reviewers afterward. A reviewer-only list or an all-executor list is not a valid review-loop shape.

review.task.md
nodes:  - id: implement    mode: sequential    providers:      - provider: codex        model: gpt-6.1-sol        reasoning: high        role: executor      - provider: claude        role: reviewer

Executor and reviewer

The reviewer checks the candidate from the executor.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • codex → claude · review
  • claude → codex · feedback
  • codex → Node result · select
Create and revise a candidate

Codex runs as the executor and produces the work for review. If Claude reports blocking issues and a fix is available, Codex receives unresolved feedback for another attempt.

Check the candidate

Claude reviews the executor output and returns a verdict and feedback. A blocking review can lead to a fix; approval can end the current audit.

Use executor output

The result is selected from the executor’s output, while the reviewer’s response remains available in the run record. The node’s exhaustion policy determines whether unapproved work can continue.

3. Use parallel mode

Run one provider

For an ordinary review or summary by one agent, start with a parallel node and one provider. Crewplane renders the matching ## review.project prompt, invokes the configured executor once, and saves its response as the node result.

This is useful even without fanout: another node can depend on review.project and insert {{review.project.output}} into its own prompt. Use sequential mode only when the extra rounds or review behavior are part of the task.

review.task.md
nodes:  - id: review.project    mode: parallel    providers: [codex]

One provider

One executor receives the node prompt.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • Prompt → codex · send
  • codex → Node result · save
Send the instructions

The node’s authored prompt supplies the task for Codex. Listing one executor makes this a single provider call, even when the node uses parallel mode.

Run one executor

Codex uses its configured agent defaults when listed by name. It receives the node prompt and produces the response that Crewplane saves for the node.

Save the response

Crewplane writes the executor’s output as the node result. A later node can include it with an output reference when it needs the response in its own prompt.

Combine provider output

Add providers when independent perspectives are useful. Each receives the same prompt, and {{compare.designs.output}} later contains a section for each selected provider output. The result preserves the responses; it is not a consensus or an automatically synthesized recommendation.

To choose among them, add a downstream node with needs: [compare.designs] and ask it to compare the tradeoffs in {{compare.designs.output}}. That explicit prompt supplies the synthesis step that fanout alone does not perform.

review.task.md
---schema_version: "1.0"name: "Compare designs"nodes:  - id: compare.designs    mode: parallel    providers: [codex, claude, gemini]  - id: recommend    mode: parallel    providers: [codex]    needs: [compare.designs]---
## compare.designsPropose a design and explain its tradeoffs.
## recommendCompare these proposals and recommend one with reasons:{{compare.designs.output}}

Fanout and recommendation

Independent outputs are collected before the downstream recommendation.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • Prompt → codex · send
  • Prompt → claude · send
  • Prompt → gemini · send
  • codex → Node result · output
  • claude → Node result · output
  • gemini → Node result · output
  • Node result → recommend · include output
One prompt, separate calls

The same authored instructions go to each executor in this node. These provider calls are separate from concurrent branches elsewhere in the workflow.

Codex responds independently

Codex receives the shared prompt as an executor and writes its own output. It does not need to wait for Claude or Gemini to produce a proposal.

Claude responds independently

Claude receives the same prompt as the other executors and writes a separate output. This lets the final result retain its response alongside theirs.

Gemini responds independently

Gemini gets the same instructions and produces its own response. Provider concurrency can be capped, so parallel mode does not promise that all calls start at once.

Collect the responses

Finalization combines the latest selected output from each provider task into sections of the node result. A downstream prompt can reference the combined result explicitly.

Synthesize the proposals

After compare.designs completes, this separate node receives its combined output. Its prompt asks the executor to weigh the proposals and explain a recommendation.

Limit provider calls

In your existing .crewplane/config.yml, add max_parallel_invocations: 2 under settings to cap calls within a parallel node. For the three-provider node below, at most two calls can run at once; a call waits until a slot is available. Which provider starts first is not prescribed.

This setting applies to provider calls inside a parallel node. settings.max_concurrent_nodes instead limits concurrent ready nodes in the workflow graph. Set each limit according to the kind of concurrency you need to control.

.crewplane/config.yml
settings:  max_parallel_invocations: 2
review.task.md
nodes:  - id: inspect    mode: parallel    providers: [codex, claude, gemini]

Two independent limits

max_parallel_invocations Caps provider calls within a parallel node
max_concurrent_nodes Caps concurrent ready workflow nodes

Allow failures deliberately

failure_threshold is a parallel-only integer that defaults to zero and must be less than the provider count. With three providers, choose 0, 1, or 2. Here failure_threshold: 1 allows one failed call; two failures exceed the threshold. The shown continue_on_failure: true permits the node to complete anyway and preserves synthetic failure output, so a later consumer can see that some responses failed.

Without that continuation setting, exceeding the threshold fails the node and blocks dependent work. Choose it only when a partial result is useful, and ask the downstream step to account for missing or failed responses rather than treating them as successful proposals.

review.task.md
nodes:  - id: inspect    mode: parallel    providers: [codex, claude, gemini]    failure_threshold: 1    continue_on_failure: true

Three provider outcomes

One failed call Within a threshold of one
Two failed calls Above threshold; continuation preserves failure output

4. Use sequential mode

Run ordered rounds

With one executor, sequential depth is the total number of rounds. depth: 2 runs Codex twice in order even if the first round succeeds; the last completed round supplies the node result. Use this only when repeated execution is intentional.

This is not a retry setting and has no early stop on success. It also differs from a review loop, where depth counts fixes after the initial candidate. Separate nodes make distinct tasks and their inputs easier to see.

review.task.md
nodes:  - id: implement    mode: sequential    providers: [codex]    depth: 2

Sequential executor rounds

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • Round 1 → Round 2 · then
  • Round 2 → Result · select
Produce the first round

The single executor runs once to start the sequence. With depth: 2 this first run is one of two total executor rounds, even if it succeeds.

Run the executor again

The second round follows the first. Crewplane does not automatically insert the previous response into the next prompt, though the executor can inspect continued working files.

Select the last round

The last completed executor round supplies the node result. For a distinct handoff that needs an earlier response, use separate nodes and an explicit output reference.

Make handoffs explicit

Ordered rounds do not automatically insert the first response into the next prompt. A later round can inspect edits in continued working files, but do not assume it receives the earlier response as prompt text.

For a plan followed by implementation, declare two nodes: give the second needs: [plan] and include {{plan.output}} in its prompt. The dependency waits for the plan; the reference supplies the content. The final practice workflow uses the same pattern for review and summary.

plan.task.md
---schema_version: "1.0"name: "Plan and implement"nodes:  - id: plan    mode: parallel    providers: [codex]  - id: implement    mode: parallel    providers: [codex]    needs: [plan]---
## planPropose a small improvement to the project and explain the steps.
## implementImplement this plan and summarize the changes:
{{plan.output}}

A plan passed to implementation

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • plan → implement · needs + plan.output
Create the plan

The plan node sends its own prompt to the configured executor and saves the resulting plan.

Implement after the plan

This node waits for plan and includes its saved output in the prompt, giving the executor the instructions to carry out.

Add reviewers

A multi-provider sequential node is a review loop. Put the executor segment first and the reviewer segment second. Executors run in order to produce a candidate set; reviewers inspect that set in parallel. This is not an automatic plan-to-implementation chain between executors.

In a review loop, depth counts fixes after the first candidate within each audit. audit_rounds can start fresh passes with a reset fix budget and the latest valid candidate; a clean first candidate review ends remaining audits. Approval after a fix can start the next configured audit.

review.task.md
nodes:  - id: implement    mode: sequential    providers:      - provider: codex        role: executor      - provider: claude        role: reviewer

Executor and reviewer

The reviewer checks the candidate from the executor.

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • codex → claude · review
  • claude → codex · feedback
  • codex → Node result · select
Create and revise a candidate

Codex runs as the executor and produces the work for review. If Claude reports blocking issues and a fix is available, Codex receives unresolved feedback for another attempt.

Check the candidate

Claude reviews the executor output and returns a verdict and feedback. A blocking review can lead to a fix; approval can end the current audit.

Use executor output

The result is selected from the executor’s output, while the reviewer’s response remains available in the run record. The node’s exhaustion policy determines whether unapproved work can continue.

Decide what happens without approval

By default, exhaustion uses the continue policy. If the fix budget runs out without approval, a workflow can continue with a valid but unapproved candidate. Inspect the reviewer verdicts and loop status before treating the result as approved.

When later work must wait for approval, set settings.sequential_consensus_on_exhaustion: fatal in the existing config and leave continue_on_failure unset or false on the review node. A node with continue_on_failure: true can continue even under the fatal policy.

.crewplane/config.yml
settings:  sequential_consensus_on_exhaustion: fatal

Choose an exhaustion policy

continue Default: a valid unapproved candidate can continue
fatal Fail on exhaustion when the node does not override it

5. Build and check a workflow

Write the standards file

Create standards.md in the project root. These are the criteria the review will receive; change them to fit your project before using the workflow for real work.

The input node reads this file through {{file:standards.md}}. It saves the text without asking a provider to interpret it. The review node will reference that saved input in its prompt.

standards.md
# Review standards
- Document public behavior and configuration changes.- Add or update tests for changed behavior.- Report uncertain findings rather than guessing.

The companion input

standards.md Project-root text read by the input node
standards.output Saved text available to the review prompt

Connect input, review, and summary

Save this complete file as review.task.md in the project root. It loads the standards, asks one configured codex executor to review the project, and then asks the same configured agent to summarize that review. Both provider nodes use the common one-executor parallel shape.

Each needs edge waits for an upstream node; each output reference inserts its saved text into the next prompt. The input node has no Markdown prompt section. The two provider nodes each have a heading matching their IDs.

review.task.md
---schema_version: "1.0"name: "Standards review"description: "Review a project against its standards and summarize the findings."nodes:  - id: standards    mode: input    source: "{{file:standards.md}}"  - id: review.project    mode: parallel    providers: [codex]    needs: [standards]  - id: summarize    mode: parallel    providers: [codex]    needs: [review.project]---
## review.projectReview the project against these standards. Cite relevant files and distinguish observed issues from uncertainty.
{{standards.output}}
## summarizeSummarize the review below for a project maintainer. Prioritize the findings and include their cited files.
{{review.project.output}}

Standards to summary

Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.

  • standards → review.project · standards.output
  • review.project → summarize · review.project.output
Save the standards

The input node loads standards.md. Its result becomes available for the review prompt without invoking an agent.

Review with context

This node waits for standards and inserts their saved text. Its Codex executor produces the review that the next node can use.

Prepare the summary

The summary waits for review.project and inserts its output into the prompt. Its executor can then prioritize the review and cite the files identified there.

Validate, preview, and run

From the project root, check that codex is an agent alias in .crewplane/config.yml and that both files are present. Validate the workflow and preview its plan; look for standards → review.project → summarize. Validation checks the workflow, settings, providers, and inputs. A dry run prints the plan without invoking providers or writing run artifacts.

Once the plan looks right, run the third command. The configured invoker determines the calls: mock produces sample output, while cli starts the configured provider command. Look under .crewplane/execution-results/<run-key>/ for consolidated results. If validation reports an unknown provider or missing file, check the agent alias and project-root path.

Terminal
crewplane validate review.task.mdcrewplane run --dry-run --tasks review.task.mdcrewplane run --tasks review.task.md

Check and run

Validate Check the workflow, settings, and inputs
Dry run Inspect the compiled plan without provider calls
Run Execute using the configured invoker