Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Copilot CLI reference - Slash commands

Copilot CLI slash commands

Copilot CLI documents 96 slash commands, including /add-dir PATH, /after [DELAY PROMPT] and /agent. You type these inside an interactive Copilot CLI session. Each row gives the docs' description, accepted values and an example where one is documented.

Last verified 3 official pagesFull Copilot CLI reference

Copilot CLI slash commands
CommandDescriptionExample
/add-dir PATH

Allow file access to a directory and load its .github/skills and .github/agents as trusted configurations; also grants sandbox access for the session when sandboxing is on.

Docs: /add-dir PATH
-no example
/after [DELAY PROMPT]

Schedule a non-recurring prompt, skill, or schedulable slash command for the current session (experimental). With no arguments, opens the schedule manager.

Docs: /after [DELAY PROMPT]
/after 1h /chronicle standup
/agent

Browse and select from available agents.

Docs: /agent
-no example
/app

Open the current session in the GitHub Copilot app (version 1.1.3 or later), or show the download URL if not installed.

Docs: /app
-no example
/ask [QUESTION]

Ask a quick side question without adding to conversation history (alias /btw). Without a question, reopens the last side answer.

Docs: /ask [QUESTION]
-no example
/allow-all [off|auto|show]

Enable all permissions (tools, paths, URLs); alias /yolo. An alias for /permissions allow-all.

off, auto, show

Docs: /allow-all [off|auto|show]
-no example
/autopilot [OBJECTIVE]

Start or refocus autopilot mode, optionally with an objective (alias /goal). --max-ai-credits N caps credit spend; /goal on and /goal off toggle autopilot without an objective.

Docs: /autopilot [OBJECTIVE]
/goal Refactor the auth module --max-ai-credits 5
/changelog [summarize] [VERSION|last N|since VERSION]

Display the CLI changelog (alias /release-notes); summarize gives an AI-generated summary.

Docs: /changelog [summarize] [VERSION|last N|since VERSION]
-no example
/chronicle <standup|tips|improve|reindex|skills create|skills review|skills status>

Session history tools and insights; the skills subcommands draft, review, and track repository skill proposals from observed usage. reindex rebuilds session-store.db.

standup, tips, improve, reindex, skills create, skills review, skills status

Docs: /chronicle <standup|tips|improve|reindex|skills create|skills review|skills status>
-no example
/clear [PROMPT]

Start a new conversation (aliases /new, /reset). /new worktree starts an empty session in a new Git worktree.

Docs: /clear [PROMPT]
-no example
/clikit [COMPONENT]

Preview CLI business components (for example, quota info).

Docs: /clikit [COMPONENT]
-no example
/collect-debug-logs [file|gist|share] [PATH]

Collect debug logs to a local archive, a secret GitHub gist, or upload to GitHub (share, currently staff and internal users only).

file, gist, share

Docs: /collect-debug-logs [file|gist|share] [PATH]
-no example
/compact [FOCUS-INSTRUCTIONS]

Summarize conversation history to reduce context window usage, optionally steered by focus instructions.

Docs: /compact [FOCUS-INSTRUCTIONS]
/compact focus on the auth module
/context

Show the context window token usage and visualization.

Docs: /context
-no example
/copy

Copy the last response to the clipboard.

Docs: /copy
-no example
/cwd, /cd [PATH]

Change the working directory or display the current directory.

Docs: /cwd, /cd [PATH]
-no example
/delegate [PROMPT]

Delegate changes to a remote repository with an AI-generated pull request.

Docs: /delegate [PROMPT]
-no example
/diagnose [PROMPT]

Analyze the current session log for errors and unexpected behavior, optionally focused by a custom prompt.

Docs: /diagnose [PROMPT]
-no example
/diff

Review changes in the current directory; auto-switches to branch diff when the working tree is clean (experimental).

Docs: /diff
-no example
/downgrade VERSION

Download and restart into a specific CLI version. Available for team accounts.

Docs: /downgrade VERSION
-no example
/env

Show loaded environment details: instructions, MCP servers, skills, agents, hooks, plugins, LSPs, and extensions.

Docs: /env
-no example
/every [INTERVAL] PROMPT

Schedule a recurring prompt, skill, or schedulable slash command for the current session (experimental). With no arguments, opens the schedule manager.

Docs: /every [INTERVAL] PROMPT
/every 1h run tests
/exit, /quit

