132 words
1 minutes
How to Check Token Usage in GitHub Copilot CLI【/context】

Overview#

When your conversation’s been going for a while, ever wondered “how much context am I actually using right now?”

If you hit the limit, older information starts getting dropped — and you want to act before that happens. The /context command shows you exactly where you stand.


Usage#

Run this in Copilot CLI:

/copilot> /context

You’ll see a breakdown of your context window token usage.


What You’ll See#

  • Current token usage
  • Percentage of context window used
  • Breakdown by category (conversation history, file references, etc.)

When the numbers start looking high, it’s a good signal to run /compact.


Combo with /compact#

  1. Run /context to check usage
  2. If it’s high, run /compact to compress
  3. Run /context again to confirm

A simple workflow for keeping your context lean and your responses sharp.


How to Check Token Usage in GitHub Copilot CLI【/context】
https://naonao-na.com/en/posts/github-copilot-cli-context/
Author
[object Object]
Published at
2026-03-28