Your Own Workflows
Make your own agent workflows in the Agents module: choose the work each one covers, edit its phases and steps, publish numbered versions, read the version history, and point a single work item at a different workflow.
On this page
Your agents follow a workflow: an ordered set of steps, grouped into phases, from picking up a work item to finishing it. DevStride comes with built-in workflows, and you can make your own in Agents → Workflows, choose which work each one covers, and point a single work item at a different one.
If your organization makes no workflow of its own, nothing changes: your agents keep following the built-in workflows exactly as before.
Who can change workflows#
Anyone who can open the Agents module can look at every workflow, its draft and its version history. Creating, changing, publishing and archiving a workflow needs Manage Agent Workflows (see Roles & Permissions); without it the buttons are greyed out and say why. An agent whose key holds that permission can save a draft for you, but only a person can publish or archive.
All workflows#
In Agents → Workflows, choose All workflows with the switch at the top. It has two lists:
- Your organization's workflows, each with its newest published version, the work it applies to, how many problems its draft has and when it last changed. Unpublished changes marks one whose draft differs from what agents run.
- Built-in workflows, which come with the DevStride plugin and cannot be changed. Open one to see its version history, or select Duplicate to make your own copy.
To start a workflow, select New workflow, give it a name, and choose what to Start from: a blank workflow, a built-in workflow, or a copy of one of your own. Nothing changes for any agent until you publish it.
Edit a workflow#
Open a workflow to edit it. The form is on one side and a picture of the phases and steps on the other; select a step in either to find it in both.
Starts when#
Choose when the workflow runs: When an agent picks the item up, or Only when started on demand.
Applies to#
Choose the work the workflow covers:
- Work types: the item types it matches. With none chosen, the workflow matches nothing by itself and runs only when someone chooses it on an item or starts it on demand.
- Tags: narrow it to items carrying one of these tags.
- Repositories: narrow it to agents working in one of these repositories. Type an address such as
github.com/owner/nameand press Enter.
A sentence under the fields says, in plain words, what the workflow now matches. When several workflows match one item, the most specific one wins: work type, tag and repository first, then work type and tag, then work type and repository, then work type alone. When two are equally specific, the older workflow wins. A workflow chosen on the item itself beats every match.
Phases and steps#
Select Add phase to add a phase and Add step to add a step to it, choosing the kind of step from the list. Drag the grips to reorder phases, or to move a step within a phase or into another one. Select a step to open its settings:
- Name and Summary: what the step is called and what it does.
- Kind of step: what the step has to achieve and prove before the workflow moves on.
- How it runs: a Built-in skill from the plugin, a Skill file in the repository (a Markdown file such as
.devstride/skills/review.md, read from the branch the agent works on), or a Skill from library, a skill from your organization's Skill Library at the version you choose. - Off: skip an optional step. A step the workflow requires cannot be switched off or removed.
- If it fails: stop the workflow, or carry on to the next step.
Problems#
Problems lists what is wrong with the draft as you edit, naming the step each one is in. Select one to jump to it. An error stops the workflow from being published; a warning does not.
Save and publish#
Save draft keeps your changes without changing what agents run. Publish turns the draft into the workflow's next numbered version. The publish window shows what the version applies to, the oldest plugin version that can run it, and any problems, and lets you add a change note for the version history.
A published version never changes. Agents start using it on the next item they pick up; an agent already working on an item finishes with the version it started with.
Version history#
Open the More actions menu (⋯) on a workflow and choose Version history. Each version shows who published it, when and its change note. Select View to read a version as it was, Edit from this version to make your draft a copy of it, or choose two versions and select Compare to see, step by step, what changed between them. Built-in workflows show the same history, with every version the plugin has shipped.
Every agent run records the workflow and version it followed. You see it on the selected run in Running now, on each row of Past runs and on each run card on the item's Agent Sessions tab, linked to that version's history.
Archive a workflow#
Choose Archive from the More actions menu (⋯). An archived workflow stops matching items, and its name is free for a new workflow straight away. Items that were set to use it go back to automatic matching. Archiving cannot be undone; to use the workflow again, make a copy of it.
Choose a workflow for one item#
Once your organization has a workflow, a work item's sidebar shows an Agent workflow field. It reads:
- Standard workflow when none of your workflows applies, so the built-in workflow runs.
- Default: and a workflow's name when one of your workflows matches the item.
- A workflow's name alone when someone chose it for this item.
Select the field to choose a different workflow for this item, and Clear to go back to automatic matching. If the chosen workflow is archived, not published yet or does not start the way the item is being worked, the field says it is ignored and why, and automatic matching decides. Anyone who can edit the item can change the field; anyone who can open the Agents module sees it.
How agents use your workflows#
Agents running the DevStride Claude Code plugin 4.8.0 or later ask DevStride, at the start of each item, which workflow applies, and follow it for the whole run. When none of yours applies, or DevStride cannot be reached, they follow the built-in workflow. A workflow the agent's plugin cannot run safely, for example one that needs a newer plugin, is set aside for the built-in workflow, and the agent says so in one line. Agents on an older plugin keep following the built-in workflows. See Plugin updates.
A step that runs a skill file from the repository uses the committed file on the branch the agent works on, never an unsaved edit. A file that is not committed, is not text or is larger than 64 KB stops the run with a plain reason. A step that runs a library skill reads exactly the version the step pins; if that text cannot be read or does not match, the step fails and no other skill runs in its place.