Close the current session, foregrounding the newest remaining session or quitting if it is the last. /exit print always tears down the CLI and offers to dump the transcript.

Docs: /exit, /quit
-no example
/extensions [manage|mode]

Manage CLI extensions (alias /extension; experimental).

manage, mode

Docs: /extensions [manage|mode]
-no example
/experimental [on|off|show]

Toggle, set, or show experimental features.

on, off, show

Docs: /experimental [on|off|show]
-no example
/feedback, /bug

Provide feedback about the CLI; can offer a feedback-with-logs route.

Docs: /feedback, /bug
-no example
/fleet [PROMPT]

Enable parallel subagent execution of parts of a task.

Docs: /fleet [PROMPT]
-no example
/help

Show the help for interactive commands, including the complete list of slash commands.

Docs: /help
-no example
/ide

Connect to an IDE workspace.

Docs: /ide
-no example
/init

Initialize Copilot custom instructions and agentic features for this repository by writing or updating .github/copilot-instructions.md.

Docs: /init
-no example
/init suppress

Permanently hide the "No copilot instructions found" startup message for the current repository.

Docs: /init suppress
-no example
/instructions

View and toggle custom instruction files.

Docs: /instructions
-no example
/keep-alive [on|off|busy|DURATION]

Prevent the machine from sleeping while a session is active, while the agent is busy, or for a set time (alias /caffeinate). Bare numbers default to minutes.

on, off, busy, or a duration like 30, 30m, 2h, 1d

Docs: /keep-alive [on|off|busy|DURATION]
-no example
/limits

Open the interactive response limits dialog.

Docs: /limits
-no example
/limits set max-ai-credits VALUE

Set a soft maximum for AI Credits allowed per response; response limits reset for each user message.

Docs: /limits set max-ai-credits VALUE
-no example
/limits unset [max-ai-credits|all]

Remove a specific response limit, or all response limits.

max-ai-credits, all

Docs: /limits unset [max-ai-credits|all]
-no example
/list-dirs

Display all directories for which file access has been allowed.

Docs: /list-dirs
-no example
/login

Log in to Copilot.

Docs: /login
-no example
/logout

Log out of Copilot.

Docs: /logout
-no example
/lsp [show|test|reload|logs|help] [SERVER-NAME]

Manage the language server configuration: show status, test that a server starts, reload configs from disk, or open the live LSP services log panel.

show, test, reload, logs, help

Docs: /lsp [show|test|reload|logs|help] [SERVER-NAME]
-no example
/mcp [config|list|show|add|edit|delete|disable|enable|auth|reload|search] [SERVER-NAME]

Manage MCP server configuration via the plugins dashboard. list (alias ls), show, and config are read-only and can run mid-turn; mutating subcommands wait for the turn to finish. auth triggers a fresh OAuth flow.

config, list, ls, show, add, edit, delete, disable, enable, auth, reload, search

Docs: /mcp [config|list|show|add|edit|delete|disable|enable|auth|reload|search] [SERVER-NAME]
-no example
/model [--session|--global|--repo|--local] [MODEL|auto TIER]

Select the AI model or Auto (alias /models). Defaults to the current session only; --repo/--local pin in repository settings and --global sets the default for future sessions.

Auto tiers: efficiency, balance, intelligence

Docs: /model [--session|--global|--repo|--local] [MODEL|auto TIER]
-no example
/permissions [default|assisted|allow-all|show]

Switch between permission modes or show the current mode. The canonical command for permission mode changes.

default, assisted, allow-all, show

Docs: /permissions [default|assisted|allow-all|show]
-no example
/permissions reset

Reset all in-memory tool and path approvals for the current session.

Docs: /permissions reset
-no example
/plan [PROMPT]

Create an implementation plan before coding; project file edits are blocked until the plan is approved.

Docs: /plan [PROMPT]
-no example
/plugin

Open the plugins dashboard with Installed, Online, and Marketplace views for enabling, disabling, updating, or uninstalling plugins.

Docs: /plugin
-no example
/plugin install SOURCE

Install a plugin from a marketplace spec, GitHub repository, git URL, or local path.

Docs: /plugin install SOURCE
-no example
/plugin update PLUGIN[@MARKETPLACE]

Update an installed plugin.

