A Workflow gives Sero a plan to follow. You describe the result, review the steps that Sero creates, and approve the plan before work starts.
Use a Room instead when several agents need to work as a team. Orchestrator explains the difference.
This tutorial uses Lattice, a small puzzle project with six files to check. Three contain valid puzzles and three need repairs. A valid puzzle must have a route from its start to its exit that takes between 8 and 40 moves.
Before you continue:
Make sure Git, Node.js, and the GitHub CLI (gh) are available.
Sign in to the GitHub CLI, then confirm the sign-in:
Set up the project:
Fork the Lattice repository to your GitHub account.
Clone your fork. Replace <your-name> with your GitHub user name:
Open the cloned lattice-levels-demo folder as a workspace in Sero.
Open a terminal in the workspace and run:
The check reports three failed puzzles. This is the expected starting state. Make sure the Git working tree has no changes before you continue.
This tutorial creates a Workflow that checks every puzzle, repairs the failed
ones, tests the repairs, and opens a pull request. It also asks for your approval
before it changes the shared solver in src/solver.js.
Open Orchestrator from the app bar, select Workflows, then select New.

Enter this description:
Check each puzzle file in
levels/separately, with a maximum of ten files. Record whether each puzzle has a solution and whether its shortest route is between 8 and 40 moves. Repair only the puzzles that fail. Do not changesrc/solver.jswithout asking for my approval first. Test each repair. If a repaired puzzle still fails, repair and test it again, up to three times. Open a pull request when all puzzles pass. Use no more than seven steps, 2 million tokens, or 60 minutes.
This description tells Sero to:
src/solver.js;Keep Run in a managed worktree selected. A managed worktree is a separate copy of the repository on its own branch. The Workflow changes that copy, not the files in your open workspace.
Keep Deliver results to set to Automatic. For a Workflow that uses a managed worktree, Automatic delivery opens a pull request.
Select Generate plan →.
Sero shows the proposed steps as a map. No work has started yet.

Each box is one step. An arrow means that the next step waits for the previous
one. A step with the pending status has not started.
Check that the plan will:
The summary above the map shows where the work will happen, where Sero will send the result, what starts the Workflow, and the time and token limits.
Icons on each step show how the Workflow can use its results.


src/solver.js.
See the Workflows reference for all plan icons.
Use Auto, Horizontal, or Vertical to change the direction of the map. Use Vertical for a narrow screen or a long plan.

Use the zoom controls to change the map size. Select Fit to show the full plan in the available space.

Select a step to read its instructions and expected result.

Select Details to read the complete plan as a list. Select Map to return to the diagram.

Use Refine to request any change before you start the Workflow. Describe the change in plain language. Sero creates a revised plan for you to review.

For example:
Ask for my approval before changing the solver.
Or:
If a repaired puzzle still fails, return it to the repair step. Try no more than three times.
You can also use Refine to change instructions, limits, schedules, events, or the order of the steps. Review the complete plan again after each change.
When the plan is correct, select Activate workflow →.

The active step is highlighted. The summary above the plan shows the time and tokens used. Steps that do not depend on each other can run at the same time.
You can close Orchestrator while the Workflow runs. Sero notifies you when it finishes, needs your input, or cannot continue.
The Workflow pauses before it can change src/solver.js.

Read the proposed change. Select an available answer or enter your own response, then select Send answer. The Workflow continues from the same point after you answer. There is no time limit for your response.
The request also appears in the Needs you list on Home. This list shows all Workflows that need your input.

When all steps finish, the Workflow has the Complete status. Open each step to read what it changed and the result of its checks.

Before you accept the result:
src/solver.js did not change unless you approved it.npm run check yourself.Attempt history shows each run, its duration and cost, and the steps that it used. Use it to compare runs or investigate a failure.
Home groups all Workflows by their current status.
