r/PiCodingAgent • • 17d ago

Resource pi-persona 1.19: watch your subagents work

Hey all. Around two months ago I posted pi-persona here and a lot has changed since then.

and led with the wrong thing. That's still in there, but it isn't the main point, so here's a second try now that 1.19 is out.

The complaint that keeps coming up in the subagent threads here is the one I had too: the main agent doesn't know a worker went wrong until it's finished and the tokens are spent. Neither do you.

So this is built around being able to look. Workers run in the background. Press F9 and you get the list: what each one is doing right now, its model, its effort, tokens so far. Open one and you're reading its conversation as it happens, tool calls included. If it's heading the wrong way, press s, type a sentence, and it arrives as a new message in that worker's own context. If you don't need it any more, x stops that one and leaves the others alone. The supervisor isn't blocked during any of this, and reports come back to it on their own when they're ready. Nothing polls.

1.19 is mostly that part getting better:

Worker chats in F9 with expandable tool calls and reasoning, search, and /agents send <name> <message> for when you don't want to open the panel.

Every row that shows a model now shows the effort next to it.

F9, the model picker and the settings page share one window frame. They used to look like three different apps.

Things I'd want to know before installing it:

Workers share your repo. Parallel writers declare which paths they own, but that's coordination, not a sandbox. If you want isolation there's a git worktree mode that hands back a diff, and you can attach a check like npm test that runs before the diff is exported.

It has been coded with AI of course. not vibed with it. That's cause it's also my main job (sw engineer).

Also don't forget that the pi2pi communication is still there:

Needs Pi 1.5.2 and Node 22.19 or later.

The GIFs in the README are the real TUI, but the model replies are scripted so I could re-record them without spending tokens.

Install:

pi install npm:@aeondave/pi-persona

then inside Pi:

/persona seed

/persona dev

or just F8...

https://github.com/AeonDave/pi-persona

With this you can start a team with fable/mithos/astra/deepseek4.1 all together.

A question for people who do use subagents: when one goes wrong, how do you find out today? I'd like to know whether redirecting mid-run is something you'd use, or whether you'd rather kill it and re-prompt.

22 Upvotes

2 comments sorted by

1

u/Extra_Loquat_7667 15d ago

My own implementation of a subagent includes this capability as well.
However, I do not allow users to directly guide the subagent themselves.

The reason is that the main agent remains unaware of any guidance provided to the subagent, which could potentially lead to discrepancies when interpreting the final work results.

Instead, my approach is to notify the main agent whenever I detect an issue with a subagent, allowing the main agent to adjust the task accordingly. (I provide tools that enable the main agent to review logs and send messages.)

There are also tools available to periodically report the subagent's status back to the main agent, facilitating full automation.

Just a personal perspective.

2

u/Aeondave 15d ago

sorry i deleted my last comment cause i actually misread and it was not on point.

so
that’s fair.
A worker can follow the new instruction correctly while the main agent still evaluates its result against the original brief.

Here, direct steering is available for supervised sessions:
if a human spots a problem in a worker or wanna change directives, they can intervene without routing through another model turn.

But i should be precise about the current implementation: the F9 steering path sends the message to the worker. it doesn’t automatically copy that instruction into the sup’s context. A visible worker log or a later result doesn’t guarantee the supervisor knows what changed.

I’d keep direct intervention, but pair it with an explicit record for the supervisor of which worker was redirected and what was requested. The supervisor would still need to account for that change before relying on the result or coordinating other workers. Simply delivering a notification wouldn’t guarantee that reconciliation happened.

For changes to the objective i agree that going through the main agent is the better default (an usually it is), especially in autonomous runs. but i know many want to min-max especially on big and long run. if they notice a bad direction a subagent took, i can agree about send a steering. remember that agent and subagents can tal bidirectionally so the new direction can be acknowledge or the agent can peek inside subagent work and understand.

so. it's just a feature you can not use. give it a chance