Docs: /plugin update PLUGIN[@MARKETPLACE]
-no example
/plugin uninstall PLUGIN[@MARKETPLACE]

Uninstall a plugin (aliases remove, rm).

Docs: /plugin uninstall PLUGIN[@MARKETPLACE]
-no example
/plugin list

List installed plugins (alias ls); read-only, can run while the agent is busy.

Docs: /plugin list
-no example
/plugin marketplace add SOURCE

Add a marketplace.

Docs: /plugin marketplace add SOURCE
-no example
/plugin marketplace remove NAME

Remove a marketplace.

Docs: /plugin marketplace remove NAME
-no example
/plugin marketplace list

List registered marketplaces.

Docs: /plugin marketplace list
-no example
/plugin marketplace browse NAME

Browse plugins in a marketplace.

Docs: /plugin marketplace browse NAME
-no example
/plugin marketplace update [NAME]

Re-fetch a marketplace's plugin catalog, or every registered marketplace when no name is given (alias refresh).

Docs: /plugin marketplace update [NAME]
-no example
/pr [view|create|fix|auto|automerge]

Manage pull requests for the current branch. auto drives the PR to green and stops; automerge (alias agentmerge) drives it to green and merges. create follows the repository PR template by default.

view, create, fix, auto, automerge

Docs: /pr [view|create|fix|auto|automerge]
-no example
/refine TEXT

Rewrite a roughly composed prompt into a clear one for review; with no arguments (via Ctrl+X then /refine) it cleans up the current input box.

Docs: /refine TEXT
-no example
/remote [on|off]

Show remote control status, enable remote steering (on), or end the remote connection (off).

on, off

Docs: /remote [on|off]
-no example
/rename [NAME]

Rename the current session, auto-generating a name if omitted; alias for /session rename.

Docs: /rename [NAME]
-no example
/research TOPIC

Run a deep research investigation on a topic.

Docs: /research TOPIC
-no example
/reset-allowed-tools

Reset the list of allowed tools.

Docs: /reset-allowed-tools
-no example
/restart

Restart the CLI, restoring all of the current process's live sessions.

Docs: /restart
-no example
/resume [SESSION-ID]

Switch to a different session from a list, optionally by session ID (alias /continue).

Docs: /resume [SESSION-ID]
-no example
/review [PROMPT]

Run the code review agent to analyze changes.

Docs: /review [PROMPT]
-no example
/rubber-duck [PROMPT]

Consult the rubber duck agent for a second opinion on plans, code, and tests.

Docs: /rubber-duck [PROMPT]
-no example
/sandbox [config|status|policy [COMMAND]|enable|disable]

Manage sandbox restrictions on filesystem and network access. enable session/disable session change only the current session; policy shows grants and can inspect a command without running it.

config, status, policy, enable, disable

Docs: /sandbox [config|status|policy [COMMAND]|enable|disable]
/sandbox policy npm install
/sandbox ca [create|trust|rotate|remove]

Manage the sandbox's proxy certificate authority from inside a session.

create, trust, rotate, remove

Docs: /sandbox ca [create|trust|rotate|remove]
-no example
/security-review [PROMPT]

Run a focused security review of active local code changes and return prioritized findings with remediation suggestions; not a full repository audit.

Docs: /security-review [PROMPT]
-no example
/session [info|checkpoints [n]|files|plan|rename [NAME]|cleanup|prune|delete [ID]|delete-all]

Show session information and manage sessions (alias /sessions). delete and delete-all preview first and need --yes; prune --older-than DAYS supports --dry-run.

info, checkpoints, files, plan, rename, cleanup, prune, delete, delete-all

Docs: /session [info|checkpoints [n]|files|plan|rename [NAME]|cleanup|prune|delete [ID]|delete-all]
/session delete-all --yes
/settings [--repo|--local] [show KEY|KEY|KEY VALUE]

Open the settings dialog (User, Repo, Repo (local), Problems tabs), focus a key, set a value inline, or show a value (alias /config). --repo/--local target repository settings files.

Docs: /settings [--repo|--local] [show KEY|KEY|KEY VALUE]
/settings --repo model gpt-6-astra
/share [link|off|file|html|gist|research] [...]

Share the current session as a GitHub link (default when logged in and synced), Markdown file, HTML file, or gist, or export the research report (alias /export). off stops sharing.

link, off, file, html, gist, research

Docs: /share [link|off|file|html|gist|research] [...]
-no example
/skills

