Runtime and UI
Runtime and UI
Bootstrap, root command routing, interactive TUI, terminal ergonomics, voice mode, protocol server modes, and rendering support.
How this volume fits
flowchart TD Loader[Loader/bootstrap] --> CLI[CLI workflows] CLI --> TUI[TUI and slash commands] TUI --> Terminal[Terminal setup] TUI --> Voice[Voice mode] CLI --> Server[Embedded server / ACP] TUI --> Render[Tree-sitter rich diff rendering]Pages
| Page | Why read it | File |
|---|---|---|
| Loader and bootstrap workflows | SEA/npm loader chain, restart wrapper, secure module loading, and bootstrap safeguards. | loader-bootstrap.md |
| CLI runtime workflows | Root CLI routing, pre-action setup, prompt/headless/server dispatch, and session resolution. | cli-runtime-workflows.md |
| Interactive TUI and slash-command workflows | Interactive TUI event loop, dialogs, slash command macros, and permission surfaces. | tui-and-slash-commands.md |
| Terminal setup and shell environment | Terminal detection, Shift+Enter setup, shell context, and command-history state. | terminal-setup-and-shell-environment.md |
| Voice mode and Foundry Local | Foundry Local dictation runtime, voice settings, native audio modules, and model cache checks. | voice-mode-foundry-local.md |
| Embedded server, ACP, and JSON-RPC protocol | JSON-RPC/ACP server modes, external tool calls, elicitation, sampling, and commands. | embedded-server-acp-protocol.md |
| Tree-sitter WASM usage in the Copilot CLI | Packaged Tree-sitter grammars, highlight queries, rich diff rendering, and fallback behavior. | tree-sitter-wasm-usage.md |
Reading guidance
- Follow the process lifecycle from bootstrap to TUI/server modes.
- Terminal setup and voice mode are user-facing runtime add-ons.