Playbooks
Automate multi-agent workflows with YAML playbooks: a manager agent orchestrates a pipeline of subagent steps, in parallel or in loops, up to human approval gates.
$ paseo plugin add lerenn/playbooks
Playbooks turns a multi-agent workflow into a YAML file in your repository. A manager agent runs it step by step, each step as a subagent, and stops at human gates for your decision.
Example
.paseo/plugins/playbooks/fix.yaml: fix, then review and test in parallel, loop back on
requested changes, and ask a human before finishing. Roles are defined once in roles/<id>/.

title: Fix a bug
inputs:
issue: { type: string, required: true }
steps:
- id: fix
role: developer
inputs: [issue]
prompt: "Fix {{ inputs.issue }} and add a test."
- id: review # review and test run in parallel:
role: reviewer # their roles are read-only
needs: [fix]
outcomes: [ok, changes_requested]
prompt: Review the fix.
on:
changes_requested: { goto: fix, max_loops: 2 }
- id: test
role: tester
needs: [fix]
prompt: Run the test suite.
- id: approve # human gate: Approve or Reject
needs: [review, test]
gate: Merge this fix?
on:
rejected: { goto: fix }
Features
- Workflows as code: playbooks, shared roles and agent defaults live in
.paseo/plugins/playbooks/. See the format reference. - Parallel steps and loops: steps form a graph through
needs, and loops go back withgotoand a limit. After-tasks, such as a retro, run once the run ends. - Script steps: deterministic work, such as waiting for a PR to merge or a deploy to
finish, runs as a script from the playbook's
scripts/folder, with no agent. - Human gates: approve, reject or pick a choice from the panel or in chat.
- Rules enforced by the plugin: it validates playbooks, refuses transitions a playbook does not allow, checks read-only roles with git, and keeps run state across daemon restarts. See how it works.
- Live graph: the Playbooks panel in the workspace sidebar shows each run as it goes. From it you can start, pause, resume or cancel a run, or restart it from a step.
- Every run on one screen: a Playbooks entry in Paseo's left sidebar, badged with the gates waiting for you, lists the runs of all workspaces by playbook, each with its progress across the steps. Decide a gate from there without opening the workspace.
Get started
- Getting started: write, validate and run a first playbook.
- Examples: a pull-request workflow, a release with QA, a capability chaining both through a gate, and a docs check.
- Agent skill: teaches your agents to write playbooks.
Good to know
- Steps may run in any agent mode,
bypassPermissionsincluded. Only start playbooks from repositories you trust. - Every agent except step agents can list, cancel, restart or take over runs, and start manual after-tasks, from any chat. See the tools.
- Requires Paseo 0.14 or later. Run state is kept in
$PASEO_HOME/plugin-data/paseo-playbooks/runs/until the run's worktree is archived. Server code runsgitin workspace folders, and runs script steps (executables from the playbook'sscripts/folder) in the run's worktree.




