Copilot CLI: Slash Commands, Shortcuts, Review, and Session Control

Slash commands and keyboard shortcuts for managing sessions, reviewing changes, sharing output, and using advanced agent features in Copilot CLI.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Session control slash commands
Authenticate from inside the UI
/login

# Start login flow interactively.

Clear conversation history
/clear

# Start a fresh conversation in the current session.

Compact the conversation
/compact

# Summarize earlier context to reduce token usage.

Inspect context usage
/context

# Show context window usage and visualization.

Show or change the working directory
/cd ../other-project

# Inspect or switch directories mid-session.

Exit the CLI
/exit

# Close the interactive session.

## Review, diff, and sharing commands
Review current directory changes
/diff

# Show or review edits in the working directory.

Run the code review agent
/review Check for risky changes, missing tests, and security issues.

# Review code changes with an agent prompt.

Inspect the session plan
/session plan

# Show the session plan or workspace summary.

List files involved in the session
/session files

# Inspect touched or relevant files.

Share the session to a Markdown file
/share file ./copilot-session.md

# Persist a transcript to disk.

Share the session to a secret gist
/share gist

# Create a gist from the session transcript.

## Advanced agent and UI commands
Select a custom agent
/agent

# Browse and choose an available agent.

Delegate work to a remote repository
/delegate Upgrade the CI workflow to use reusable actions.

# Ask Copilot to prepare changes and a PR remotely.

Run tasks in parallel with subagents
/fleet Analyze the test failures, lint errors, and dependency issues in parallel.

# Split a problem across multiple agents.

Enable multiline terminal input support
/terminal-setup

# Configure the terminal for better prompt entry.

List available themes
/theme list

# See installed CLI themes.

Show session usage metrics
/usage

# Inspect usage statistics for the current session.

Recommended next

No recommendations yet.