Pi: Session-Tree Harness

Pi: Session-Tree Harness An architecture diagram generated by Archify. TUI · interactive terminal · Architecture component TUI interactive terminal Print / JSON · one-shot runs · Architecture component Print / JSON one-shot runs RPC / SDK · programmatic control · Architecture component RPC / SDK programmatic control Agent Engine · turns, tools, compaction · Same core runtime Agent Engine turns, tools, compaction Session Tree · append-only JSONL entries · Same core runtime Session Tree append-only JSONL entries Context Assembly · active branch + resources · Same core runtime Context Assembly active branch + resources Model Provider · streamed responses · Same core runtime Model Provider streamed responses Tools & Extensions · hooks, commands, UI · Same core runtime Tools & Extensions hooks, commands, UI Environment · files, shell, services · Architecture component Environment files, shell, services input/events input/events input/events append entries active branch request text / tool calls execute actions results branch / fork / compact Same core runtime Legend Frontend Backend Database Cloud Security External