AI Briefing
KO

GitHub Copilot CLI Guide for Beginners: An Overview of Key Slash Commands

·2026.06.16 05:15

Key point

It explains the functions and usage of key slash commands for building an efficient workflow in GitHub Copilot CLI.

Details

The core feature of GitHub Copilot CLI, slash commands, are a powerful tool that lets you control AI behavior directly from the terminal. Users can efficiently perform tasks such as changing models, checking token usage, and resuming previous sessions through these commands.

The key command features are as follows:

  • Model Management: The /model command lets you select a model suited to the nature of the task. You can choose an optimized model, from lightweight tasks like refactoring to designing complex features, balancing performance and cost.
  • Context and Token Control: Use /context to check current token usage, and /compact to summarize conversation content and free up context space. Use /clear for a complete reset.
  • Session and Change Management: /resume lets you continue a previous work session, and /diff lets you review code changes made during a session.
  • Environment Control: The /cwd command lets you switch the working directory to a different repository without exiting Copilot, increasing multitasking efficiency.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.