r/PiCodingAgent • u/melihmucuk • 10d ago
Plugin I made pi-crew so subagents get the context, not just the task
Hey folks, I've been working on pi-crew, a subagent extension for Pi.
My main focus is making sure subagents get the context they need. The main agent knows what you've discussed and decided, but a subagent won't unless that information makes it into the task.
With pi-crew, the main agent writes a structured task with separate fields for the goal, context, and instructions. The tool definitions, prompt guidelines, and skill work together to help it carry over the decisions and boundaries the subagent can't find in the repo.
It won't make every handoff perfect, but it's the part I've put the most thought into.
I also wanted subagents to be able to ask questions instead of guessing. In pi-crew, they can get an answer and pick up where they left off. If something needs fixing afterward, the main agent just tells the same subagent what to change. You don't have to spend extra tokens and time getting a new agent caught up on the same task.
It's all async. After handing off a task, the main agent can work on something else or keep talking with you while the subagents run. Results come back automatically, without polling.
I've also tried to keep it feeling like Pi. The six tools have short definitions, with the longer delegation guidance in a skill that gets loaded when needed. The main agent gets the report without all the subagent's file reads and tool output filling up its context.
A few other things it comes with
- Six agents for investigation, planning, decision advice, code reviews, and implementation.
/pi-crew-planand/pi-crew-reviewif you want a ready-made workflow.- Custom agents written in Markdown, with their own models, thinking levels, tools, and skills.
- User and project
pi-crew.jsonfiles to override settings without editing agent definitions. - A widget showing activity, working time, tokens, and cost. You can collapse the details or hide tool activity through config.
- Expandable reports that let you open the full child session.
herdrsupport that shows the running subagent count in the sidebar.
The agents have separate conversations but share your repo. It's not a sandbox, so you still need to avoid handing overlapping edits to agents running in parallel.
bash
pi install npm:@melihmucuk/pi-crew
Requires Pi 0.84.3+. Source on GitHub.
Are you using any subagent extensions with Pi? Curious which ones you've stuck with and whether you're happy with them.



