You can now give a subagent a short name, and that name follows it everywhere it's listed: its session, its status row, and the events other apps receive. That makes several runs of the same agent easy to tell apart. A parallel batch can also run its tasks one at a time when they share a rate-limited model. Finished workflows now get cleaned up from disk instead of piling up for good, and on Windows a locked file at the end of a workflow no longer takes Pi down. If you'd rather sessions never leave your machine, one setting now turns off session sharing for good.
Highlights
- Name a subagent with a short
label, and see that name in its session, its status row and the events host apps receive. - Run a
parallelworkflow's tasks one at a time withglobalConcurrencyLimit: 1. - Finished workflows are cleaned up like other background runs; one user's run folder had grown to 72 GB.
- On Windows, a locked status file at the end of a workflow no longer crashes Pi.
disabledFeatures: ["session-sharing"]stops any run from uploading a session to a GitHub Gist.
Changelog
Highlights
- Give a subagent a short
labeland it shows up by that name in its session, its status row and the events host apps receive, so several runs of the same agent are easy to tell apart. - A
parallelworkflow can run its tasks one at a time withglobalConcurrencyLimit: 1. - Finished workflows are now cleaned up from disk like other background runs, instead of piling up to tens of gigabytes.
- On Windows, a locked status file at the end of a workflow no longer crashes Pi.
- An install can turn off session sharing with
disabledFeatures: ["session-sharing"], so no run can upload a session to a GitHub Gist.
Added
- A direct subagent launch can now be named with a short top-level
label, for examplesubagent({ agent: "worker", task: "…", label: "Fix login redirect" }), and so can eachargs.tasksitem ofworkflow: "parallel". The label names the child's session and status row, as a workflow child'sruns.runlabel already does, andsubagent:async-startedcarries it asdescription, so hosts that list running children can tell several runs of the same agent apart. Thanks to @mmarabel for the report (#3324). - A foreground subagent run now emits
task:subagent:lifecycle(started, thencompleted,failedoraborted) on Pi's extension event bus, so host apps that only watchsubagent:async-*can show foreground runs. The payload carries the run id, agent name and a description (the launch'slabel, or else the agent's description), never the task prompt.subagent:async-startedfor single, chain and parallel runs now carriesdescriptionby the same rule. Thanks to @Andy123qq4 for #3318. - A named workflow call such as
{ workflow: "parallel", args: { tasks: [...] } }now accepts a top-levelglobalConcurrencyLimit, soglobalConcurrencyLimit: 1runs its tasks one at a time; before, the call was refused. Whenargs.concurrencyis passed toparallel, the error now points toglobalConcurrencyLimit. Thanks to @mmarabel for #3320. disabledFeatures: ["session-sharing"]now removessharefrom thesubagenttool, so a run cannot upload a session to a GitHub Gist from that install. A resume whose saved launch enabledshareis refused before it starts, and the run stays resumable once the setting is gone. Nothing changes when the setting is absent. Before, the only ways to stop the upload were to removeghfromPATH, revoke thegistOAuth scope, or block network access. Thanks to @jpodivin for #3323 and to @marcfargas for the report (#30).- A new
fastServiceTiersetting chooses the OpenAI service tier thatfast: truerequests for native OpenAI-Codex children:"priority"(the default, as before) or"ultrafast". Before, fast mode could only request Priority. Thanks to @FireSpoonYZ for #3317.
Fixed
- Finished workflows and their subagents are now deleted from disk like other background runs. Before, async retention kept every workflow run, workflow child and revived child forever, so
async-subagent-runscould grow to tens of gigabytes. A workflow is now removed with its children once it has finished and passed the 30-day window; it is still kept while it, any of its children, or a revival of one is running, recent or still resumable. Thanks to @youlikemodernart for the report (#3326). - On Windows, an async workflow whose last writes to
status.jsonfailed withEPERMno longer crashes Pi. When another process held the file locked, the error escaped the workflow's teardown and took the whole process down. The failure is now recorded as asubagent.workflow.status_write_failedevent, the workflow's result is still delivered, andstatus.jsoncatches up with the finished state once the lock clears (Pi keeps retrying for up to a minute without blocking). Thanks to @M0-3del for the report (#3325). - A background subagent that launches its own nested subagents now shows them in the Fleet status widget,
subagent({ action: "status" })and its completion result. Before, the nested children were filed under the wrong run id, so status never found them. Thanks to @dvishoot for #3316. - A
subagentcall withworkflow: trueandoptions.scriptnow runs the script, asoptions.scriptalone does, instead of failing withoptions.script replaces workflow. A named workflow or a script path together withoptions.scriptis still refused. Thanks to @mmarabel for the report (#3320). - A foreground subagent's result in the tool details (
details.results[i]) no longer carries hidden Symbol keys, so extensions that hash or compare tool results, such as pi-fold, see a plain JSON object. Thanks to @xiaquwan1001 for the report (#3319). - pi-subagents now type-checks against Pi 1.6, whose components return read-only render output, without changing its dependency pins. Thanks to @Giesch for #3322.
- The tool reference warns again that a secret Gist is unlisted, not private, and that nothing asks before the upload, and says how to turn sharing off. The warning was lost when the README was split into guides (#30).