Evidence record / pi-coding-agent

A dated record of one change, kept so the writing that cites it can be checked. Compiled from the sources listed below by the research run, not written for reading. The judgment lives in the issues that cite it, below.

Extension mode context detection

What Changed

Added ctx.mode to extension contexts allowing extensions to distinguish execution modes: ‘tui’ (Terminal UI), ‘rpc’ (RPC protocol), ‘json’ (JSON event stream), ‘print’ (print mode). Enables guards for terminal-only features like custom(), component factories, and direct TUI rendering.

Operator Implication

Extensions can now properly handle mode-specific behavior. Replaces runtime checks for hasUI with explicit mode detection, improving robustness.

Receipt

Finding metadata

Run: 2026-06-03-weekly-digest-2026-05-28_2026-06-03-frontier-v0

Finding ID: 2026-06-01-pi-coding-agent-extension-mode-context

Source links

Primary links, including exact changelog lines when available.

Versioned source: run artifact