Spawn and manage sub-agents in visible tmux panes for pi. The orchestrator that makes boss mode work.
Say "boss mode" and the agent breaks your task into subtasks, spawns parallel agents in tmux split panes, monitors their progress, and steers them as needed. Each spawned agent gets its own pi instance with a self-contained task.
Four actions:
create — Split the view and spawn a new pi agent with a task:
spawn(action: "create", task: "fix the auth bug in src/login.ts", name: "auth-fix")
spawn(action: "create", task: "write tests for the API", cwd: "/path/to/project")
list — Show all spawned agents and whether they're alive:
spawn(action: "list")
highlight — Color a pane to signal status:
spawn(action: "highlight", pane: "12", color: "green") # done
spawn(action: "highlight", pane: "12", color: "red") # needs attention
spawn(action: "highlight", pane: "12", color: "default") # clear
kill — Kill a spawned agent's pane:
spawn(action: "kill", pane: "12")
The extension injects a "Boss Mode" instruction into the system prompt. When you say "boss mode", the agent:
- Breaks the task into independent subtasks
- Spawns agents in parallel (one per subtask)
- Enters a monitoring loop: sleep → peek all → steer/kill ready ones → repeat
- Reports back when all agents are done
Spawned agents auto-register in the room (via pi-room), so the boss can use peek and steer to interact with them.
pi install git:github.com/skyfallsin/pi-bossOr clone:
git clone https://github.com/skyfallsin/pi-boss ~/.pi/agent/extensions/pi-bossRequires pi-room for peek/steer. Install both:
pi install git:github.com/skyfallsin/pi-room
pi install git:github.com/skyfallsin/pi-boss- On first spawn, enables tmux pane borders and labels the boss pane
- Splits the window horizontally and runs
pi <task>in the new pane - Auto-tiles panes after each spawn/kill for a clean layout
- Spawned agents get
PI_SPAWNED=1andPI_PARENT_PANEenv vars so they know they're children - Session files of spawned agents link back to the boss session via
parentSession - On shutdown, all spawned panes are killed and borders are reset
MIT
| Package | Description |
|---|---|
| pi-mem | Persistent markdown memory for coding agents |
| pi-reflect | Self-improving behavioral files |
| pi-room | Multi-agent awareness and coordination |
| pi-vertex-anthropic | Claude via Google Cloud Vertex AI |
| pi-skill-posthog | PostHog analytics skill for pi agents |