Open the plugins dashboard on the Skills tab.

Docs: /skills
-no example
/skills list

List all available skills.

Docs: /skills list
-no example
/skills info NAME

Show details of a specific skill.

Docs: /skills info NAME
-no example
/skills add [--project] <FILE|URL|DIRECTORY>

Add a skill from a file, URL, or directory; --project scopes a file or URL install to this repository.

Docs: /skills add [--project] <FILE|URL|DIRECTORY>
-no example
/skills remove <NAME|DIRECTORY>

Remove a skill by name, or unregister a custom skill directory.

Docs: /skills remove <NAME|DIRECTORY>
-no example
/skills reload

Reload skills from all directories.

Docs: /skills reload
-no example
/statusline, /footer

Configure which items appear in the status line.

Docs: /statusline, /footer
-no example
/subagents, /agents

Configure default and per-agent subagent models; agents with modelPolicy "required" show a locked Model entry.

Docs: /subagents, /agents
-no example
/tasks

View and manage tasks (subagents and shell commands).

Docs: /tasks
-no example
/terminal-setup

Configure the terminal for multiline input support (Shift+Enter and Ctrl+Enter).

Docs: /terminal-setup
-no example
/theme [default|github|dim|high-contrast|colorblind]

View or set the color mode.

default, github, dim, high-contrast, colorblind

Docs: /theme [default|github|dim|high-contrast|colorblind]
-no example
/tuikit [colors|icons|select|tabbar]

Preview TUIkit design-system components and color tokens.

colors, icons, select, tabbar

Docs: /tuikit [colors|icons|select|tabbar]
-no example
/undo, /rewind

Open the rewind picker to roll the session back to an earlier user turn, choosing Conversation only or Conversation + files. File changes are tracked per turn, so Git is not required.

Docs: /undo, /rewind
-no example
/update, /upgrade

Update the CLI to the latest version.

Docs: /update, /upgrade
-no example
/usage

Display session usage metrics, including per-model token totals and, for token-based-billing accounts, per-model AI Credit consumption.

Docs: /usage
-no example
/user [show|list|switch]

Manage signed-in accounts.

show, list, switch

Docs: /user [show|list|switch]
-no example
/version

Display version information and check for updates.

Docs: /version
-no example
/vim

Toggle Vim-style modal editing for the prompt box (motions, operators, yank/put, undo/redo, counts). Also configurable with the editorMode setting.

Docs: /vim
-no example
/voice [on|off|models|devices]

Toggle voice mode, browse voice models, or choose the input microphone.

on, off, models, devices

Docs: /voice [on|off|models|devices]
-no example
/workflows

Observe workflow runs, phases, agents, and progress. Requires a token-based-billing plan.

Docs: /workflows
-no example
/fork [NAME]

Fork the current session into a new session (alias /branch); usable while the agent runs. /fork worktree forks into a new Git worktree off HEAD.

Docs: /fork [NAME]
-no example
/worktree [branch|task]

Create a new Git worktree and switch to it, leaving uncommitted changes behind. Branches off HEAD unless worktreeBaseRef is "defaultBranch".

Docs: /worktree [branch|task]
-no example
/worktree new [PROMPT]

Deprecated; use /new worktree. Starts a new conversation in a new Git worktree.

Docs: /worktree new [PROMPT]
-no example
/move [branch|task]

Move uncommitted changes into a new Git worktree and switch to it. Requires a Git repository.

Docs: /move [branch|task]
-no example

The rest of the Copilot CLI reference

FAQ

How many slash commands does Copilot CLI have?

The official Copilot CLI docs list 96 slash commands, including /add-dir PATH, /after [DELAY PROMPT] and /agent. All of them are in the table above, in the docs' order.

What does /add-dir PATH do in Copilot CLI?

Allow file access to a directory and load its .github/skills and .github/agents as trusted configurations; also grants sandbox access for the session when sandboxing is on.

Where are Copilot CLI slash commands documented?

On 3 official docs pages at docs.github.com, last read on October 17, 2026. Every row in the table links the exact section it came from.

More on Copilot CLI

Sources

Last verified . Names and examples are copied verbatim from the 3 official pages below, and every row above links the exact section it came from.

Newsletter

Know when your tools change

One email per week. New coding agent releases, the flags and commands they add, and what they mean for how you work.