GitHub Copilot CLI: Slash Commands Explained

GitHub Copilot CLI enhances developer control with new slash commands for managing AI sessions, models, and context directly from the terminal.

7 min read
Developer using GitHub Copilot CLI on a laptop with code on screen.
GitHub Copilot CLI's slash commands offer enhanced control for developers.· Github Blog

GitHub Copilot CLI is evolving beyond simple code suggestions. A recent update details the integration of slash commands, transforming the command line into a sophisticated control panel for your AI coding partner. This move offers developers more direct and efficient ways to manage their AI-assisted workflows directly within the terminal.

Visual TL;DR. Copilot CLI Enhancements introduces Slash Commands Interface. Slash Commands Interface enables Command Center. Command Center includes Optimize Model Selection. Command Center includes Manage Context. Command Center includes Inspect Code. Command Center includes Tool Permissions. Optimize Model Selection leads to Developer Control. Manage Context leads to Developer Control. Inspect Code leads to Developer Control. Tool Permissions leads to Developer Control.

Related startups

  1. Copilot CLI Enhancements: new slash commands for terminal control
  2. Slash Commands Interface: typing '/' reveals scrollable command list
  3. Command Center: terminal becomes control panel for AI assistant
  4. Optimize Model Selection: switch AI models using /model command
  5. Manage Context: control AI's understanding of code sessions
  6. Inspect Code: navigate and understand AI-generated changes
  7. Tool Permissions: control access to external tools
  8. Developer Control: more direct and efficient AI workflow management
Visual TL;DR
Visual TL;DR — startuphub.ai Copilot CLI Enhancements introduces Slash Commands Interface. Slash Commands Interface enables Command Center. Command Center includes Optimize Model Selection. Optimize Model Selection leads to Developer Control introduces enables includes leads to Copilot CLI Enhancements Slash Commands Interface Command Center Optimize Model Selection Developer Control From startuphub.ai · The publishers behind this format
Visual TL;DR — startuphub.ai Copilot CLI Enhancements introduces Slash Commands Interface. Slash Commands Interface enables Command Center. Command Center includes Optimize Model Selection. Optimize Model Selection leads to Developer Control introduces enables includes leads to Copilot CLIEnhancements Slash CommandsInterface Command Center Optimize ModelSelection Developer Control From startuphub.ai · The publishers behind this format
Visual TL;DR — startuphub.ai Copilot CLI Enhancements introduces Slash Commands Interface. Slash Commands Interface enables Command Center. Command Center includes Optimize Model Selection. Optimize Model Selection leads to Developer Control introduces enables includes leads to Copilot CLI Enhancements new slash commands for terminal control Slash Commands Interface typing '/' reveals scrollable command list Command Center terminal becomes control panel for AIassistant Optimize Model Selection switch AI models using /model command Developer Control more direct and efficient AI workflowmanagement From startuphub.ai · The publishers behind this format
Visual TL;DR — startuphub.ai Copilot CLI Enhancements introduces Slash Commands Interface. Slash Commands Interface enables Command Center. Command Center includes Optimize Model Selection. Optimize Model Selection leads to Developer Control introduces enables includes leads to Copilot CLIEnhancements new slash commandsfor terminalcontrol Slash CommandsInterface typing '/' revealsscrollable commandlist Command Center terminal becomescontrol panel forAI assistant Optimize ModelSelection switch AI modelsusing /modelcommand Developer Control more direct andefficient AIworkflow management From startuphub.ai · The publishers behind this format
Visual TL;DR — startuphub.ai Copilot CLI Enhancements introduces Slash Commands Interface. Slash Commands Interface enables Command Center. Command Center includes Optimize Model Selection. Command Center includes Manage Context. Command Center includes Inspect Code. Command Center includes Tool Permissions. Optimize Model Selection leads to Developer Control. Manage Context leads to Developer Control. Inspect Code leads to Developer Control. Tool Permissions leads to Developer Control introduces enables includes includes includes includes leads to leads to leads to leads to Copilot CLI Enhancements new slash commands for terminal control Slash Commands Interface typing '/' reveals scrollable command list Command Center terminal becomes control panel for AIassistant Optimize Model Selection switch AI models using /model command Manage Context control AI's understanding of codesessions Inspect Code navigate and understand AI-generatedchanges Tool Permissions control access to external tools Developer Control more direct and efficient AI workflowmanagement From startuphub.ai · The publishers behind this format
Visual TL;DR — startuphub.ai Copilot CLI Enhancements introduces Slash Commands Interface. Slash Commands Interface enables Command Center. Command Center includes Optimize Model Selection. Command Center includes Manage Context. Command Center includes Inspect Code. Command Center includes Tool Permissions. Optimize Model Selection leads to Developer Control. Manage Context leads to Developer Control. Inspect Code leads to Developer Control. Tool Permissions leads to Developer Control introduces enables includes includes includes includes leads to leads to leads to leads to Copilot CLIEnhancements new slash commandsfor terminalcontrol Slash CommandsInterface typing '/' revealsscrollable commandlist Command Center terminal becomescontrol panel forAI assistant Optimize ModelSelection switch AI modelsusing /modelcommand Manage Context control AI'sunderstanding ofcode sessions Inspect Code navigate andunderstandAI-generated… Tool Permissions control access toexternal tools Developer Control more direct andefficient AIworkflow management From startuphub.ai · The publishers behind this format

