Multi-Step Workflows

Real engineering workflows have multiple steps. In o7, each step is a workflow that main calls with run.

A three-step pipeline

Create build.7:

version 1

workflow plan
  exec
    harness: claude
    prompt_file: prompts/plan.md

workflow implement
  exec
    harness: claude
    prompt_file: prompts/implement.md

workflow test
  exec
    harness: claude
    prompt: "Run the tests. Report pass/fail."

workflow main
  run plan
  run implement
  run test

Prompt files

For longer prompts, use prompt_file instead of inline prompt:

mkdir prompts
echo "Analyze the requirements and write a brief implementation plan." > prompts/plan.md
echo "Implement the plan. Write clean, working code." > prompts/implement.md

Run it

o7 tui build.7

Watch three steps execute in sequence. If any step fails, execution stops.

Pause and resume

Press p to pause mid-run. The run state is saved. Resume later:

o7 resume

This lists your paused runs. Select one to continue from where it stopped.

Inspect a completed run

o7 inspect

Shows all runs. Pick one to see each step's output, timing, and status.