Workflows
A workflow hands a task to a team of specialist agents instead of one. It is a graph of phases where work comes back until it clears your bar: a Reviewer files findings, a Coder fixes or disputes them, and they go round until the bar passes or they need you.
A workflow is your process, written down. The shipped ones started as cycles the Recur team drove by hand: /review in one chat, /fix-findings in another, /re-review, and again until the findings ran out. A policy sets the bar the work has to clear, and you can copy any workflow or write your own. See How we work.
Start a workflow wherever the work is:
- From any chat. Type a workflow's slash command in any task workspace chat, whether Ask, Plan, Agent, or Review. Recur opens an Autopilot chat beside it and starts the run.
/review-and-fixneeds no description: it reviews whatever is in the workspace, including changes you wrote yourself. - As a new task. Pick Autopilot in New Task, including when you start from an issue.
- On a schedule. A schedule starts a workflow with nobody at the keyboard.
Autopilot is the chat mode that runs workflows. To start one directly, pick a workflow and a policy in the composer, describe the task, and send. The workflow walks its phases while you watch the chat, the diff, and the findings.
Shipped workflows
| Workflow | What it does | Slash command |
|---|---|---|
| To a PR | Planner writes a plan, Coder implements it, Reviewer and Coder converge on the diff, then the workflow opens a pull request. Includes an on-demand security phase. | /to-a-pr |
| Review & fix | Starts at review on the diff already in the workspace. Reviewer files findings and Coder fixes them until the bar passes. No PR. | /review-and-fix |
| Review & fix to a PR | Review & fix, then opens or updates a pull request. | /review-to-pr |
| Security review & fix | Review & fix with the Security reviewer, focused on auth, secrets, tokens, and permission checks. | /security-review |
| Docs | Planner drafts a documentation plan, Writer writes it, and Editor reviews until no findings remain. The result is published as an artifact, not a PR. | /write-docs |
Settings → Workflows sets the default workflow and policy for new work.
The Maestro
Every workflow has a conductor, the Maestro. You talk to the Maestro, not the specialists. It reports where the run stands, edits the plan for you, extends rounds when a review loop escalates, re-enters a phase, and dispatches on-demand phases. It does not do the phase work itself.
Roles
Each specialist is a role with its own prompt, chat mode, and tools. The shipped roles are Maestro, Planner, Coder, Reviewer, Security reviewer, QA, Writer, and Editor. Reviewers can only read and file findings, and the implementer and reviewer are always separate agents. Each role uses the Settings → Models default for its mode.
Phases
A workflow is a graph of phases. Each phase is one of these kinds:
| Kind | What happens |
|---|---|
plan | The Planner produces a plan. The policy decides whether the workflow waits for your approval. |
converge | The review loop. The implementer works, the reviewer files findings by severity, and the implementer fixes or disputes them. Rounds repeat until the open findings clear the policy's bar or the round limit is hit. |
verify | The QA role checks the result against the plan in a real browser and reports pass or fail with evidence. A rejected result can go back to an earlier phase, usually converge. |
run | Runs a command, such as mise run check, in the worktree. A failure can send the work back to an earlier phase with the command's output. |
ensure_pr | Commits, pushes, and opens a pull request with an agent-written description, or updates the existing one. |
artifact | Publishes the result as a document instead of a PR. |
Run a command
A run phase makes one of your own commands part of the bar, with no agent involved. Exit code 0 moves on to the next phase. This workflow builds and reviews, runs the project's checks, and opens a pull request only when they pass:
[[workflow]]
id = "team.workflows.checked-pr"
name = "Checked PR"
conductor = "recur.roles.maestro"
entry = "build"
reenter = ["build"]
[[workflow.phase]]
id = "build"
uses = "converge"
next = "check"
[workflow.phase.roles]
implementer = "recur.roles.coder"
reviewer = "recur.roles.reviewer"
[[workflow.phase]]
id = "check"
uses = "run"
command = "mise run check"
on_reject = "build"
next = "pr"
[[workflow.phase]]
id = "pr"
uses = "ensure_pr"When mise run check fails, on_reject sends the work back to build. The Coder's next turn gets the exit code and the last 40 lines of output, and the check runs again after the fix. Without on_reject, the policy decides whether the run fails, asks you, or moves on. The command is stopped after 30 minutes unless the phase or policy sets a timeout.
None of the shipped workflows include a run phase. Put this one in your own bundle's bundle.toml (add a [bundle] table), or ask an agent to write it for you. See Run a command for every option.
On-demand and verify phases
A phase can be on demand. The To a PR security phase runs only when the diff touches auth, secrets, tokens, or permission checks, or when you ask the Maestro for it.
None of the shipped workflows include a verify phase. A workflow that does needs project Runs and an app URL so QA can start and open your app.
Policies
A policy sets the bar without changing the workflow.
| Policy | Findings that must be closed | Round limit | At the limit | Plan approval |
|---|---|---|---|---|
| Cautious | All severities | 2 | Ask you | Every plan |
| Balanced | Medium, high, critical | 4 | Ask you | Structured plans |
| Aggressive | High, critical | 6 | Proceed | Never |
A workflow can override parts of its policy. Security review & fix always proceeds at its limit, and Docs closes every finding.
A finished workflow does not always mean zero findings. Check the review and any remaining findings before you land the work, especially with a policy that proceeds at its limit.
Parallel child workspaces
For a structured plan, ready steps run in child workspaces, each with its own branch and worktree. Steps that touch the same files share a child workspace.
Each child implements and reviews its work under the parent's policy. A settled child merges back as soon as it is ready, and dependent steps can start while other children are still working. A handoff can also trigger a revised plan.
Live children appear nested under their parent in the sidebar. The parent chat shows progress and links to each child. Merged children are archived, and their links remain. If a child needs your answer, it and its dependents wait while independent siblings continue.
The parent reviews the combined changes before finishing. Children do not create children of their own.
Customize
Workflows, roles, phases, and policies are bundle contributions ([[workflow]], [[role]], and [[policy]]). Write your own workflow with custom roles and a prompt for each phase, or copy the shipped Workflows bundle to change a prompt, swap a role, or wire a new graph. See Workflows, roles & policies for a complete example and every field.
You can also ask an agent in Agent mode: "Write a workflow that reviews, runs mise run check, and opens a PR, then install it." It writes the bundle in the worktree and installs it with its install_bundle tool. Recur lints the bundle first and asks you to approve every install, even with Bypass tool permissions on. The prompt lists what the bundle adds and anything in it that runs shell code. After that, the workflow is in the picker.