As outlined on the GitHub Blog, these commands act as built-in controls, allowing users to guide Copilot’s behavior, inspect changes, manage context, and navigate sessions seamlessly. Typing '/' in the CLI presents a scrollable list of all available commands.

Command Center for Your AI Assistant

The introduction of GitHub Copilot CLI slash commands signifies a significant step in making AI coding tools more interactive and manageable. These commands are the primary interface for controlling the CLI’s operations.

Optimizing Model Selection

Developers can now switch between different AI models using the /model command. This feature highlights key details for each model, including their capabilities, availability, and cost multipliers, enabling users to select the most suitable model for specific tasks like refactoring or complex planning.

Context and Session Management

Maintaining awareness of the AI’s working memory is crucial. The /context command displays current token usage, system usage, and available buffer. When space is limited, /compact summarizes the conversation to free up memory, allowing work to continue without starting a new session. For a complete reset, /clear purges the entire session.

Resuming past work is simplified with /resume, which lists previous local and remote sessions, letting developers pick up where they left off.

Inspecting and Navigating Code

Understanding changes made by the AI is facilitated by the /diff command, which shows recent updates for validation. To work across different codebases or directories without exiting the CLI, /cwd allows users to change the current working directory, scoping Copilot’s actions effectively.

Tool Permission Control

Users can manage the permissions granted to Copilot CLI, such as file editing capabilities. Running /reset-allowed-tools resets these permissions, offering enhanced security when working in sensitive repositories.

This evolution of GitHub Copilot CLI empowers developers with greater control and efficiency, making the AI coding assistant a more integrated and responsive tool in their daily workflow. The ability to manage models, context, and sessions directly from the command line streamlines complex tasks and enhances productivity.

Further enhancements to GitHub Copilot CLI and its integration with tools like language servers, as seen in the recent update on Copilot CLI Gains Smarts with LSP, continue to position it as a leading platform for developers seeking to leverage advanced AI capabilities. This makes it a key player among the AI Code Assistants.

© 2026 StartupHub.ai. All rights reserved. Do not enter, scrape, copy, reproduce, or republish this article in whole or in part. Use as input to AI training, fine-tuning, retrieval-augmented generation, or any machine-learning system is prohibited without written license. Substantially-similar derivative works will be pursued to the fullest extent of applicable copyright, database, and computer-misuse laws. See our terms.