Usage tips

Workflows

Long, sprawling conversations are where agents drift. A workflow breaks the job into steps, and each agent step runs in its own session with only the tools it needs. Shell steps run directly on your computer.

When to use a workflow

  • The job has clear steps, such as research, then draft, then review.
  • The steps need different tools: building a feature needs development tools, writing about it needs only your blog domain.
  • Each step should hand over something concrete, such as a file, before the next one starts.
  • You run the same job again and again, and want it done the same way every time.

For a quick, one-off task, a normal session is simpler.

Three kinds of workflow

Sequential

Use it when
You know the steps before you start.
Example
Research a topic, then draft a post, then review it.
Pros
  • Simplest to write and to follow.
  • Each step gets its own tools and model.
  • A failed check can send the work back to an earlier step.
Cons
  • The shape is fixed before the run starts.
  • Nobody independent signs off the result.

With child jobs

Use it when
One agent does the work, and independent reviewers must sign it off.
Example
Write release notes, then separate reviewers check accuracy and tone.
Pros
  • Reviewers check the actual files against criteria you name.
  • The worker cannot mark its own work done.
  • The worker repairs until every criterion passes.
Cons
  • More agents, so slower and costlier.
  • More to set up: the criteria, the files and who checks what.

Dynamic

Use it when
The list of work is only known once the job runs.
Example
Audit a site, then run one agent for every page it finds.
Pros
  • Handles a list of any size, found at run time.
  • Items run in parallel, a few at a time.
  • Each item shows live under its step.
Cons
  • Item progress is not saved with the run, so an interrupted item may run again. Best for read-only item work.
  • Item results do not count as sign-off.
  • Needs the Team plugin in the step’s preset.

You can mix them: a dynamic step lives inside a normal workflow, so a sequential workflow can fan out for one step and carry on in order afterwards.

Get started

Add the Workflow plugin to your preset. Then turn on Help and describe the job:

Make a workflow that researches a topic, drafts a blog post from the research, then reviews the draft against our style guide.

Po picks the kind that fits, starts from a ready-made template for it, sets each step’s preset, domains and model, and checks the workflow before it can run. Say which kind you want if you already know. Launch it from the Workflows panel in the session’s dock, or ask Po to run it.

Watch a run

Open the run to see its jobs and steps. Each step shows its live conversation, and the files it produced appear under Artifacts. A step is not done until it writes the files it promised: Po reminds the agent, and the step fails if they are still missing.

Tips

  • Give each step one job and the smallest set of tools that does it. A smaller session carries less context and gives the model fewer choices.
  • Use a cheaper model for simple steps and keep the strong one for the hard parts.
  • Pair a workflow with the calendar to run it on a schedule.
  • Workflow steps run on your computer with your permissions. They are not sandboxed, so review what a workflow does before you schedule it.