Goal
Visualize Pi sessions and subagent activity beside Claude Code and Codex sessions.
Proposed change
Define a runtime adapter boundary and implement a Pi adapter that emits the existing Agent Flow protocol.
Keep Pi-specific parsing outside the shared visualization code.
Acceptance criteria
- The adapter discovers active Pi sessions from a configured Pi directory.
- The adapter emits sessions, agents, tool calls, results, errors, messages, and usage when Pi records them.
- The runtime badge identifies Pi sessions.
- A configuration option can watch Pi only or watch all supported runtimes.
- Fixture tests cover a main agent, one subagent, tool failure, and session completion.
Related upstream work
Source
Goal
Visualize Pi sessions and subagent activity beside Claude Code and Codex sessions.
Proposed change
Define a runtime adapter boundary and implement a Pi adapter that emits the existing Agent Flow protocol.
Keep Pi-specific parsing outside the shared visualization code.
Acceptance criteria
Related upstream work
Source
extension/src/session-runtime.tsdefines the current runtime interface.extension/src/claude-runtime.tsandextension/src/codex-runtime.tsimplement the existing adapters.