Run a workflow
A Crewplane run starts with a human-authored workflow file. Crewplane checks and coordinates the work; configured providers perform the assigned tasks.
1. Prepare and run
Start with a workflow file
A .task.md file has YAML frontmatter for the dependency graph and a prompt section for each provider-backed node. Here needs orders summarize after inspect; {{inspect.output}} inserts the earlier output into its prompt.
---schema_version: "1.0"name: "Review Then Summarize"nodes: - id: inspect mode: parallel providers: ["mock"] findings: true - id: summarize mode: sequential providers: ["mock"] needs: ["inspect"]---
## inspectReview the repository and write the highest-risk findings.
## summarizeSummarize the result from {{inspect.output}} for the final report. Two-node workflow
The dependency orders execution; the output token supplies prompt content.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- inspect → summarize
Produce the first output
The inspect node runs with the mock provider and produces output that the next prompt can refer to. Its parallel mode describes how providers within that node execute.
Wait and use the result
needs: ["inspect"] makes this node wait for inspect. The separate {{inspect.output}} token inserts the earlier output into the prompt; ordering alone would not insert it.
Validate, preview, then run
While editing, run validation separately to catch workflow, config, provider, and template problems. Preview the plan with dry-run, then run the workflow when it looks right. A real run checks workflow and provider setup before tasks start. An interactive run can open the live dashboard when tmux and provider CLI output logs are available; otherwise Crewplane continues and writes run records under .crewplane/.
crewplane validatecrewplane run --dry-runcrewplane run Basic flow
These commands have different effects.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Validate → Dry-run
- Dry-run → Run
Catch problems early
Validation checks the workflow, settings, and referenced prompt resources without running tasks or saving run files. For CLI providers it also checks executable availability; an Ollama plugin validation checks model liveness.
Inspect the plan
Dry-run prints the compiled execution plan and, with filesystem artifacts, a history advisory. It does not invoke providers or write run artifacts, and it skips provider CLI availability checks.
Execute the chosen plan
A real run performs preflight and can execute tasks, skip a matching success, or resume saved work. It writes records you can inspect afterward, even when the live dashboard is unavailable.
Select workflow and config
Without a path, validate and run discover exactly one top-level .task.md in .crewplane/workflows/. Fresh projects include single-agent-review.task.md; advanced examples under example-templates/ are not selected by default. If there are zero or multiple top-level files, select one explicitly.
Commands use .crewplane/config.yml by default. Use --config or -c to select another config; --tasks or -t selects the workflow for run.
crewplane validate .crewplane/workflows/single-agent-review.task.md --config .crewplane/config.ymlcrewplane run --tasks .crewplane/workflows/single-agent-review.task.md --config .crewplane/config.yml Workflow discovery
Explicit paths resolve ambiguous discovery.
Understand validation
crewplane validate [TASKS_FILE] --config .crewplane/config.yml checks the workflow, settings, and prompt files and values; it starts no workflow tasks and saves no run files. It checks CLI availability for CLI providers. With the Ollama plugin, it sends a short liveness prompt to the selected local model, not the workflow prompts. The default mock setup needs no provider CLI.
Validation behavior
Validation can perform a provider liveness check without running workflow tasks.
Read the dry-run advisory
Dry-run prints the compiled plan and, with filesystem artifacts, a skip/resume advisory from existing manifests. It invokes no providers, writes no run artifacts, and skips provider CLI availability checks.
would_execute_full_run means a full run is advised; would_skip indicates a matching success. would_resume <n> node(s) from <run-id> (nodes: <ids>) lists reusable successful nodes. A separate Review checkpoints: <n> checkpoint(s) from <run-id> (nodes: <ids>) lists unfinished review loops, even if the successful-node count is zero.
crewplane run --dry-run --tasks .crewplane/workflows/single-agent-review.task.md Dry-run advisories
The real run checks history again, so the decision can change.
Choose execution options
A non-dry run checks the workflow and provider setup, then may invoke the configured invoker, reuse a matching success, or resume saved work. It writes run records and consolidated results. --no-live uses plain terminal output. --force bypasses same-signature duplicate skip and failed or cancelled run resume.
crewplane runcrewplane run --tasks .crewplane/workflows/single-agent-review.task.mdcrewplane run --no-livecrewplane run --force Run output
The configured invoker runs selected tasks when the history decision calls for execution.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Preflight → History decision
- History decision → Records
Prepare before tasks
Crewplane checks and compiles the workflow and its settings before executing tasks. A real run with failed preflight still writes failure artifacts that can help explain the problem.
Consider earlier work
For a real run, the compiled context is compared with filesystem history. A matching success can be reused, or verified progress from a failed or cancelled run can be resumed; --force bypasses both.
Inspect the decision
Run manifests, logs, and results make the outcome available after the command. The manifest includes signature and resume information, while the summary and event timeline help explain what happened.
2. Understand preflight and identity
Compile the plan before tasks
Validation, dry-run, and real runs perform workflow preflight checks. It compiles the composed workflow into execution order and nodes, render plans, static file resources, workspace source metadata and file locators, token catalog entries, dependencies, provider records, a redacted config snapshot and effective config signature, value fingerprints and metadata, and workflow_signature.
Diagnostics appear before runtime execution. Failed real-run preflight writes failure artifacts. Real execution consumes the compiled plan and bundle; it does not reparse prompt templates or reread original {{file:...}} paths.
Preflight lifecycle
Validation stops after checks; dry-run prints a plan and advisory; real execution makes the history decision.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Compile → Signature
- Signature → History
- History → Run, skip, or resume
Resolve the workflow
Preflight compiles the composed workflow, dependencies, provider records, prompt resources, and relevant settings into a plan. Runtime uses that compiled bundle instead of rereading the original prompt templates and static files.
Identify tracked context
The workflow signature captures the inputs and settings relevant to reuse. Changing tracked context produces a different signature, while observer-only settings such as the dashboard do not determine it.
Look for saved work
For real execution with filesystem history, Crewplane checks for a matching success or resumable failed or cancelled run. A dry-run can show an advisory, but the real run checks again.
Follow the selected path
Depending on the checks, Crewplane executes tasks, reuses a matching successful result, or restores verified progress. Manifests and results record the decision so it can be inspected later.
Recognize the three identifiers
The workflow ID identifies a workflow in artifact paths. A run ID identifies one attempt. The run key combines the two and names its directories under both .crewplane/execution-stages/ and .crewplane/execution-results/. Use the full run key wherever a path says <run-key>.
Example identifiers
These IDs show how a run key combines workflow and attempt.
Understand what changes the signature
Duplicate detection uses workflow_signature: composed and referenced workflow files, dependencies, static file hashes, workspace locator facts, relevant env/var/config fingerprints, provider execution settings, artifact-scoped integration options, and execution policy. Changing tracked inputs or settings produces a different signature.
Observer-only UI settings, branch-export fields, and presentation-only log_level are excluded. The default workspace cache root is excluded unless settings.workspace.identity.include_cache_root is true. Review-loop ceilings and consensus policy participate only when the compiled plan contains a sequential reviewer loop.
Signature inputs
The signature represents the tracked context used to compare history.
3. Skip or resume saved work
Recognize a duplicate skip
A same-signature successful run can be reused. Provider checks still run before tasks are skipped, including Ollama model liveness when that plugin is selected. Identical context detected signals a usable earlier success and may name its run ID; the artifact directory uses the full run key.
Preview with crewplane run --dry-run. Use crewplane run --force to create a new run ID and rerun selected nodes, bypassing skip and resume.
.crewplane/execution-stages/<run-key>/manifests/run.json.crewplane/execution-results/<run-key>/ Duplicate decision
The manifest and results preserve evidence of the matching run.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Matching signature → Provider checks
- Provider checks → Reuse
Find the same context
A matching signature means the tracked workflow, inputs, and settings match an earlier context. Crewplane also needs a usable successful result before it can skip the workflow’s tasks.
Check providers first
A duplicate skip still performs provider checks before skipping tasks. For example, an Ollama plugin checks that the selected local model responds, even when previous workflow results can be reused.
Reuse the saved result
When the earlier success is usable, Crewplane skips workflow tasks and reports Identical context detected. Use --force when you want a new run to execute the selected nodes again.
Resume after failure or cancellation
Rerun crewplane run with the same workflow and config and without --force. With built-in filesystem storage, Crewplane first checks for a matching reusable success. Otherwise it can create a new run and copy verified completed nodes from one matching failed or cancelled run. Unfinished nodes restart except when a review loop has a usable checkpoint.
Use dry-run to preview completed nodes and review checkpoints. The real run checks again. --force bypasses resume and reruns every selected node.
Resume decision
A matching success can be reused; otherwise a new run may restore verified progress.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Check saved history → Prior success · usable success
- Check saved history → Failed or cancelled run · otherwise, matching attempt
- Check saved history → No reusable history · no reusable history
- Failed or cancelled run → Unfinished work · after restoring progress
Choose a history outcome
With filesystem storage, Crewplane first looks for a reusable matching success. If none is usable, it can look for progress from a matching failed or cancelled run; without eligible progress, work starts from the beginning.
Look for a complete result
Crewplane first checks for a usable successful run with matching inputs and settings. If it finds one, it can reuse that result instead of resuming a failed or cancelled attempt.
Restore verified progress
When there is no reusable success, Crewplane can create a new run using verified completed nodes from one matching failed or cancelled run. Review checkpoints are considered separately from completed nodes.
Start without saved progress
When no matching saved work can be reused, Crewplane runs the selected work from the beginning. A dry-run can preview the history decision, but the real run checks again before proceeding.
Continue unfinished work
An unfinished node normally starts again. A sequential review loop with a usable checkpoint can continue from saved progress, while an interrupted phase runs in full again.
Continue a review loop from a checkpoint
Sequential review loops save checkpoints after completed phases. Executor phases produce or revise work; reviewer phases check it. If a phase is interrupted or a provider error stops it, that entire phase runs again. For example, after a saved executor phase, interrupted review calls all reviewers again, even those already finished.
Resume preserves review results, feedback, attempt counts, and audit progress; rejected attempts still count toward limits. A failure from review rules or required findings checks cannot be bypassed with an older checkpoint. If only saving or cleanup failed after review completed, a checkpoint can retry those steps without calling providers. Dependent nodes wait until the resumed node succeeds.
Review checkpoint
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Executors → Reviewers
- Reviewers → Dependents
Save completed work
An executor phase produces or revises the candidate. Once the phase completes, its checkpoint can preserve that work for a later resume, subject to the saved files passing reuse checks.
Repeat an interrupted review
If the reviewer phase is interrupted after the executor checkpoint, resume reuses the saved executor output and calls every reviewer again, including reviewers that finished before the interruption.
Wait for a successful node
A downstream node cannot proceed just because a checkpoint exists. It waits until the resumed review-loop node completes successfully, including any remaining review, result saving, and cleanup.
Check whether saved progress is usable
Checkpoint files must remain intact. Managed workspace checkpoints also need workspace records and Git bundles; those can remain usable after temporary workspace folders are cleaned. For direct project execution, project contents must match the recorded state, and concurrent work that makes the comparison unreliable prevents reuse. Resume does not undo project changes.
Without a usable checkpoint an unfinished loop starts over. If a selected checkpoint fails during restoration, Crewplane reports an error and does not automatically restart the loop.
Checkpoint requirements
Saved work is reused only when its required state can be verified.
Inspect what happened
Open manifests/run.json, logs/summary.md, logs/events.ndjson, and the results directory under the full run key. The manifest records workflow_signature, resumed_nodes, resumed_review_checkpoints, resume_source_run_id, and resume_source_run_key_name.
A resumed node stage also contains <node-id>/resume-source.json. The terminal phrase Identical context detected identifies reuse of a successful same-signature run.
Run evidence
These records explain the reuse decision.
4. Run more than once
Force a second run
For a workflow that has not run before, run it once and then use --force to inspect the changed project again. A matching earlier success would otherwise be eligible for duplicate skip.
crewplane runcrewplane run --force Two executions
The second command creates a new run and bypasses matching history.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- First run → Forced run
Inspect and change files
The first run can leave edits in the project directory. Those edits are part of the current project state that a later forced execution will encounter.
Run again deliberately
--force creates a new run and bypasses duplicate skip and resume. The workflow starts again against the current project files, so it can inspect the effects of the first run.
Set a repeat count
Add repeat_force_run_count: 2 to run twice with one command. Replace codex with a provider configured in .crewplane/config.yml. Repeated runs require settings.workspace.enabled: false and no worktrees declarations in the workflow or its imports, even unused declarations.
Crewplane applies force to both runs, including the first; adding --force does not increase the count. Each run starts from the beginning and uses current project files, including prior edits.
---schema_version: "1.0"name: "Cleanup Workflow Example"repeat_force_run_count: 2nodes: - id: cleanup_example mode: sequential providers: ["codex"]---
## cleanup_exampleInspect the current project and fix worthwhile cleanup candidates.If nothing needs cleanup, report that result successfully. Repeat count
The count schedules separate forced runs.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Run 1 → Reload
- Reload → Run 2
Force the first execution
With repeat_force_run_count: 2, Crewplane forces both executions, including the first. This avoids a matching earlier result causing the first pass to be skipped.
Read current inputs again
Between runs, Crewplane reloads the workflow, imports, and config. Project edits from the previous run remain in place and can affect what the next run sees.
Execute the second pass
The second run starts from the beginning with its own run ID. Repeating this way requires workspace support to be disabled and no worktree declarations in the workflow or its imports.
Understand repeat boundaries
Each successful run has its own run ID and saved results. Crewplane finishes cleanup and releases the run lock before the next run. Success continues even when there is nothing to clean; failure or cancellation stops remaining runs, leaving earlier results and project edits in place.
The count is read when the command starts, so later edits or removal do not change that command’s total or workspace requirement. A new command reads it again. Dry-run previews only the first run and reports the planned total. Validation and dry-run save no run files or start tasks; Ollama validation still checks model liveness, while dry-run skips that check.
Repeated run lifecycle
Earlier results and edits remain if a later run stops.
Hover or focus a node to preview its explanation; click to keep it.Tap a node to select its explanation.
- Successful run → Release lock
- Release lock → Next run
Finish the current run
Each successful pass saves its own results and completes cleanup before the next begins. A failure or cancellation stops the remaining passes, while earlier results and project edits remain.
Allow the next run to start
Crewplane releases the run lock between passes. This boundary comes after cleanup, including a successful cleanup that had no work to perform.
Reload for the next pass
The next execution reads the workflow, imports, and config again and uses the current project files. The total repeat count was fixed when the command started, even if the file now says otherwise.
Use the supported artifact backend
The built-in filesystem artifact backend supports normal non-dry runs. A custom replacement must implement equivalent capabilities for locks, skip/resume history, full-run output, and workspace lineage.
Artifact backend capabilities
Resume relies on the built-in filesystem storage described in this guide.