| Filename | Latest commit message | Latest commit date |
|---|---|---|
| extensions | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
pi-agents-preview
Live preview of parallel subagents for pi. When your agent spawns
run_agent / run_workflow / TaskExecute / subagent calls, the transcript only
shows the last update of the running tool — parallel agents collapse into one line.
This extension gives every agent its own live row, plus a dockable side panel.
Surfaces
Widget above the editor — always on while agents run, one row per agent (status, elapsed time, latest activity line), updating live as they stream:
⚡ agents 2 running ctrl+t panel
● worker-1 45s Reading src/app.ts
● review-diff 31s Running npm test
✓ build-api 12s done
Side panel — /agents or Ctrl+G — right-docked overlay panel with each
agent's live transcript. Stays open and keeps updating while agents work.
╭⚡ agents 2/3 live ───────────────╮
│▌● worker-1 45s ... │
│ ● review-diff 31s ... │
│ ✓ build-api 12s done │
├ worker-1 ───────────────────────┤
│ Reading src/app.ts │
│ analyzing imports │
╰ ←→ agent · ↑↓ scroll · esc ─────╯
Keys: ←→ switch agent · ↑↓ scroll its transcript · Esc close.
Install
With pi's package manager (HTTPS, no SSH keys needed):
pi install https://git.cyfrowynomada.com/CyfrowyNomada/pi-agents-preview.git
One-shot try without installing:
pi -e https://git.cyfrowynomada.com/CyfrowyNomada/pi-agents-preview.git
Manual alternative: copy extensions/agent-preview.ts into ~/.pi/agent/extensions/.
Then /reload (or restart pi). Requires interactive TUI mode.
Configuration
Tracked tool names default to run_agent, run_workflow, taskexecute, taskcreate, subagent, agent. Override with an environment variable:
export PI_AGENT_PREVIEW_TOOLS="run_agent,taskexecute,my_custom_spawner"
Tip: pass label in run_agent calls — it becomes the row name in the widget and panel.
Compatibility
- Parallel
tasksarrays from the officialsubagentextension are expanded into one row per child agent. - pi ≥ 1.6.
License
MIT © CyfrowyNomada