Skip to content

YAML format

YAML is the most readable way to author multi-step workflows by hand.

Example

yaml
harness: copilot-cli
model: claude-sonnet-4.5

steps:
  - name: inspect
    prompt: |
      Inspect @src/flightpath/ and identify the biggest reliability risk.

  - name: verify-workspace
    type: script
    script: npm test
    compareSource: exitCode
    returns: "0"
    onFail: stopWorkflow

  - name: implement
    resumeSession: true
    prompt: |
      Fix the issue you identified and update any directly related docs.

finalStep:
  prompt: |
    Review the completed work for obvious edge cases.

Root-level fields you will use first

FieldPurpose
harnessSelect the harness
modelOverride the harness model
stepsOrdered list of work to run
finalStepPrompt or script that runs after the queue
varsWorkflow-level variables for substitution

Prompt step fields you will use first

FieldPurpose
nameHuman-readable label in the dashboard
promptInline prompt text or a path to .prompt.md, .md, or .txt
resumeSessionContinue the previous compatible session
sessionIdResume a specific prior step or exact session
endConditionValidate after the step completes
preConditionGate before the step runs

Script steps

Set type: script to run shell logic directly in the workflow:

yaml
steps:
  - name: lint
    type: script
    script: npm run lint
    compareSource: exitCode
    returns: "0"
    onPass: continue
    onFail: stopWorkflow

Source-available under the FlightPath Commercial License.