v5.4.0
Highlights
- Consolidated
@piewf/subagentsto five model-facing tools and added durable foreground execution tosubagents_run(#198). - Added compact Subagents TUI rendering, a bounded live background widget, stale-run warnings, and the read-only
/subagentspicker with live inspection, inline steering, lifecycle controls, and shared workflow-agent actions. - Deduplicated Subagents inspection snapshots, excluded system prompts, preserved legacy records, and made accounting cumulative across internal retries (#200).
- Separated repeated registered-function invocations into stable occurrence-aware progress groups in live and navigator views (#199).
- Reworked the workflow background widget to avoid remounts, reduce idle repaint work, suspend under
/workflow, refresh clocks and navigation correctly, and restore compact one-line transcript receipts (#202). - Added clearer workflow state, token, cost, model, runtime, and retry details across progress views.
Subagents migration
The model-facing v5.3 tools map to v5.4 as follows:
subagents_list({})->subagents_inspect({})subagents_status({ id })->subagents_inspect({ id })subagents_result({ id })->subagents_inspect({ id })
subagents_steer, subagents_stop, and subagents_retry remain separate. Background remains the default for subagents_run; use mode: "foreground" only when the terminal envelope is needed inline. The optional singleAgent workflow function remains inline and does not create a durable standalone run.
Reliability, API, and documentation
- Accepted a submitted
workflow_resulteven when followed by an empty provider abort. - Reported workflow confirmation dialogs as blocked activity for Herdr and lifecycle observers.
- Kept
piewf doctorread-only during Pi model discovery. - Exported shared workflow/subagent presentation helpers and
formatCostfrom the core package. - Split core persistence internals into focused modules while preserving the public facade.
- Updated Pi development dependencies to
0.84.1and expanded the README and dedicated Subagents and Herdr guides.
Verification
npm run check- Dry-run package inspection for all four publishable workspaces
Packages:
pi-extensible-workflows@5.4.0@piewf/cli@5.4.0@piewf/herdr@5.4.0@piewf/subagents@5.4.0
Full changelog: v5.3.0...v5.4.0