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

Control session lifecycle, context size, and navigation.

Authenticate from inside the UI

Start login flow interactively.

textANYcopilotslash-commandauth
text
/login

Use this the first time you open the interactive interface or after credentials are cleared.

Clear conversation history

Start a fresh conversation in the current session.

textANYcopilotslash-commandsession
text
/clear

You can also use `/new` for the same goal.

Compact the conversation

Summarize earlier context to reduce token usage.

textANYcopilotslash-commandcontext
text
/compact

Helpful in long sessions where the context window is getting crowded.

Inspect context usage

Show context window usage and visualization.

textANYcopilotslash-commandcontext
text
/context

Useful when you want to understand why older details may have been summarized away.

Show or change the working directory

Inspect or switch directories mid-session.

textANYcopilotslash-commandcwd
text
/cd ../other-project

Use `/cwd` to display the current directory, or `/cd PATH` to change it.

Exit the CLI

Close the interactive session.

textANYcopilotslash-commandexit
text
/exit

`/quit` is also supported.

Review, diff, and sharing commands

Inspect changes, session state, and shareable outputs.

Review current directory changes

Show or review edits in the working directory.

textANYcopilotslash-commanddiff
text
/diff

A good checkpoint after Copilot has made a round of changes.

Run the code review agent

Review code changes with an agent prompt.

textANYcopilotslash-commandreview
text
/review Check for risky changes, missing tests, and security issues.

Useful before merging or creating a pull request.

Inspect the session plan

Show the session plan or workspace summary.

textANYcopilotslash-commandsession
text
/session plan

Good for regaining orientation after a long autonomous task.

List files involved in the session

Inspect touched or relevant files.

textANYcopilotslash-commandsession
text
/session files

Useful when auditing what Copilot has considered or changed.

Share the session to a Markdown file

Persist a transcript to disk.

textANYcopilotslash-commandshare
text
/share file ./copilot-session.md

Helpful for handoffs, audits, and async documentation.

Share the session to a secret gist

Create a gist from the session transcript.

textANYcopilotslash-commandgist
text
/share gist

Convenient for sending a private session summary to teammates.

Advanced agent and UI commands

Use agents, parallelism, themes, and terminal setup features.

Select a custom agent

Browse and choose an available agent.

textANYcopilotslash-commandagent
text
/agent

Useful when your repo or team provides task-specific agents.

Delegate work to a remote repository

Ask Copilot to prepare changes and a PR remotely.

textANYcopilotslash-commanddelegate
text
/delegate Upgrade the CI workflow to use reusable actions.

This is a powerful remote-workflow command for repository automation.

Run tasks in parallel with subagents

Split a problem across multiple agents.

textANYcopilotslash-commandparallelism
text
/fleet Analyze the test failures, lint errors, and dependency issues in parallel.

Good for broad audits and large maintenance tasks.

Enable multiline terminal input support

Configure the terminal for better prompt entry.

textANYcopilotslash-commandterminal
text
/terminal-setup

Especially helpful if you write long multi-line prompts often.

List available themes

See installed CLI themes.

textANYcopilotslash-commandtheme
text
/theme list

Then use `/theme set THEME-ID` or `/theme show`.

Show session usage metrics

Inspect usage statistics for the current session.

textANYcopilotslash-commandusage
text
/usage

Useful for understanding how much work and context a session has consumed.

Recommended next

No recommendations yet.