pi-workflow

Named, repeatable multi-step workflows for Pi — research, review and spec checks coordinated across subagents with resumable run records.

Stars
★ 391
Last updated
14d ago
FARS reviewed
Nov 26, 2026
License
MIT
Primary language
JavaScript

At a glance

How it runs
Agent plugin / skillCLI
Works with
Platform-specific
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Node.js >=22.19.0PimacOS or Linux (native Windows unsupported; use WSL2)Shell / CLINetwork accessLocal filesystem
Typical use
Research teams that need breadth plus verification on a repository or document set and want a cited, evidence-qualified report from deep-research.
Not a fit if
  • Developers working only on native Windows (WSL2 required)
  • Teams unwilling to approve a Goal once before automated retries run
Maintenance
Commits in the last 30 dayslast commit 2026-11-11

What does this agent do, and when should you use it?

pi-workflow is a Pi extension that turns natural-language tasks into deterministic stage graphs. Built on @agwab/pi-subagent, it coordinates Pi subagent workers across steps, passes results forward, and records each run under .pi/workflows so it can be inspected, stopped or resumed. Installing the package adds the /workflow command, the workflow-guide and execution-router skills, and four bundled workflows: deep-research, deep-review, spec-review and impact-review. Workflows are JSON definitions whose artifactGraph.stages use single, foreach, reduce, loop, dag or dynamic patterns, and /workflow profile lets you preview and save Codex, Codex High, Claude, Mixed or per-stage custom model settings. A read-only board at /workflow drills from runs to stages to individual task output. It targets people already running Pi on macOS or Linux with Node.js >=22.19.0.

You name a workflow and describe a task; Pi either launches a saved named workflow with /workflow run or enters the direct adaptive runtime with /workflow dynamic, where trusted bundle-local controller code creates official tasks via ctx.agent(). Execution walks artifactGraph.stages: single runs one subagent, foreach fans out over a JSON array taken from an upstream control artifact, reduce performs fan-in synthesis, loop repeats child stages until a deterministic stop condition, and dag lowers child stages into namespaced tasks. A support field can attach local helper scripts such as ./helpers/prepare.mjs for validation, normalization and deduplication. The bundled workflows emit a final-report.md plus a completion summary: deep-review triages review lenses, dedupes findings with a helper, then runs a challenge pass; spec-review extracts testable requirements and maps implementation and tests; impact-review joins contract, regression and ship-readiness ledgers. /workflow goal declares an objective, its criteria and the paths it may change, then plans, works and checks until criteria pass or attempt, request and cost limits are hit; command criteria require the macOS Seatbelt sandbox.

  1. Research teams that need breadth plus verification on a repository or document set and want a cited, evidence-qualified report from deep-research.
  2. Reviewers who find a single pass insufficient and want parallel review lenses, deduplicated findings and a challenge pass from deep-review.
  3. Teams with an existing API spec or acceptance criteria who need to check whether implementation and tests actually cover them via spec-review.
  4. Engineers preparing to land a risky change who want scope, regression and ship-readiness risk mapped first with impact-review.
  5. Groups codifying release-readiness or backend API review routines as reusable project workflows generated with the workflow-guide skill.
  6. Exploratory tasks where Pi should plan, fan out and synthesize in one go without choosing a saved workflow, using /workflow dynamic.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Config files
workflows/csv-parser.json
Runtime
Node.js 22.19.0+
Install notes cover
Windows · macOS · Linux · WSL

How do you install or deploy this agent?

Requires Node.js >=22.19.0 on macOS or Linux; native Windows is not supported, use WSL2. Install the package through Pi:

pi install npm:@agwab/pi-workflow

Then reload Pi. This installs the /workflow extension plus the workflow-guide and execution-router skills. To update later:

pi update npm:@agwab/pi-workflow

How do you use this agent?

Ask Pi in natural language to run a bundled or project workflow:

