Skip to content

Add a Pi runtime adapter #11

Description

@raphant

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions