run
Delegate a short coding task to a pi agent and receive the final answer synchronously, blocking until done. Use for quick questions that need an immediate response.
Instructions
Delegate a task to a pi agent and wait for the final answer. Blocks until done. Prefer spawn for long work; this is for quick questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Your own session id for traceability, e.g. "search-audit-01". 1-64 chars of [A-Za-z0-9._:-], must start alphanumeric, must not already be in use. Defaults to a UUID. | |
| cwd | No | Working directory for the agent | |
| label | No | Free-text note shown in `sessions`, e.g. what this delegate is for | |
| model | No | Model as "provider/modelId", e.g. "openrouter/stealth/ox-alpha" | |
| tools | No | Tool allowlist for this delegate. Default: read, grep, find, ls. Permitted on this server: read, grep, find, ls. | |
| prompt | Yes | The task for the pi agent | |
| extensions | No | Load pi extensions for this delegate. Off by default; they add startup cost and can misbehave. |