Summary
From pi-mono subagent example + our current subagent flows, there are a handful of small, low-risk improvements that would improve reliability and UX.
https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent/examples/extensions/subagent
Ideas
- Persist subagent run registry so announce survives gateway restarts (currently in-memory only).
- Add stats parity in announce: turns + cache read/write + ctx tokens.
- Include last N tool call previews in announce (short/truncated) for quick debug.
- Add project-agent gating + source metadata in announce (user vs project).
- Cache agent discovery per-repo with short TTL to avoid repeated IO.
- Expose per-agent maxConcurrent + queue length; fail fast with clear error.
- On timeout: auto-archive/delete to avoid orphan sessions.
- Enforce structured announce output (Status/Result/Notes) for parseability.
- Surface stopReason + stderr snippet when failed.
- Per-agent tool allow/deny list in config (least privilege).
Summary
From pi-mono subagent example + our current subagent flows, there are a handful of small, low-risk improvements that would improve reliability and UX.
https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent/examples/extensions/subagent
Ideas