Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides a cheat sheet and workflow for launching interactive coding-agent CLIs like Claude Code and Codex via overlay or headless dispatch.
Use this skill ↓36% 84%+48 ptsof test cases passed
Passed 21 of 25 test cases with the skill, and 9 of 25 without it.
3 of 3 safety checks passed
Not used yet
Last verified: 2026-01-18
Pi has two ways to delegate work to other AI coding agents:
| Foreground Subagents | Dispatch Subagents | Background Subagents | |
|---|---|---|---|
| Tool | interactive_shell | interactive_shell (dispatch) | subagent |
| Visibility | User sees overlay | User sees overlay (or headless) | Hidden from user |
| Agent model | Polls for status | Notified on completion | Full output captured |
| Default agent | pi (others if user requests) | pi (others if user requests) | Pi only |
| User control | Can take over anytime | Can take over anytime | No intervention |
| Best for | Long tasks needing supervision | Fire-and-forget delegations | Parallel tasks, structured delegation |
Foreground subagents run in an overlay where the user watches (and can intervene). Use interactive_shell with mode: "hands-free" to monitor while receiving periodic updates, or mode: "dispatch" to be notified on completion without polling.
Dispatch subagents also use interactive_shell but with mode: "dispatch". The agent fires the session and moves on. When the session completes, the agent is woken up via triggerTurn with the output in context. Add background: true for headless execution (no overlay).
Background subagents run invisibly via the subagent tool. Pi-only, but captures full output and supports parallel execution.
Use interactive_shell (foreground) when:
Use subagent (background) when:
Default to pi for foreground subagents unless the user explicitly requests a different agent:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.