/** * First-party subagent dispatch + fleet for pi. * * `dispatch` — model-facing fan-out: run N focused child agents in parallel * with per-task tool allowlists, models, and prompts; typed results * aggregate back. Children are hermetic in-process sessions spawned through * @nicknisi/pi-shared's runtime — no pi-subagents dependency, and children * cannot themselves spawn. Live progress streams via renderCall/renderResult * (✓/✗ rows, └─ sub-lines, spinner), matching llm-council's vocabulary. * `fleet` (tool) / `/fleet` (command) — inspect live and persisted runs, * including background ones. Run records persist to * /subagent-runs//.json, so runs from other * extensions using the shared runtime show up here too. In TUI mode `/fleet` * opens an interactive overlay (searchable list → run detail); otherwise it * falls back to a plain-text transcript entry. * Background dispatches surface in a one-line widget above the editor while * any are in flight. */ import type { ExtensionAPI } from '@earendil-works/pi-coding-agent'; export type { AgentProfile } from './profiles.js'; export interface SubagentsOptions { /** * Extra profile directories, searched after the project (`.pi/agents/`) and * user (`/agents/`) dirs — the hook for a distribution's bundled * default personas. */ profileDirs?: string[]; } export default function subagents(pi: ExtensionAPI, options?: SubagentsOptions): void;