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
121 words
1 minutes
How to Reset Your Session in GitHub Copilot CLI【/clear】
Overview
Ever had a Copilot conversation go so far off the rails that you just want to start over from scratch?
When instructions pile up and nothing makes sense anymore, sometimes the best move is a clean reset. That’s /clear.
Usage
Run this in Copilot CLI:
/copilot> /clearThe current conversation is completely discarded and a brand new session begins.
/clear vs. /compact
| Command | What it does | Context |
|---|---|---|
/clear | Full reset | Gone |
/compact | Summarize & compress | Preserved |
If the conversation’s direction is fundamentally wrong, use /clear. If the direction is fine but things are getting bloated, use /compact.
/clear vs. /new
/new also starts a new conversation, but the session itself is preserved. /clear abandons the session entirely and starts from zero.
Related Posts
How to Reset Your Session in GitHub Copilot CLI【/clear】
https://naonao-na.com/en/posts/github-copilot-cli-clear/
