← All How-tos

How-to⁠ · 5 things · ⁠ · GitHub Copilot CLI

Copilot CLI slash commands: 5 worth knowing

Want more out of a Copilot CLI session?

Try these five slash commands next time you open one.

You need: Any Copilot plan, including the no‑cost tier (every plan includes Copilot CLI), and Copilot CLI installed. Plan source: GitHub Docs: plans for GitHub Copilot

5 things

  1. /context: shows how full your context window is. /context docs
  2. /security-review: a security review of your active local changes, with prioritized findings and suggested fixes. Not a full repo audit. /security-review docs
  3. /keep-alive 2h (or /caffeinate 2h): keeps your machine awake for two hours. It may not work on WSL, containers or headless machines (changelog). /keep-alive docs
  4. /share html: exports the session as an HTML file. /share docs
  5. /vim: Vim-style editing in the prompt box. Run it again to turn it off. /vim docs

Source: GitHub Docs: Copilot CLI command reference⁠ · GitHub Docs: managing context for Copilot⁠ · Copilot CLI changelog⁠ · GitHub Docs: plans for GitHub Copilot