Skip to content

v0.0.4

Choose a tag to compare

@ejpir ejpir released this 07 Oct 21:15
· 32 commits to main since this release

Subagents, prompt templates and skills come to durable sessions, and both apps show more of what Pi makes: tool images, HTML pages and SVG.

Subagents

Pi can hand work to subagents with the subagent tool: one task, several side by side, or a chain where each step gets the previous answer.

  • Pi isn't blocked. Subagents work in the background. Pi answers, and you can keep talking to it, while they work. When the last one finishes, their answers come back to Pi as one message, shown as From subagents.
  • No setup needed. Pi can name and define its own agents in the call ("architecture", "code-quality"), with instructions and tools. The agent files stock Pi uses (~/.pi/agent/agents/*.md, and a trusted project's .pi/agents/) work as presets.
  • Up to 200 tasks in one call, 8 at a time. Each subagent runs in its own durable conversation. After a restart it carries on instead of starting again, and a command a restart cut off is reported, never repeated by itself.
  • Stopping: stopping the session stops its subagents too. Stopping one subagent leaves Pi and the others working.

On Android:

  • A hand-off shows as a card with a row per subagent: its task, what it is doing now ("Read retry.ts"), its time and cost. Each row opens that subagent's own read-only screen, with Stop.
  • Large crews stay tidy. The card shows five subagents, those at work first, then Show all, and its header folds the card to a line of counts ("8 running · 9 done · 7 waiting").
  • Home and the session's title bar say who is still at work ("8 scouts at work") after Pi has answered.

Prompt templates and skills in durable sessions

Durable sessions read the computer's prompt templates and skills from the same folders stock Pi reads. A project's own are used once stock Pi trusts the project. Type / on the phone to pick one; a /skill: prompt reads in the thread as it was typed, and Resources lists them.

Images, pages and SVG

  • Desktop now shows what Android shows: images a tool returned, under the reply that called it, and a card for each HTML page Pi wrote, with Open in browser. On macOS the card shows a preview of the page.
  • SVG in a reply (an svg code block, <svg> markup or an SVG data URL) is drawn as an image in both apps.
  • Images keep their own size on Android instead of being stretched to the full width and cut off.
  • Links between pages work in the phone's page viewer. A launcher page's links open the pages it links to, including ones Pi wrote with a shell command or a subagent, and Back returns.

Fixes

  • Autocorrect on Android: Gboard's correction now lands as you press space. Before, it arrived only with the next key, so the last word stayed uncorrected and the draft jumped.
  • Linux: the desktop builds again with warnings denied.

Upgrading

Update the helper on each computer your phone or desktop connects to. Background subagents and the new progress display need the helper from this release; with an older helper, a session's subagents show as finished once Pi's call ends.