Use the bundled deep-research workflow to research this repository and summarize the architecture tradeoffs.

For deterministic manual control use the slash command:

/workflow run deep-research "Research this repository and summarize the architecture tradeoffs."

For one-off adaptive orchestration without a saved workflow:

/workflow dynamic "Research this repository and summarize the architecture tradeoffs."

For a bounded recommendation instead of launching:

/workflow auto "Review the current diff for reliability and test coverage."

Preview or save model and thinking settings:

/workflow profile [workflow]

Run toward a confirmed Goal:

/workflow goal create make parseCsvLine pass test/csv.test.mjs
/workflow goal run workflows/csv-parser.json "fix the CSV parser"
/workflow goal status

Open the read-only board for runs, stages and task output:

/workflow

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Workflows are JSON stage graphs with six documented patterns (single, foreach, reduce, loop, dag, dynamic), so both fixed pipelines and adaptive fan-out are expressible.
  • Four runnable bundled workflows ship as defaults and as authoring examples, covering research, review, spec conformance and impact analysis.
  • Run state lives in .pi/workflows and is browsable through a read-only /workflow board that drills from runs to stages to task artifacts.
  • Two bundled skills split concerns: execution-router advises direct vs subagent vs workflow, workflow-guide scaffolds and validates new definitions.
  • Goal mode encodes objective, criteria, allowed paths and attempt/request/cost limits into a confirmed definition, then retries against deterministic checks.
Limitations
  • Tied to the Pi runtime and its companion packages (@agwab/pi-subagent, pi-web-access); it has no standalone mode outside that ecosystem.
  • Native Windows is explicitly unsupported — only macOS and Linux, with WSL2 required on Windows.
  • Command-based Goal criteria depend on the macOS Seatbelt sandbox, limiting parity across platforms.
  • Only four official workflows exist; the README says more are planned, so project-specific definitions must be authored by your team.
  • Execution profiles block with an explanation when model capabilities are missing or a workflow definition is stale, adding config upkeep.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
pi-workflow This agent 58 · Major gaps Agent plugin / skillFree + model costs ★ 391 14d ago JavaScript —
Pi Dynamic Workflows 72 · Some gaps Agent plugin / skillFree + model costs ★ 602 3d ago TypeScript —
CC10x Workflow Engine 58 · Major gaps Agent plugin / skillFree + model costs ★ 167 1mo ago Python Claude Code
Claude Code Subagents Collection 42 · Major gaps Agent plugin / skillFree + model costs ★ 1.7k 1y ago — Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
58/ 100 5-point scale 2.9 / 5
Trust 17/29
Reliability 8/14
Adaptability 12/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

Least privilege has real evidence: execution-router forbids launching/writing, Goal commands run in a macOS Seatbelt sandbox with no network and blocked credential directories, and worktree/origin-apply conflict checks are described. User confirmation exists via one-time Goal consent and auto's interactive choice plus final confirmation. Data-flow transparency is decent (MCP stores only config references, not tokens; children connect independently). Deductions: dependency security shows only version pinning and CI drift checks, no vulnerability scanning or audit record; source attribution is limited to the LICENSE holder 'Toby' and repo URL with unverified publisher, hence 1.

Reliability8 / 14 · 2.9/5

Docs and code align on command surface, exit codes, and error messages; the CLI emits clear errors for unknown args, duplicate options, and missing run ids. Deduction: peerDependencies use '*' wildcards, Pi compatibility is baselined only at 1.1.0 with explicit admission of untested versions, and 0.85.0 is blocked by a missing upstream dependency, so dependency availability is uncertain, hence 1.

Adaptability12 / 18 · 3.3/5

Capability boundaries are unusually explicit: execution-router is advisory only, workflow-guide mandates reading docs first, dynamic is restricted to trusted code, and native MCP expansion boundaries and opt-out are documented, hence 3. Audience/scenarios cover research, review, spec, and impact analysis, but environment fit is macOS/Linux only, Windows requires WSL2, and command criteria need macOS Seatbelt, hence environment_fit 1.

