pi-delegation
Installation
SKILL.md
Delegating to Pi
The pi-subagent plugin runs Pi as an external subagent. There are two ways to delegate.
1. Named pi-agents (preferred when an agent fits)
A pi-agent is a reusable persona defined in a .md file (name + model + tools + system prompt). The user invokes one by name:
Use pi-agent web-scout to find out about Vocdoni. Ask researcher about the current state of WebGPU.
How to handle these:
- If you don't know what agents exist, call
pi_list_agents(returns name, description, model, tools). - Call
pi_run_agent { agent: "<name>", input: "<the user's term or task>" }. Theinputis whatever the user wants the agent to act on — a name, word, topic, or instruction (e.g."Vocdoni"). The agent's own persona decides what to do with it. - Return the agent's summary. For agents that edit files, read the diff (see below) before trusting it.