Your first workflow
This example shows the pattern most teams end up using first: analyze, implement, validate, then review.
Example
yaml
harness: claude-cli
model: sonnet
steps:
- name: analyze
prompt: |
Inspect @src/flightpath/ and identify the highest-risk
maintainability issue in this module.
- name: implement
resumeSession: true
prompt: |
Fix the issue you identified. Keep the change focused and update
any directly related tests or docs.
endCondition:
script: npm test
returns: "0"
compareSource: exitCode
maxRetries: 2
retryPrompt: |
The validation step failed.
stdout:
{stdout}
stderr:
{stderr}
Fix the remaining issues and try again.
finalStep:
name: review
prompt: |
Review the completed change for edge cases, missing docs,
and obvious follow-up tasks.Why this structure works
analyzecreates the plan inside the harness conversationimplementcontinues that same conversation withresumeSession: true- the end condition stops the workflow from moving on unless the project state passes
finalStepgives you one last pass without mixing the review prompt into the main queue
Tips
- Start with two or three steps, not ten.
- Add validation before you add complexity.
- Keep the harness fixed while you learn a workflow pattern.
- Use
nameon important steps so the dashboard is easier to scan.
After the first run
Open the working file under .flightpath/.queue/ if you want to inspect persisted runtime metadata such as the resolved harness, model, session ID, and timestamps.