github nicobailon/pi-subagents v0.90.0

one hour ago

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 parallel workflow's tasks one at a time with globalConcurrencyLimit: 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 label and 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 parallel workflow can run its tasks one at a time with globalConcurrencyLimit: 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 example subagent({ agent: "worker", task: "…", label: "Fix login redirect" }), and so can each args.tasks item of workflow: "parallel". The label names the child's session and status row, as a workflow child's runs.run label already does, and subagent:async-started carries it as description, 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, then completed, failed or aborted) on Pi's extension event bus, so host apps that only watch subagent:async-* can show foreground runs. The payload carries the run id, agent name and a description (the launch's label, or else the agent's description), never the task prompt. subagent:async-started for single, chain and parallel runs now carries description by the same rule. Thanks to @Andy123qq4 for #3318.
  • A named workflow call such as { workflow: "parallel", args: { tasks: [...] } } now accepts a top-level globalConcurrencyLimit, so globalConcurrencyLimit: 1 runs its tasks one at a time; before, the call was refused. When args.concurrency is passed to parallel, the error now points to globalConcurrencyLimit. Thanks to @mmarabel for #3320.
  • disabledFeatures: ["session-sharing"] now removes share from the subagent tool, so a run cannot upload a session to a GitHub Gist from that install. A resume whose saved launch enabled share is 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 remove gh from PATH, revoke the gist OAuth scope, or block network access. Thanks to @jpodivin for #3323 and to @marcfargas for the report (#30).
  • A new fastServiceTier setting chooses the OpenAI service tier that fast: true requests 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-runs could 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.json failed with EPERM no 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 a subagent.workflow.status_write_failed event, the workflow's result is still delivered, and status.json catches 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 subagent call with workflow: true and options.script now runs the script, as options.script alone does, instead of failing with options.script replaces workflow. A named workflow or a script path together with options.script is 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).

Don't miss a new pi-subagents release

NewReleases is sending notifications on new releases.