Convention10 / 18 · 2.8/5

README and docs/usage.md are well structured, install steps are complete, known limitations (Windows, Pi versions, sandbox platform) are called out, and MIT license is present. Deductions: no CHANGELOG, versioning only via package.json 0.17.0 and an npm badge; maintenance responsibility points only to GitHub issues and SECURITY.md with no explicit maintainer commitment; naming stability shows breaking removals such as --route/--no-route, hence naming_stability and versioning_changelog each 1.

Effectiveness7 / 13 · 2.7/5

Output usability is good: final-report.md, completion summaries, the workflow board TUI, and inspect --json are concrete artifacts. Marginal value comes from productizing multi-step orchestration with resumable run state, but it depends on the Pi ecosystem and subagents, limiting standalone value. Cost is acknowledged via expensive/cheap stage separation and model-request/cost limits, but no quantitative benchmarks or comparisons are provided, hence cost_benefit 1.

Verifiability4 / 8 · 2.5/5

The docs are restrained about their own claims, explicitly separating verified from unverified (peer '*' is not a full-version test claim; local fixtures are not evidence of installed-package behavior), so fact/inference separation scores 2. Deductions: most safety and reliability claims (sandbox, conflict detection, CI matrix) are prose assertions without traceable test reports or evidence links in the packet, and cross-source corroboration is limited to README and usage.md echoing each other, hence both 1.

Risks and how to mitigate them
  • Publisher identity is not verified by the FollowAgents registry; verify npm package and repository ownership before installing.
  • peerDependencies use '*' wildcards and Pi compatibility is baselined only at 1.1.0; older versions may not work.
  • Command-criteria sandbox requires macOS Seatbelt; Goals are refused on non-macOS hosts, and native Windows is unsupported.
  • Dependency security shows only version pinning and CI drift checks, with no vulnerability scanning or SBOM; audit @agwab/pi-subagent, pi-web-access, ssh2 and peers yourself.
  • This is a static source review with no code executed; safety and reliability claims are not independently verified.
  • Breaking command changes exist (e.g., --route/--no-route removed); read release notes before upgrading.
Evidence confidence: Low Reviewed Nov 26, 2026 Reviewed revision f1720d05bc70
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/pi-workflow.svg)](https://followagents.com/en/agents/pi-workflow)
<a href="https://followagents.com/en/agents/pi-workflow"><img src="https://followagents.com/badge/pi-workflow.svg" alt="FARS review"></a>

FAQ

Is it free to use?
The package is MIT-licensed and installed from npm, but workflow steps run through Pi subagents that call models, so you pay your model provider per use.
What runtime does it require?
Node.js >=22.19.0 on macOS or Linux, with Pi installed and reloaded. Native Windows is not supported; use WSL2.
Can an interrupted run be resumed?
Runs are recorded under .pi/workflows and are documented as inspectable, stoppable and resumable; Goal mode adds pause, resume and recover subcommands.
What happens if my saved model profile no longer matches the workflow?
The docs state that missing model capabilities or a stale workflow definition block execution with an explanation instead of silently substituting.
Do I have to write workflows myself?
No — start with the four bundled workflows. When you need a team-specific process, use the workflow-guide skill to scaffold, customize and save a project workflow.
Is pi-workflow open source?
Yes. The source code is on GitHub (AgwaB/pi-workflow) under the MIT licence.
Is pi-workflow safe to use?
FollowAgents' FARS review (Nov 26, 2026) scored pi-workflow 17/29 on trust and safety. None of the eight safety controls the review checks for was missing outright.
Is pi-workflow still maintained?
Yes. The latest commit on GitHub is from 2026-11-11, within the last 30 days.
Who makes pi-workflow?
pi-workflow is published on GitHub by the account AgwaB. FollowAgents has not verified which person or company is behind that account.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts