Skip to content

Copilot CLI Keybindings

Slash commands and keyboard shortcuts for interactive GitHub Copilot CLI sessions.

Run copilot to start an interactive session, then type / to see all available commands.

Session & workflow

CommandWhat it does
/clear, /newClear conversation history and start fresh
/exit, /quitExit the CLI session
/helpShow help for interactive commands
/rename <name>Rename the current session
/resume [sessionId]Switch to a different session
/feedbackProvide feedback about the CLI

Context & permissions

CommandWhat it does
/compactSummarize conversation to reduce context window usage
/contextShow context window token usage and visualization
/allow-all, /yoloEnable all permissions (tools, paths, URLs)
/add-dir <directory>Add a directory to the allowed list for file access
/list-dirsDisplay all allowed directories for file access
/reset-allowed-toolsReset the list of allowed tools

Code workflows

CommandWhat it does
/plan [prompt]Create an implementation plan before coding
/review [prompt]Run code review agent to analyze changes
/diffReview the changes made in the current directory
/session [checkpoints|files|plan|rename]Show session info and workspace summary
/tasksView and manage background tasks

Model & configuration

CommandWhat it does
/model, /models [model]Select AI model to use
/agentBrowse and select from available agents
/mcp [show|add|edit|delete|disable|enable]Manage MCP server configuration
/instructionsView and toggle custom instruction files
/initInitialize Copilot instructions and agentic features

Skills & plugins

CommandWhat it does
/skills [list|info|add|remove|reload]Manage skills
/plugin [marketplace|install|uninstall|update|list]Manage plugins

Utilities

CommandWhat it does
/cwd, /cd [directory]Change working directory or show current directory
/share [file|gist] [path]Share session to markdown file or GitHub gist
/usageDisplay session usage metrics and statistics
/ideConnect to an IDE workspace
/terminal-setupConfigure terminal for multiline input support
/theme [show|set|list]View or configure terminal theme
/experimental [on|off|show]Show or toggle experimental features
/loginLog in to Copilot
/logoutLog out of Copilot

Keyboard shortcuts

KeyWhat it does
/ Navigate prompt history
Shift+TabToggle between plan mode and execution mode
EscapeCancel current input or operation
Ctrl+CInterrupt running operation

Common workflows

ScenarioCommand or shortcut
Create plan before coding/plan → describe task → review plan
Switch to plan modeShift+Tab → review → Shift+Tab to execute
Switch AI model/model → select model
Start fresh task/clear or /new
Resume previous session/resume → select session

Tips

  • Enable plan mode (Shift+Tab) to review commands before execution
  • Use /allow-all or /yolo only when confident in operations
  • Use /plan before complex implementations
  • Run /diff to review changes before committing

References

Copyright © MSG Systems Romania AI Labs