Your First Workflow
A workflow is a named sequence of steps in a .7 file. Let's write the smallest possible one.
Create the file
Create greet.7:
version 1
workflow main
exec
harness: claude
prompt: "Say hello in one sentence."
exec delegates to a harness. harness: claude means o7 will invoke the claude binary with the prompt.
Run it
o7 tui greet.7
You'll see the TUI open with one step: main. Watch it run, complete, and show the output.
To run without the TUI:
o7 run greet.7
What just happened
- o7 parsed
greet.7and found workflowmain - It executed the
execstep by calling your configuredclaudeharness - The output was captured and the run was recorded locally
You can inspect past runs:
o7 inspect
Key ideas
- Every
.7file starts withversion 1 - Workflows are named with
workflow <name> execcalls a harness with a promptruncalls another workflow by name- All runs are saved locally — nothing is lost