/workflow-engineering:pi-durablefrom workflow-engineering
Builds independent Pi Durable applications with persistent event services, reconnectable chat, bounded specialist subagents, and requested trace, population or Pareto evolution. Use for PR agents, durable queues, recovery, Windows/macOS services, or evidence-based improvement of prompts, tools and scripts.
Ships in workflow-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use Pi Durable as an application runtime. Use Pi Coding Agent when the task calls for its interactive terminal product. Pin the experimental API: the bundled service template targets @earendil-works/pi-durable 1.3.0 and Node 24+. Check the installed declarations before adapting newer documentation.
scripts/scaffold.py <output> --profile supervisor|map-reduce|review-refine.Read only what the requested mode needs. Execute the scaffolder without reading all template source. The template is a starting application, not code that extends the current chat's privileges or registers Pi sessions in another product.
Resolve event source, agent IDs, repository allowlist, model/provider, state location, and target console. Default to a local CLI/API registry when no console is named; an existing Codex console needs its own supported integration. Keep service registration separate from the durable agent identity.
Scaffold outside this skill at the user's exact requested path:
uv run --script scripts/scaffold.py <output-directory> --with-tests
Resolve the command relative to this skill's directory. The script works when only this bundle is copied. It refuses a nonempty destination and never modifies the template. --with-tests includes acceptance sources only when available; runtime-only bundles may omit them. The generated package declares its own dependencies.
Configure config.json. When instructionsFile is set, edit that project-local prompt; it takes precedence over inline instructions. Start with provider.kind: "faux" for offline mechanics. For real work list the current catalog and supported reasoning levels, then choose an exact model or the task-aware latest policy. Resolve and record the actual model before durable admission; use models lock before reproducible evolution. Supply credentials through the service environment file, never argv, generated task/plist files, prompts, or logs. Empty repository lists do not authorize arbitrary GitHub access.
From the caller's workspace run uv run --script scripts/service_project.py <output-directory> prepare, then the same helper with smoke. Resolve the helper relative to this skill. It sets the correct project working directory and local npm cache; the smoke uses faux/off, admits a duplicate event, chats, reopens state, and closes its processes. Run npm test from the generated project only when tests were included. Start node dist/src/cli.js serve --config config.json from that project; use list, jobs <agent-id>, and chat <agent-id> [--job <job-id>] in another terminal.
When the user wants Pi terminal commands, generate its independent optional console with scripts/scaffold-pi-extension.py <extension-directory> --service-config <service-directory>/config.json --with-tests. Omit --service-config to create the first agent from Pi. Follow Pi console extension to load it and use /durable new to choose an explicit workspace folder, or /durable-chat for existing agents. The generated console carries its own creation resources and connects to local owners rather than the Codex UI.
For desktop PR detection use polling when no signed public webhook ingress exists. Baseline existing PRs unless the user requests backfill. Persist event receipt, matching jobs, and the polling checkpoint atomically. Acknowledge webhooks after queue admission, then execute asynchronously.
Deduplicate by semantic event plus agent ID, and keep Pi submission request IDs stable. Atomically map a job key to its Pi conversation before submission. A restart between queue admission and Pi submission must retry the same job and thread. A retry after failure must be explicit; show failed jobs instead of retrying arbitrary effects forever.
Write target ServiceOptions to local JSON; render it with scripts/service_project.py <project> plan --options <local-json> --output <exact-json-path>. Target paths stay JSON data, avoiding MSYS conversion of /Users/... in Windows Bash. Deploy the result's deploymentConfig at its target config path so state directory and service name agree. Operate from the generated project using node dist/src/cli.js service ... --config config.json; keep its serviceName consistent. Execute installation only within authorized scope. Windows uses a per-user Task Scheduler job; macOS uses a per-user LaunchAgent. Both start at login, not while logged out; native checks remain separate from plan checks.
Hand off the complete generated project, including AGENTS.md, source, prompt files, lockfile, the project-local helper, and its portable provenance manifest. Operate it with its own build/smoke/plan/evolution commands after generation; no skill path or original repository is required. Include start/stop/status/uninstall, agent/chat commands, event behavior, backups, and validation limits. Distinguish faux runs from live-provider integrations and macOS plans from native launches.
Persist observable action, outcome, feedback, version, and concise decision evidence. Preserve the durable conversation as the authoritative transcript. Use list_evidence and record_decision for model-visible citations; do not request or store private chain-of-thought. Keep credential/state directories out of exported candidates.
Before an improvement request, apply the evidence readiness review: link complete task cases to their actual outcomes, verification and versions, include useful successes and failures, and name missing observations. These are authoring/operator guidelines; the current engine does not enforce sample sufficiency or automatic per-task verification. A sparse or incomplete pack calls for more authorized observation or a narrower claim.
On a trusted user's improvement request, use the generated npm run evolve -- ... lifecycle: record the goal and exact editable files, export evidence and source, reflect, import an inactive proposal, and compare baseline/candidate against frozen application-specific cases. reflect --generate can use a separate no-tool Pi conversation; faux output demonstrates mechanics only. Prompt and tool/script changes require observable supporting evidence, a hypothesis, expected benefit, regression checks, and exact file preimages. Reflection is not evidence that a change is better.
Promote only the exact passing candidate within the requested scope while the service is stopped and durable work is drained. Rebuild and smoke before restart; retain version lineage and exact rollback bytes. Existing conversations can retain earlier prompts while tools resolve from current host code, so preserve compatibility or plan an explicit migration. The generated reference and manager describe bounded host execution, evaluation integrity, crash recovery, and rollback. Never let event content activate evolution or expand its edit/evaluation permissions.
tx only. Persisted checkpoints do not promise exactly-once external effects; replay: "safe" is the tool author's replay promise.steer for a current correction and followUp for another task.workspaceRoot adds bounded local list/read tools; the console's folder picker configures this scope. Add shell/write tools only for the actual task and environment boundary.Check: duplicate event causes one job; two agents receive independent jobs; task thread survives restart; late chat reattaches; a poll failure does not advance its checkpoint; invalid webhook signatures admit nothing; an idle service makes no model calls; a second owner cannot open the same state directory; shutdown closes the owner; failed jobs are visible. Move a generated project and operate without access to the skill. Verify evidence survives restart, no-request evolution remains inactive, failed/stale/tampered candidates cannot promote, and accepted changes can roll back. Exercise only configured events and authorized external actions. Record the native platform and real provider actually tested.
For console lifecycle work also verify stopped inventory, pause/resume persistence, actual control/child/background task draining, busy shutdown preserving work, authenticated owner recovery, contract-bound passed/failed/inconclusive duty receipts, and archive/reconnect retaining source and state. A completed model response alone never establishes that the agent fulfilled its duty.
agents/openai.yaml (opens in a new tab)assets/examples/pi-extension-acceptance/agent-quality.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/chat-data.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/chat-ui.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/client.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/creation-review.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/creation-ui.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/creation.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/extension.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/management.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/menu-ui.test.ts (opens in a new tab)assets/examples/pi-extension-acceptance/operations-ui.test.ts (opens in a new tab)assets/examples/service-acceptance/cli-lifecycle.test.ts (opens in a new tab)assets/examples/service-acceptance/cli.test.ts (opens in a new tab)assets/examples/service-acceptance/codex-provider.test.ts (opens in a new tab)assets/examples/service-acceptance/evidence.test.ts (opens in a new tab)assets/examples/service-acceptance/evolution-integration.test.ts (opens in a new tab)assets/examples/service-acceptance/evolution-study.integration.py (opens in a new tab)assets/examples/service-acceptance/evolution.test.ts (opens in a new tab)assets/examples/service-acceptance/github.test.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gvillarroel/plugins --plugin workflow-engineeringOther plugins' skills for the same job
5 skills in this plugin
/jev-batch-decisionsSplits large text documents and record collections into bounded batches, evaluates typed decisions with TypeSafe Jev through OpenRouter, and aggregates the results with deterministic reducers or a recursive Jev decision tree. Use for bulk classification, evidence screening, rubric scoring, and document-wide decision questions./pi-mentorDesign readable and reliable ZX scripts that use Pi as the coding agent and coordinate terminal tools such as gh, fd, rg, and standard shell commands. Use when Codex needs to structure a new script, refine an existing ZX + Pi workflow, separate prompts from orchestration, improve loop clarity, choose prompt file layouts, or document durable lessons about prompt design and script execution for constrained models./repository-reviewer-creator