The complete reference โ every surface, every config, every command. One page.
v1.0.17 ยท Claude Sonnet 4.5 (default) ยท April 2026
Every surface where GitHub Copilot shows up โ from your terminal to the cloud.
Every lever you can pull โ instructions, skills, hooks, agents, plugins, extensions, and more.
.github/copilot-instructions.md
applyTo glob in YAML frontmatter. Target TypeScript files, test directories, API routes, etc. Combines with repo-wide instructions..github/instructions/**/*.instructions.md
AGENTS.md, CLAUDE.md, and GEMINI.md. Root-level files are treated as primary instructions.AGENTS.md ยท CLAUDE.md ยท GEMINI.md
COPILOT_CUSTOM_INSTRUCTIONS_DIRS env var.~/.copilot/copilot-instructions.md
SKILL.md with YAML frontmatter (name + description). Invoke with /skill-name or auto-detected. Open standard (agentskills spec). Docs โ.github/skills/<name>/SKILL.md ยท ~/.copilot/skills/
/mcp add. Docs โ~/.copilot/mcp-config.json ยท /mcp add
sessionStart, sessionEnd, preToolUse, postToolUse, userPromptSubmitted, agentStop, subagentStop, errorOccurred. Approve/deny tools programmatically, add logging, security scanning. Docs โ.github/hooks/*.json
infer: true for auto-delegation. React reviewer, docs writer, security auditor, etc..github/agents/ ยท ~/.copilot/agents/ ยท .github-private/agents/
Automatic ยท /fleet for parallel execution
plugin.json manifest. Install from repos or marketplaces. Update, list, uninstall via /plugin. Docs โplugin.json ยท copilot plugin install ./my-plugin
marketplace.json in .github/plugin/. Users add with /plugin marketplace add org/repo. Official marketplaces: github/copilot-plugins, github/awesome-copilot..github/plugin/marketplace.json
@github/copilot-sdk. Extend the CLI with your own capabilities beyond built-in features. Enable with /experimental on. Added in v1.0.3. Changelog โ/experimental on ยท @github/copilot-sdk
/lsp.~/.copilot/lsp-config.json ยท .github/lsp.json
Automatic ยท Persistent across sessions
| Requirement | Best Option |
|---|---|
| Copilot should always follow our repo conventions | Custom Instructions |
| I want a repeatable workflow I can invoke on demand | Skills |
| I want guardrails, policy, or automation around tool use | Hooks |
| I need Copilot to use tools from an external service | MCP Servers |
| I want Copilot to operate as a specialist for certain tasks | Custom Agent |
| I want to add a package of functionality without manual config | Plugin |
| I want to share plugins with my team or publicly | Plugin Marketplace |
| I want rich code intelligence (go-to-def, diagnostics) | LSP Servers |
Install, launch, and master โ every command, shortcut, and workflow pattern.
copilot
/login
/init
Prompt
Read โ Edit โ Run
/diff
/delegate ยท git push
| Shortcut | Action |
|---|---|
@file | Include file contents in context |
#issue | Reference GitHub issues, PRs, discussions New |
!cmd | Run shell command directly |
&prompt | Delegate to coding agent |
Shift+Tab | Cycle modes (interactive โ plan โ autopilot) |
Ctrl+S | Run command while preserving input |
Ctrl+T | Toggle reasoning display |
Ctrl+O | Expand recent timeline |
Ctrl+E | Expand all timeline items |
Ctrl+G | Edit prompt in external editor |
Ctrl+L | Clear screen |
Esc | Cancel current operation |
โ / โ | Navigate command history |
Ctrl+R | Search command history (reverse incremental search) New |
Ctrl+Z | Suspend/resume (Unix platforms) New |
Esc-Esc | Rewind file changes to any previous snapshot New |
Tab | Resume local & remote coding agent sessions New |
Ctrl+C | Cancel operation (ร2 to exit session) New |
Ctrl+D | Exit interactive session (Unix-style) New |
Shift+Enter | Insert line break in prompt (Kitty protocol terminals) New |
Ctrl+Enter | Submit multiline prompt New |
Page Up / Down | Scroll in alt-screen mode; navigate in diff viewer New |
Ctrl+F / Ctrl+B | Page down/up in scrollable views New |
Home / End | Jump to top/bottom of scroll buffer; navigate in diff viewer New |
Ctrl+A | Move cursor to beginning of line New |
Ctrl+K | Delete from cursor to end of line New |
Ctrl+U | Delete from cursor to beginning of line New |
Ctrl+W | Delete word before cursor New |
Ctrl+H | Delete character before cursor New |
Alt+โ / โ | Move cursor by word New |
| Command | Purpose |
|---|---|
/init | Initialize copilot instructions for the repo |
/model | Select AI model (Sonnet 4.6, Sonnet 4.5, GPT-5.4, etc.) |
/plan | Create implementation plan before coding |
/review | Run code review agent on changes |
/delegate | Push work to Copilot coding agent (cloud) |
/fleet | Parallel subagent execution |
/research | Deep research with web + GitHub sources |
/diff | Review all changes in current directory |
/undo | Undo the last turn and revert file changes New |
/rewind | Timeline picker to roll back to any point in conversation history New |
/pr | Create PRs, fix CI failures, address review feedback, resolve conflicts New |
/compact | Compress context to free token space |
/agent | Browse and select custom agents |
/skills | List, enable, disable, add, remove skills |
/mcp | Add, edit, enable, disable, reload, auth MCP servers New |
/extensions | View, enable, and disable CLI extensions New |
/restart | Hot restart CLI while preserving session New |
/update | View changelog and update instructions New |
/version | Display CLI version and check for updates New |
/plugin | Install, update, list, uninstall plugins |
/resume | Resume a previous session |
/share | Export session to file, GitHub gist, or HTML New |
/copy | Copy the last response to clipboard New |
/context | Show token usage visualization |
/usage | Session metrics and statistics |
/chronicle | Show session timeline and command history New |
/tasks | View and manage background tasks New |
/changelog | View recent release notes and updates New |
/ide | Connect to an IDE workspace |
/lsp | Manage language server configuration |
/clear | Clear session history and context New |
/cwd | Show or change working directory New |
/add-dir | Add directory for file access New |
/list-dirs | Show allowed directories New |
/session | Display current session info New |
/theme | Configure terminal theme (auto/dark/light) New |
/terminal-setup | Enable multiline input mode New |
/reset-allowed-tools | Reset all tool permissions New |
/user | Show, list, or switch GitHub accounts New |
/login / /logout | Sign in or out of Copilot New |
/exit / /quit | Exit the CLI session ('exit' or 'quit' as bare commands also work) New |
/help | Show all available commands and shortcuts New |
/feedback | Submit feedback to GitHub New |
| Flag | Purpose |
|---|---|
-p "prompt" | Programmatic mode โ execute and exit |
--autopilot | Enable autonomous continuation |
--yolo | Allow all permissions (alias: --allow-all) |
--model MODEL | Select AI model |
--agent AGENT | Use a specific custom agent |
--continue | Resume most recent session |
--resume [ID] | Resume a specific session |
--allow-tool 'X' | Pre-approve specific tools |
--deny-tool 'X' | Block specific tools |
--experimental | Enable experimental features |
--acp | Start Agent Client Protocol server |
-s / --silent | Output only agent response (scripting) |
--max-autopilot-continues N | Cap autopilot continuations |
--no-custom-instructions | Skip loading instruction files |
--share [PATH] | Export session transcript to markdown file New |
--share-gist | Export session to shareable GitHub gist New |
--available-tools | Allowlist specific tools for the session New |
--excluded-tools | Denylist specific tools for the session New |
--additional-mcp-config | Add MCP config files per-session New |
--output-format json | Emit JSONL in prompt mode for programmatic integrations New |
--plugin-dir PATH | Load a plugin from a local directory New |
--binary-version | Query CLI binary version without launching New |
--mouse / --no-mouse | Enable/disable mouse mode in alt screen New |
--bash-env | Source BASH_ENV in shell sessions New |
--alt-screen on/off | Control alternate screen buffer mode New |
| Command | Status |
|---|---|
gh copilot suggest / gh cs | Removed Oct 2025 โ replaced by Copilot CLI interactive mode Deprecated |
gh copilot explain / gh ce | Removed Oct 2025 โ replaced by Copilot CLI interactive mode Deprecated |
gh-copilot extension | Fully deprecated Oct 25, 2025 โ migrate to standalone Copilot CLI Deprecated |