Pi extension documentation

Deterministic workflows for Pi

pi-extensible-workflows orchestrates resumable work across Pi agents with a small JavaScript DSL, explicit checkpoints, and durable run state.

Quick start

Install, then ask Pi to run a workflow

Use Node.js 22.19 or newer and a trusted Pi project. The package registers the workflow tool, the checkpoint response tool, and the /workflow command.

pi install npm:pi-extensible-workflows

Choose a path

NeedGo to
Install, extend, or debug the packageDeveloper installation
Configure concurrency, model aliases, or workflow-agent resourcesGlobal and project settings
Write a workflow tool callAgent script contract
Ask for approval before continuingCheckpoint handling
Inspect a run or recover itOperations and recovery
Author reusable functions, variables, or setup hooksExtension authoring
Integrate notifications, dashboards, or audit toolsLifecycle events

Documentation is versioned with the package

Examples and contracts in this site are maintained beside the implementation. See the repository README for the package overview and bundled agent skill for workflow selection guidance.