packages/tui/src/). Differential rendering (surgical redraw, scrollback preservation, container change detection) introduced 2025-08-11. Key detection via matchesKey() (DEFAULT_EDITOR_KEYBINDINGS) — never hardcode key checks. Log files (PI_TUI_WRITE_LOG) named tui-<timestamp>-<pid>.log for multi-session debugging.
Related: Interactive mode, Prime Agent runtime