To clear context in GitHub Copilot CLI, type /clear and press Enter; GitHub’s command reference says it starts a new conversation, and /new and /reset do the same thing.
As of December 5, 2026, the Copilot CLI documentation lists these options:
- /clear, /new or /reset [prompt]: start a new conversation. You can add a prompt to begin the new conversation right away.
- /new worktree: starts an empty session in a new Git worktree and leaves the current conversation unchanged.
- /compact [focus instructions]: summarizes the conversation history to reduce context window usage, for example
/compact focus on the auth module. - /context: shows context window token usage, so you can check before you clear.
- /rewind (or /undo): rolls the session back to an earlier turn, with or without restoring files. A rewind cannot be undone.
- /resume: switches to a different saved session.
Related: What is the GitHub Copilot context window?, How to change the model in Copilot CLI? and How to clear context in Codex?
Source: GitHub Docs, GitHub Copilot CLI command reference
Image: GitHub mark (Octicons) by GitHub, MIT license, via Wikimedia Commons. Placed on a white background and resized. GitHub and Copilot are trademarks of GitHub, Inc. FreeAnswers is not affiliated with or endorsed by GitHub or Microsoft.