GitHub Copilot CLI has an experimental statusline feature that can run a local command and render the command's output at the bottom of the Copilot terminal UI.
If you already use Oh My Posh, you can use the same engine, colors, and segments to render a Copilot-aware statusline in a few minutes.
This guide shows a Windows + PowerShell setup, but the idea is portable:
- Copilot calls a local script.
- Copilot sends session state to the script as JSON on stdin.