Workflows
Overview
Workflows let you define repeatable, multi-step processes for board tasks. Each workflow is built from a template — a reusable sequence of steps with assigned roles, descriptions, and optional approval gates. When you apply a template to a task, it creates a workflow run with concrete steps that agents and team members can claim and execute.
Workflows are ideal for processes like feature development, bug triage, content review, technical spikes, or any repeatable pipeline where different people (or AI agents) handle different steps.
Templates
Templates are the blueprints for your workflows. Each template belongs to an idea and contains an ordered list of steps. Access templates from the Workflows tab on any board.
Each step in a template defines:
- Title — what the step does (e.g., "Write unit tests")
- Role — who should execute it (e.g., "QA", "Developer", "UX Designer"). When applied, agents from the idea's pool are automatically matched to steps by role
- Description (optional) — detailed instructions for the executor
- Approval gate (optional) — when enabled, the step pauses for human review before being marked complete
- Expected deliverables (optional) — describe what the step should produce, guiding agents on output format. Separate items with commas or new lines
- Model tier (optional) — Frontier, Standard or Cheap. The step runs on the model your Model Tiers setting gives that tier; Auto leaves the choice to the session
- Effort (optional, needs a tier) — how hard the step thinks: Low, Medium, High, X-High or Max. "Tier's own" (the default) follows your Model Tiers setting, so only pick a level for a step that needs to differ from its tier. Codex has no Max and runs it as X-High
To change one step of an existing template, click it on the Workflows tab. The box has the same settings as a step on a card, and saving updates the template (waiting steps on cards using it pick up the change).
Adding templates: On the Workflows tab, the "+" button opens the Add Template dialog with three tabs:
- My Templates — your personal library, reusable across every board
- Platform Templates — ready-made templates such as Feature Development, Bug Fix and Technical Spike. Every ready-made one has at least one approval step
- Create New — build a template from scratch, step by step
The dialog opens on My Templates if you have any saved, otherwise Platform Templates. When importing, an "Also create labels & auto-rules" checkbox wires up the matching labels and triggers for you. To add one of your own board templates to My Templates, use the "Save to My Templates" button on any template detail view — templates are copied, so there are no cross-board dependencies.
Applying a Workflow
There are three ways to apply a workflow to a task:
- Manually — open a task, find the Workflow section, and click Apply Workflow. Select a template and it will create steps for that task
- When you create the task — the New Task dialog has a Workflow field under Labels. It starts on Automatic, which shows the workflow your labels will attach (or "Automatic: none") and updates as you tick labels. Pick a specific workflow to use that one for this task only, or None for a plain card with no steps
- Workflow triggers — set up a trigger that maps a label to a template. Whenever that label is added to any task, the workflow is automatically applied. For example, map the "bug" label to your Bug Fix template
Each task can have only one active workflow at a time. When applying, agents from the idea's agent team are automatically matched to steps based on their role (exact role first, then an AI match, then the closest match).
Workflow Triggers
Workflow triggers live on the Workflows tab of your board. Each rule maps one label to one template.
- When a matching label is added to a task, the template is applied automatically — no manual intervention needed
- If the task already has an active workflow, the workflow trigger is skipped (no duplicate runs)
- You can retroactively apply a workflow trigger to all existing tasks that already have the matching label but no workflow
Example: Create a workflow trigger mapping the "feature" label to your Feature Development template. Every new feature task automatically gets a structured workflow with design, implementation, testing, and review steps.
In the New Task dialog, triggers are previewed before you press Create. If two of the ticked labels both have triggers, the label you ticked first wins, and the dialog says so. A workflow you pick by hand (or None) overrides the triggers for that task only; the labels are still added.
Workflow Suggestions
Triggers are convenient, but a label doesn't always mean the mapped workflow is the right fit. When a trigger's template looks mismatched for a task, VibeCodes suggests instead of silently attaching it — nothing is applied until a human decides. (Tasks created in the New Task dialog are the exception: the dialog shows the workflow before you press Create, so what it shows is what the task gets.)
Behind the scenes, a quick keyword check sorts both the task and the template into "discovery" vs "build" work. Clear matches attach automatically; anything ambiguous is handed to an AI adjudicator that recommends the best-fitting template from the idea's own set. If the AI is confident the trigger was simply a false alarm it attaches the original; otherwise it opens a suggestion for you to resolve. The AI never substitutes a workflow you didn't choose.
A task with an open suggestion shows a "Workflow suggested" badge on its card (or "Checking workflow fit…" while it's still being evaluated). Open the task to see the suggestion panel, headed "Suggested workflow looks mismatched", with a badge showing whether the reasoning came from AI or the keyword Rules. From there you can:
- Use the recommendation — when the AI recommends a different template, that's the primary action (e.g. Use "Bug Fix")
- Keep — attach the originally-labelled workflow anyway
- Replace… — pick any other template from this idea. The Replace picker lists the AI's recommendation first (badged AI recommends) and the originally-labelled one last (badged originally labelled)
- Remove — dismiss the suggestion and keep the label, without attaching anything
A card with no workflow at all shows a grey dashed "No workflow" pill on the board (not in the Done column, and not on archived cards). When an agent picks up such a card, it looks at the workflows this board already has, records the best fit as a suggestion (headed "An agent suggested a workflow") and stops. Keep or Replace attaches the workflow; Remove means the card doesn't need one, and later agents work on it without asking again. On a board with no workflows, the agent says so and carries on.
Humans only: Keeping, replacing, or removing a suggestion can only be done by a human team member — AI agents can't resolve suggestions. This keeps a person in control of which workflow runs.
Step Lifecycle
Each workflow step progresses through a status lifecycle. Only one transition path is active at a time, and all transitions are protected against concurrent modifications.
pending → in_progress → completed
pending → in_progress → awaiting_approval → completed(approval gate)
pending → in_progress → failed → pending(retry)
pending → skipped
- Pending — waiting to be started. Can be claimed by an agent or started manually
- In Progress — actively being worked on by the assigned agent or team member
- Awaiting Approval — work is done but the step has an approval gate. A human reviewer must approve or request changes
- Completed — step is finished. Its output can be read by subsequent steps
- Failed — step encountered an issue. Can be retried, which resets it to pending
- Skipped — step was deemed not applicable. Counts toward workflow completion
Approval Gates
Steps marked with an approval gate pause for human review. When an agent completes such a step, it moves to Awaiting Approval instead of Completed. Every ready-made workflow has at least one approval step, but a workflow you build yourself can skip approval altogether. A human reviewer then has two options:
- Approve — marks the step as completed and the workflow continues to the next step
- Request Changes — fails the step with feedback. You can choose which earlier step to send work back to (cascade rejection), resetting all steps from that point onward back to pending
Important: Only human users can approve steps — AI agents cannot approve their own (or any other) work. This ensures meaningful human oversight at critical checkpoints.
Cascade Rejection & Rework
When a reviewer requests changes, they can choose to send work back to any earlier step in the pipeline — not just the immediately preceding one. This is called cascade rejection.
- All steps from the selected target onward are reset to pending
- The reviewer's feedback is preserved as a changes_requested comment on the step
- When an agent re-claims a previously failed step, they automatically receive rework instructions — the previous failure output plus all reviewer feedback — so they have full context for the retry
Context Chaining
Each step's output is saved on the step and later steps can read it. To keep hand-offs short, claiming a step lists the earlier steps (title and size) rather than pasting their write-ups; the helper reads the ones it needs with get_task and step_ids. When an agent claims a step, they receive:
- The step's own description and expected deliverables
- A list of the previously completed and skipped steps in the workflow, with a pointer to read their write-ups on demand
- Rework instructions if the step was previously failed
This means later steps can build on earlier work without manual handoffs. For example, a QA agent writing tests can see the code the Developer agent produced in a previous step.
Step Comments
Each step has its own comment thread for communication between agents and reviewers. Comments are typed:
- Comment — general discussion or notes
- Output — the step's write-up. It is saved on the step itself and shown there when the step is done
- Failure — details about why a step failed
- Approval — notes from the approving reviewer
- Changes Requested — feedback from a reviewer who rejected the step
Agent Execution via Claude Code
Workflows are designed to be driven by AI agents through Claude Code connected via MCP. There is no separate "orchestrator" — Claude Code itself reads the workflow and executes steps one by one.
The orchestration loop works as follows:
Claim the next step — call claim_next_step with the task ID. This returns the first pending step, its details, available agents (only when no agent is assigned), and a list of the prior steps
Spawn the agent — the response includes a work_token alongside the persona prompt; hand both to a fresh subagent so it works — and comments — in the assigned agent's voice
Execute the work — perform the step's task (write code, run tests, create designs, etc.) following the step description and agent prompt
Complete the step — the step's helper saves its full write-up on the board with save_step_output and hands back a short summary; the session then calls complete_step without pasting anything (the saved write-up is what gets stored), with the step's token use for the admin cost report. If a step finishes with no cost recorded (other than one deliberately run without a helper, with a reason given), the board warns the team with an amber strip at the top of the board (looking back 14 days) and a note in the card's Workflow section. If the step has an approval gate, it pauses for human review
Loop — go back to step 1 and claim the next pending step. When all steps are done, the workflow run is automatically marked as completed. The session then tells you the card is finished, names the next card (top of To Do, then Backlog) and suggests starting it in a fresh session instead of carrying on in the same conversation
Tip: You can ask Claude Code to "run the workflow on this task" and it will execute the full loop — claiming steps, spawning each step's agent, doing the work, and completing each step until the workflow is finished (it then names the next card and stops) or an approval gate is reached.
Agent Role Matching
When a template is applied to a task, VibeCodes automatically matches agents from the idea's agent team to each step based on the step's role. It happens by itself — there is no button to press. The order is:
- Exact role — the agent's role is the step's role
- AI match — when no role is exact, AI picks the agent whose role fits best. The step shows an AI matched badge
- Closest match — if AI can't decide or isn't available, the closest role by name (one name inside the other, or shared words). The step shows an Approximate badge
If a step has no matching agent, the UI shows a warning banner. Add more agents to the idea's team and the unmatched pending steps are matched again automatically.
Managing Workflow Runs
Once a workflow is applied to a task, you can manage it from the task detail dialog:
- Progress bar — shows how many steps are completed or skipped vs. total
- Step list — click any step to see its full details, output, comments, and action buttons
- Earlier runs — if a task's workflow has been run more than once, its card and step list show only the newest run. Earlier runs stay readable (read-only) under "N earlier runs" below the step list
- Skip — mark a pending step as not applicable. Skipped steps count toward workflow completion
- Retry — reset a failed step back to pending for another attempt
- Reset Workflow — reset all steps back to pending and start over
- Remove Workflow — delete the workflow, including any earlier runs, and all their steps entirely
- Complete or Submit for Approval — in a step's window, finishes the step; on a step that needs your OK the button reads Submit for Approval. A step can also be marked Fail (you are asked to confirm), and a step waiting for you has Approve
- Removing a label that started a workflow — the app asks "Remove label with active workflow?" and lets you Keep workflow or Remove workflow
Template Edit Propagation
When you edit a template's steps, cards already using it follow the edit for the work they have not reached yet. Steps that are done, being worked on, waiting for approval, failed or skipped are never changed. Waiting steps get the new wording and settings; a step is recognised by its name, or by its place if you renamed it. Steps you add are added to the part of the card still to come, and steps you remove are taken out of it, unless someone has commented on that step or saved work on it. A step you add before work a card has already done is not added to that card. A card that has not started at all is simply switched to the new steps, which also drops any hand-made tweaks on it, such as a hand-picked agent or a flipped approval. Archived cards are left as they are. When a step's role changes, its agent is re-picked for the new role; a step whose role is unchanged keeps its agent, including a hand-picked one. After you save, a message says how many cards were updated, and warns you if a step was kept or a card was left as it was because it changed while saving.
Real-time Updates
Workflow step changes are synced in real time. If an agent completes a step or a reviewer approves one, you'll see the status update immediately in the task detail dialog without refreshing. Progress bars, status badges, and step outputs all update live.