To check context usage in GitHub Copilot CLI, type /context in a session; GitHub’s docs say it shows the active model and the tokens in use out of that model’s total context window.
As of December 5, 2026, the /context output breaks usage down by token count and percentage for:
- System prompt, custom instructions (when present) and system tools
- MCP tools contributed by MCP servers
- Messages, meaning your conversation history
- Free space and the buffer reserved for the model’s response
GitHub says Copilot CLI starts compacting automatically in the background at about 80% of the context window, and pauses briefly if usage reaches about 95% before compaction finishes. You can compact at any time with /compact (press Esc to cancel), or start over with /clear. Tool output larger than 20 KiB is saved to a temporary file by default to save space.
Related: How to clear context in Copilot CLI?, What is the GitHub Copilot context window? and How to check context usage in Claude Code?
Source: GitHub Docs, Managing context for GitHub Copilot; GitHub Docs, Copilot CLI command reference
Image: GitHub mark (Octicons) by GitHub, MIT license, via Wikimedia Commons. Placed on a white background and resized. GitHub and Copilot are trademarks of GitHub, Inc. FreeAnswers is not affiliated with or endorsed by GitHub or Microsoft.