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> /clear

The current conversation is completely discarded and a brand new session begins.


/clear vs. /compact#

CommandWhat it doesContext
/clearFull resetGone
/compactSummarize & compressPreserved

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.


How to Reset Your Session in GitHub Copilot CLI【/clear】
https://naonao-na.com/en/posts/github-copilot-cli-clear/
Author
[object Object]
Published at
2026-03-28