r/PiCodingAgent • • 56m ago

Plugin Custom minimal subagent extension (pi-lean-subagents)

Hey people of Pi

I've had pi-subagents installed for quite some time now but I don't use it a lot, and part of the reason is that I think it is a little too overkill and can be simplified. Perhaps this is because my use cases don't require it but I figured I'd build out an extension that is better suited to me. Some key features-

- 1.1k lines and about 50KB in size with zero dependencies, compared to 100k lines and 11 MB for pi-subagents

- 4 simple tools: spawn, status, send and stop.

- Model tiers which you can name and decide. eg. i've set luna as my "cheap" model and i can just prompt my main agent to spin up cheap subagents for codebase exploration and stuff

- subagents inherit the parent's setup ie your tools, MCP servers, skills, AGENTS.md and permissions

- runs in the background and delivers back to the main agent

Still testing it out and would be glad if you all gave it a go too!

GitHub repo- https://github.com/awesamarth/pi-lean-subagents
package on npm- https://www.npmjs.com/package/pi-lean-subagents

pi install npm:pi-lean-subagents

4 Upvotes

0 comments sorted by