Use Oh My Posh for the GitHub Copilot CLI statusline GitHub Copilot CLI's experimental statusline feature can now be rendered using Oh My Posh, allowing developers to display session state—including git branch, token usage, duration, and line changes—directly in the Copilot terminal UI. A Windows and PowerShell setup uses a local script that receives Copilot session data as JSON via stdin, maps it to environment variables, and feeds it into a custom Oh My Posh theme. The configuration requires three files in `%USERPROFILE%\.copilot\`—a command wrapper, a PowerShell parser, and a JSON theme—along with updates to Copilot's settings and feature flags. 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. - The script maps useful values into environment variables. - Oh My Posh renders a small statusline theme using those variables. If you want a coding agent to set this up for you, point it at this gist and give it this prompt: Set up GitHub Copilot CLI's experimental statusline using Oh My Posh by following this gist. Use my existing Oh My Posh theme as inspiration, but create a small statusline-specific theme instead of blindly reusing my full shell prompt. Keep it fast. Do not include secrets, tokens, private URLs, personal data, customer data, or anything that should not appear in screenshots. Acceptance criteria: 1. Create %USERPROFILE%\.copilot\statusline.cmd. 2. Create %USERPROFILE%\.copilot\statusline.ps1. 3. Create %USERPROFILE%\.copilot\statusline.omp.json. 4. Update %USERPROFILE%\.copilot\settings.json with statusLine.command pointing at statusline.cmd. 5. Enable the STATUS LINE feature flag. 6. Test the command by piping a sample Copilot payload into statusline.cmd. 7. Tell me to run /restart in Copilot CLI if it is already open. The agent should preserve any existing Copilot settings, merge into feature flags.enabled instead of replacing the array, and back up settings.json before editing it. Example shape: