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
161 words
1 minutes
How to Compress Conversation Context in GitHub Copilot CLI【/compact】
Overview
Ever been deep in a conversation with GitHub Copilot CLI and noticed it starting to… forget things you just told it?
You’re not imagining it. As conversations grow longer, the context window fills up and older information gets pushed out.
That’s where /compact comes in.
What’s Going On?
Copilot CLI has a limited context window — the amount of information it can reference at once. As conversations get longer:
- It forgets earlier instructions
- It asks the same questions again
- Response quality degrades
The Fix: /compact
Run this in Copilot CLI:
/copilot> /compactYour conversation history gets summarized and compressed, freeing up context window space. You can also give it a hint about what to prioritize:
/copilot> /compact focus on the auth discussion/compact vs. /clear
| Command | What it does |
|---|---|
/compact | Summarizes and compresses (keeps context) |
/clear | Resets everything (all context is gone) |
Use /compact when you want to keep working on the same task. Use /clear when you want a completely fresh start.
Related Posts
How to Compress Conversation Context in GitHub Copilot CLI【/compact】
https://naonao-na.com/en/posts/github-copilot-cli-compact/
