Workflows
Your agents learn xpo from two skills that xpo init installs:
xpois the reference: how the xpo tools behave, such as statuses, labels, links, milestones, specs, walkthroughs, starting and merging. xpo manages it and refreshes it when you upgrade.xpo-workflowis your workflow: when to do what. When to write a spec, when to stop for you, when to merge. Your project owns it.xpo initwrites it once from a template, and xpo never reads, updates or reports on it afterwards.
You choose the workflow when you set up a project, and you can change or edit it any time.
Guided
The default. The agent works one issue at a time and stops for you at the points that matter:
- Check the board for existing work.
- Propose new features to you before filing them.
- Write a spec and wait for you to answer its open questions.
- Start the issue in its own worktree.
- Implement and test to the spec.
- Hand off for your review, and wait.
- Apply your corrections, spec first.
- Write the walkthrough once you approve.
- Commit and merge.
Bugs it finds within the issue's scope are fixed as part of it, and others are filed. Issues, specs and walkthroughs are written as if public: no local paths or private project names.
Factory
Hands a whole milestone to your agents. You stop only twice per milestone:
- Approve the backlog. The agent splits the milestone's goal into stories and gives you the list. When you approve it, the stories move to PLANNED.
- Final review and sign-off. When the milestone is done, the agent gives you a report of what was built, the decisions it made on your behalf, and any review findings it rejected. You review the finished milestone and sign it off.
In between, it doesn't wait for you:
- Open questions in a spec go to a separate sub-agent with a fresh context. Confident answers become decisions. Uncertain ones are recorded as decisions made on your behalf and flagged for the final review.
- Each change gets an independent review from a second sub-agent before it's merged. The review is calibrated:
- Blockers and majors need a realistic trigger, except in security and data-loss code.
- "PASS, no findings" is a normal result.
- Only a blocker starts another round, and later rounds check only the fixes. After 3 rounds with a blocker, the issue is set BLOCKED.
- The implementing agent may reject an unrealistic finding. It lists each rejection, with its reason, for your final review.
- Approved work is merged, and the agent moves to the next story.
- Work that needs you (credentials, paid services, anything outward-facing or destructive) is set BLOCKED with a note saying what's needed, and the agent moves on.
Planning stays in xpo. Milestones are the delivery targets in build order, stories are 5 story points or fewer, and bigger work becomes an epic with children in the same milestone.
The factory needs an agent that can start sub-agents, such as Claude Code. The template ships the two sub-agent briefs as references/open-questions.md and references/code-review.md next to the skill. Agents without skills get them inline.
None, or your own
Choose none to set up xpo without a workflow, then write your own xpo-workflow skill, or start from a template and edit it. It's an ordinary file in your repo: change any step, add your team's rules, review it like code. xpo will never overwrite it.
Choose a workflow
On a new project, xpo init asks Guided or None. To pick one directly, or to switch later:
xpo init --workflow guided
xpo init --workflow factory
xpo init --workflow none
xpo init --workflow # ask
If a project already has an xpo-workflow skill, xpo init --workflow lists the folders it would replace and asks first. --yes skips the question. Without a terminal and without --yes, it stops and changes nothing.
Where the workflow lives
| Agent | Workflow |
|---|---|
| Claude Code | .claude/skills/xpo-workflow/ |
| Codex | .codex/skills/xpo-workflow/ |
| OpenCode | .opencode/skills/xpo-workflow/ |
| Cursor | .cursor/skills/xpo-workflow/ |
GitHub Copilot, generic AGENTS.md | A ## Workflow section below the xpo managed block |
The board's agent chat loads the xpo skill, and xpo-workflow when the project has one.
Upgrading a project from an earlier xpo? See Upgrading to 1.6.0.