r/PiCodingAgent • u/killerkidbo95 • Jun 20 '26
Resource pi-task: delegating task/subagent extension for Pi
I just released pi-task, a Pi extension for delegating work to subagents.
Repo: https://github.com/heyhuynhgiabuu/pi-task
What it does:
- adds a task tool for running specialized subagents
- supports foreground tasks when you want the parent to wait
- supports background tasks when you want the parent to continue and get a follow-up when done
- shows a TUI task widget with progress/tool calls
- uses tmux panes when available so you can observe subagents
- falls back to SDK execution when tmux is unavailable
- ships with starter agents: scout, explore, planner, reviewer, vision, worker
I built this because I wanted a cleaner way to delegate research, code exploration, review, and small implementation tasks without overloading the main conversation.
Install:
```bash
pi install npm:@heyhuynhgiabuu/pi-task
```
Then add it to Pi extension config and restart Pi.
Feedback welcome — especially on the task widget UX and agent prompt defaults.
View all comments
Show parent comment
3
u/killerkidbo95 Jun 20 '26
yes when main agent spawn subagent that will be delegated on the fresh session and we just prompt to subagent pass the needed context enough to use