Pi Workflow OS — Productivity skill for Claude Code
XState-backed workflow orchestration tool for Pi agents.
How to install Pi Workflow OS
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open joelhooks/pi-workflow-os and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Pi Workflow OS does
XState-backed workflow orchestration tool for Pi agents.
Alternatives in Productivity
- Pi Subagents — Claude Code like Sub-Agents & Workflow Orchestration for Pi — parallel execution, live widget, fleet view, cus 967 ★
- /workflow Command — Execute complete Research → Plan → Implement workflow using chief-architect orchestration 174 ★
- Workflow Orchestration — A Claude Code skill for disciplined task execution with planning, verification, and self-improvement loops 113 ★
README
pi-workflow-os
XState-backed workflow orchestration for [Pi](https://github.com/earendil-works/pi).
This is our own take on dynamic multi-agent workflows: small deterministic JavaScript workflows fan out to isolated Pi subagents, while an explicit XState runtime tracks lifecycle, events, cancellation, progress projection, and future persistence seams.
Credit / inspiration
Inspired by Michael Livshits' [`pi-dynamic-workflows`](https://github.com/Michaelliv/pi-dynamic-workflows) and Anthropic's dynamic workflow pattern for Claude Code.
This package intentionally keeps the best user-facing bit from that prototype, the simple JavaScript workflow DSL, but changes the runtime spine:
- XState owns workflow lifecycle.
- Workflow events are the durable source of truth.
- Snapshots are projections from events.
- Agent failures are typed internally instead of disappearing into anonymous state.
- Model/isolation options are named as hints until enforcement exists.
Install
pi install npm:pi-workflow-os
Then reload Pi:
/reload
When to use Workflow OS
Workflow OS is most useful when a task needs a custom harness instead of one long agent context:
- many independent items that can fan out and synthesize
- adversarial verification, claim checking, or rubric review
- open-ended loops with explicit stop conditions
- ranking/tournament/exploration work
- untrusted triage where readers must be quarantined from privileged actors
- code migrations/refactors that should use isolated worktrees
Use `workflow_suggest` when unsure. It returns whether `workflow_os` is warranted plus recommended patterns, agent profiles, budget, and concurrency.
{
"task": "Rank 80 resumes and double-check the top ten",
"itemCount": 80,
"requiresVerification": true
}
See `docs/pattern-catalog.md` and `examples/workflows/` for starter templates.
Workflow shape
export const meta = {
name: 'inspect_project',
description: 'Inspect a r
Related Skills
Triage
Start a Linear-backed triage workflow for a new issue
Feature Builder
Engineering Workflow Directive — Feature Implementation & Integrations. Implements a feature-request epic or s
Ve Vibe Board
Task board and session handoff for Claude Code agents. 14 MCP tools for projects, tasks, sessions, and activit
Feature Pro
Pro-level feature development workflow with repository-owned artifacts, canonical capability routing, and evid
Proof Mode
Delivery harness skill — it runs one task from end to end: resolves its context, routes to the pattern skills,
Claude Workflows
Claude Code plugin: two workflow skills layered on Superpowers. fixing-raw-bugs triages unstructured bug repor
Related Agents
Kiro Steering
agent-style v0.4.2 — literature-backed technical-prose writing rules for AI agents
Franky
Implementation worker for one Superloopy criterion or one non-overlapping slice. Use when a bounded build/edit
Technical SEO
Runs deterministic technical SEO audits by page type and reports evidence-backed findings.