Categories
Tags
Astro Automation Camping changelog clear CLI Codex compact Component Design Configuration context Context Copilot copy Ctrl+S CUDA Cursor Day Trip delegate diff Dynamic Routing Editor Error Error Fix Error Handling experimental Gemini git GitHub GitHub Copilot Google Hiking Hot Springs init Installation Iwate Prefecture Kobe Linux Mac Mention Meteor Shower Mode Switching model Nara Prefecture NoAdapterInstalled Node.js nvm OpenAI params plan PowerShell Prompt props Public Key Authentication Python Redirect research rewind SEO share Shell Execution Shift+Tab Shortcut SSH SSH config ssh-copy-id Stargazing Static Site streamer-mode Student undo Update usage Visual Studio VS Code VS2026 Windows WSL
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> /contextYou’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
- Run
/contextto check usage - If it’s high, run
/compactto compress - Run
/contextagain to confirm
A simple workflow for keeping your context lean and your responses sharp.
Related Posts
How to Check Token Usage in GitHub Copilot CLI【/context】
https://naonao-na.com/en/posts/github-copilot-cli-context/
