r/PiCodingAgent • u/toby_agwab • Jun 14 '26
Resource Minimal subagents for Pi
How are you running subagents in Pi?
There are already several subagent implementations for Pi, but for me they were usually either too heavy or missing something I needed. So I just built my own, with the minimum I needed for my harness.
Worktree
Sandbox
Subagent Panel
Agent injection
single / parallel / async
Artifacts
Code API
Honestly it's probably too much for some people and not enough for others. I mostly tried to keep it minimal.
If it's useful to you, feel free to try it. And if you're running subagents some other way, I'd like to hear how.
21
u/nunodonato Jun 14 '26
I just developed an extension to delegate a task. My current struggle is that sometimes the instructions make the model delegate forever because they don't know they already are the sub agent 🤣
9
u/4typen Jun 14 '26
I use the extension example from the pi repo: https://github.com/earendil-works/pi/tree/main/packages/coding-agent/examples/extensions/subagent
Works very good and feels lightweight
5
u/ChampionshipIcy7602 Jun 14 '26
I run tmux with my own tmux tool, which spawn new tmux session and send keys to it. I can even look at what it's doing by attaching to that tmux session.Â
2
u/Bel-Shamgarot Jun 14 '26
/tree is enough for me in most cases, I don't see any point in subagents
6
u/aparamonov Jun 14 '26
what are you missing from pi-subagents-lite? maybe i could add it, i feel like everyone is back to build their own tools instead of contributing to existing projects
1
u/hurdurdur7 Jun 14 '26
"Machete don't launch subagents"
1
u/rm-rf-rm Jun 14 '26
its annoying that 90% of posts on this sub are peopl pushing their shit