ext install GitHub.copilot
ext install GitHub.copilot-chat| Command | Action | Command | Action |
|---|---|---|---|
/explain | Explain selected code | /fix | Fix problems in code |
/tests | Generate unit tests | /new | Scaffold new project |
/clear | New chat session | /help | Copilot quick reference |
/init | Generate instructions | @vscode /search | Generate a Search view query |
/doc | Generate code docs | /compact | Compress context |
/plan | Create implementation plan | /setupTests | Setup testing framework |
/troubleshoot | Analyze debug logs | /fork | Fork chat session |
/debug | Open Chat Debug view | /rename | Rename a local chat |
/newNotebook | Scaffold a notebook | /models | Open the model picker |
/agents | Configure custom agents | /hooks | Configure hooks |
/instructions | Configure instructions | /prompts | Configure prompt files |
/skills | Configure skills | /create-prompt | Generate a prompt file |
/create-instructions | Generate instruction files | /create-skill | Generate a skill |
/create-agent | Generate a custom agent | /create-hook | Generate a hook |
/tools | Configure tools for a local chat | /sandbox-policy | Inspect the effective sandbox policy (Agent Host) |
#codebase or #search/codebase for workspace context. Chat mentions vary by client and version; @workspace is not in the current VS Code reference.ms-vscode.vscode-speech/explain + #file โ "Explain the auth flow in #file:auth.ts" (onboard to unfamiliar code)/fix + #problems โ "Fix all errors in #problems" (resolve build failures in one prompt)// fetch user by email, Copilot generates the implementationit("should...") block and Tab through the restgithub.copilot.nextEditSuggestions.enableduserId โ accountId โ change one occurrence, NES finds and fixes the rest across files| Model | Input | Cached | Write | Output | Tier |
|---|---|---|---|---|---|
| GPT-5 mini (retires 19 Oct 2026) | $0.25 | $0.025 | — | $2.00 | Lightweight |
| GPT-5.3-Codex | $1.75 | $0.175 | — | $14.00 | Powerful |
| GPT-5.4 (≤272K) (retires 19 Oct 2026) | $2.50 | $0.25 | — | $15.00 | Versatile |
| GPT-5.4 (long) (retires 19 Oct 2026) | $5.00 | $0.50 | — | $22.50 | Versatile |
| GPT-5.4 mini (retires 19 Oct 2026) | $0.75 | $0.075 | — | $4.50 | Lightweight |
| GPT-5.4 nano* | $0.20 | $0.02 | — | $1.25 | Lightweight |
| GPT-5.5 (≤272K) (retires 19 Oct 2026) | $5.00 | $0.50 | — | $30.00 | Powerful |
| GPT-5.5 (long) (retires 19 Oct 2026) | $10.00 | $1.00 | — | $45.00 | Powerful |
| GPT-5.6 Luna (≤200K) | $0.20 | $0.02 | $0.25 | $1.20 | Lightweight |
| GPT-5.6 Sol (≤272K) | $4.00 | $0.40 | $5.00 | $20.00 | Powerful |
| GPT-5.6 Terra (≤272K) | $2.00 | $0.20 | $2.50 | $12.00 | Versatile |
| GPT-6 Astra (≤272K) | $10.00 | $1.00 | $12.50 | $50.00 | Powerful |
| GPT-6 Sol (≤272K) | $2.00 | $0.20 | $2.50 | $10.00 | Powerful |
| GPT-6.1 Sol (≤272K) | $2.00 | $0.10 | $2.50 | $10.00 | Powerful |
| GPT-6 Luna (≤272K) | $0.10 | $0.01 | $0.125 | $0.50 | Lightweight |
| Claude Haiku 5.5 (≤100K) | $0.10 | $0.01 | $0.125 | $0.50 | Lightweight |
| Claude Haiku 4.5 | $1.00 | $0.10 | $1.25 | $5.00 | Versatile |
| Claude Sonnet 5.5 | $2.00 | $0.10 | $2.50 | $10.00 | Versatile |
| Claude Sonnet 5 | $2.00 | $0.20 | $2.50 | $10.00 | Versatile |
| Claude Sonnet 4.6 (annual individual plans only) | $3.00 | $0.30 | $3.75 | $15.00 | Versatile |
| Claude Opus 5.5 | $4.00 | $0.20 | $5.00 | $20.00 | Powerful |
| Claude Opus 4.8 / 5 | $5.00 | $0.50 | $6.25 | $25.00 | Powerful |
| Claude Opus 4.8 fast* | $10.00 | $1.00 | $12.50 | $50.00 | Higher cost |
| Claude Fable 5* | $10.00 | $1.00 | $12.50 | $50.00 | Higher cost |
| Claude Fable 5.1 | $10.00 | $0.25 | $12.50 | $50.00 | Higher cost |
| Gemini 3.8 Flash | $0.75 | $0.075 | — | $3.75 | Versatile |
| Gemini 3.7 Flash (retires 19 Oct 2026) | $0.75 | $0.075 | — | $3.75 | Versatile |
| MAI-Code-1.1-Flash | $0.20 | $0.02 | — | $1.20 | Lightweight |
| Grok 4.6 / 4.7 (≤200K) | $2.00 | $0.50 | — | $6.00 | Versatile |
| Grok 4.5 (≤200K) (retires 19 Oct 2026) | $2.00 | $0.50 | — | $6.00 | Versatile |
| Kimi K3 | $3.00 | $0.30 | — | $15.00 | Powerful |
| Plan | Price | Credits/mo |
|---|---|---|
| Free | $0 | AI-credit allowance; 2K completions/month |
| Student | $0 | AI-credit allowance; unlimited completions |
| Pro | $10/mo | 1,500 (1K base + 500 flex) |
| Pro+ | $39/mo | 7,000 (3.9K base + 3.1K flex) |
| Max | $100/mo | 20,000 (10K base + 10K flex) |
| Business | $19/seat/mo | 1,900/user; pooled at billing entity |
| Enterprise | $39/seat/mo | 3,900/user; pooled at billing entity |
*.instructions.md files are added conditionally/init โ generate or update workspace instructions/create-instructions โ generate a targeted instruction file.instructions.md) that apply conditionally based on file glob patterns or semantic matching โ e.g., Python rules only for *.py files.
---
name: 'Python Standards'
description: 'Python conventions'
applyTo: '**/*.py'
---
# Python coding standards
- Follow PEP 8 style guide
- Use type hints for all functions/instructions to configure files, or /create-instructions to generate one. Without applyTo, a file is not applied automatically.
python.instructions.md with applyTo: '**/*.py' for PEP 8, type hints, docstringsreact-tests.instructions.md with applyTo: '**/*.test.tsx' for RTL best practices.prompt.md) that you invoke manually as slash commands. Encode frequent tasks like scaffolding components or running reviews โ type /prompt-name instead of rewriting the prompt..prompt.md files/prompt-name in chat.github/prompts/---
description: 'Create React form'
agent: agent
tools: ['edit', 'search']
model: GPT-5.6 Sol (copilot)
---
Generate a React form component
with validation for ${input:fields}${input:name} for user-provided values.
/create-api generates REST endpoint with controller, service, tests, and OpenAPI spec/review-pr checks for security, performance, and accessibility issues every time.agent.md.| Mode | Purpose |
|---|---|
| Ask | Read-only Q&A, no code changes |
| Autopilot | Agent mode that auto-approves tools and works until the task is complete |
| Agent | Autonomous tool use + edits |
| Plan | Create plan before implementation |
---
description: 'Security reviewer'
tools: ['search', 'read']
model: Claude Sonnet 5.5 (copilot)
agents: ['*']
handoffs:
- label: Fix issues
agent: implementation
prompt: Fix the issues above.
send: false
---
Review code for OWASP Top 10...| Field | Description |
|---|---|
description | Shown in the agent picker; required for GitHub cloud-agent agents |
name | Display name (defaults to filename) |
tools | List of available tools; omit for all tools |
agents | Allowed subagents (* = all, [] = none) |
model | AI model (string or prioritized array) |
handoffs | Sequential workflow transitions (label, agent, prompt, send, model) |
target | vscode or github-copilot (omit for both) |
mcp-servers | MCP server configs scoped to this agent |
hooks | Agent-scoped hooks Preview |
user-invocable | Show/hide in dropdown (default: true) |
disable-model-invocation | Prevent subagent invocation (default: false) |
argument-hint | Hint text in chat input field |
infer | Deprecated; use user-invocable and disable-model-invocation |
/agents to configure or /create-agent to generate with AI. On github.com, use the Agents tab at github.com/copilot/agents to create and manage agents.
search, readFile), scans for OWASP Top 10, hands off to "fix" agentsend: true) auto-submits to implementation agent.github-private repo to share across all repos in your org/enterprise---
name: webapp-testing
description: 'Run and debug
web app integration tests'
---
# Testing Workflow
Use describe + it + AAA pattern
Use factory mocks for fixtures/skill-name in chat/create-skill โ AI-generate a skilluser-invocable controls slash-command visibilitydisable-model-invocation prevents automatic loadingcontext: fork runs the skill in an isolated context/deploy runs the full pipeline{
"servers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp"
},
"playwright": {
"type": "stdio",
"command": "npx",
"args": ["-y",
"@microsoft/mcp-server-playwright"]
}
}
}| Capability | Description |
|---|---|
| Tools | Execute operations (file, DB, API) |
| Resources | Read-only context (Add Context โ MCP Resources) |
| Prompts | Templates via /server.prompt |
| MCP Apps | Interactive UI in chat |
| Sampling | Server-initiated model calls |
| Elicitation | Server asks user for input |
servers in .vscode/mcp.json. Copilot CLI, cloud agent, and repository MCP settings use mcpServers in .mcp.json, .github/mcp.json, or GitHub settings. Cloud agent and code review currently support MCP tools, not resources or prompts.| Event | When |
|---|---|
SessionStart | First prompt of new session |
UserPromptSubmit | User submits a prompt |
PreToolUse | Before tool invocation |
PostToolUse | After tool completes |
PreCompact | Before context compaction |
SubagentStart/Stop | Subagent lifecycle |
Stop | Agent session ends |
{
"hooks": {
"PostToolUse": [{
"type": "command",
"command": "npx prettier --write ."
}]
}
}deny blocks the tool call; allow and ask behavior depends on the clientpreToolUse has its own fail-closed and fail-open rules. Test security hooks before relying on them.
prettier --write after the agent uses a tool{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny"}} for rm -rf and DROP TABLE/delegate in Copilot CLI or delegate from an issue, PR comment, or supported chat surfacecopilot-setup-steps.yml (GitHub Actions workflow)/delegate + link to GitHub issue โ agent creates a branch, implements, and opens a PR| Command | Action |
|---|---|
/model | Switch AI model |
/compact | Compress conversation context |
/context | View token usage breakdown |
/usage | Session stats (AI credits, duration, LOC) |
/agent | Select a custom agent |
/research | Run deep research |
/review | Review code changes |
/security-review | Run a focused security review |
/delegate | Hand a task to the cloud agent |
/remote | Steer this session from GitHub.com or GitHub Mobile |
/plugins | Manage plugins |
/skills | Manage skills |
/fleet | Run subagents in parallel |
/mcp | List MCP servers; /mcp add to add |
/resume | Resume a previous session |
/add-dir | Trust an additional directory |
/cwd / /cd | Change working directory |
/login | Authenticate with GitHub |
/feedback | Submit feedback, bugs, features |
/allow-all | Allow all tools, paths, and URLs this session |
/limits | Set a per-response AI-credit limit |
/every | Schedule recurring prompt (e.g. /every 1h run tests) |
/after | Schedule one-shot prompt after delay |
/sandbox | Enable local sandboxing (/sandbox enable) |
/share | Share session transcript or export context |
/chronicle | Session history, standup reports & usage tips |
| Key / Syntax | Action |
|---|---|
| Shift+Tab | Cycle interactive / plan / autopilot modes |
| Ctrl+T | Show/hide model reasoning |
| Esc Esc | Stop the current operation while Copilot is thinking (press Esc twice within half a second) |
@path/to/file | Include file as context |
!git status | Run shell command directly |
copilot --autopilot --allow-all -p "Run tests, fix failures, commit" in a controlled CI environment/resume or --remote to continue work from GitHub.com.jsonc files via Chat: Configure Tool Sets#toolset-nametools: ['my-toolset']#edit, #search{
"reader": {
"tools": ["search/changes", "search/codebase",
"read/problems", "search/usages"],
"description": "Tools for reading context",
"icon": "book"
}
}search, readFile, grep into a #reader set for safe auditing#reader in prompt to enable all read tools at once.env, **/secrets/** from being sent to AI/delegate to coding agent for implementationinstructions/ for frontend (React) and backend (Python) with different applyTo globs.github/ files to Git; keep user-level settings, credentials, and provider keys outside the repository| Agent | Provider | Status |
|---|---|---|
| Claude | Anthropic | Preview |
| Codex | OpenAI | Preview |
@AGENT_NAME in a commentworkbench.browser.enableChatTools setting.| Tool | Action |
|---|---|
openBrowserPage | Open a URL in integrated browser |
navigatePage | Navigate to a different URL |
readPage | Read page content & structure |
screenshotPage | Take a screenshot for visual review |
clickElement | Click a page element |
hoverElement | Hover over an element |
dragElement | Drag and drop elements |
typeInPage | Type text into inputs |
handleDialog | Accept/dismiss browser dialogs |
runPlaywrightCode | Run custom Playwright automation |
workbench.browser.enableChatTools is true (on by default)chat.checkpoints.enabledchat.checkpoints.showFileChangeschat.editRequests| Type | Runs | Best For |
|---|---|---|
| Local | VS Code (interactive) | Brainstorm, debug, browse |
| Copilot CLI | Background on machine | Well-defined tasks, POCs |
| Cloud | Remote infra | PRs, team collaboration |
| Third-party | Claude / Codex | Provider-specific models |
/delegate in CLI โ sends to cloud agentchat.agentsControl.enabled// TODO: add input validation in code โ right-click โ assign to Copilot cloud agent โ agent creates a PRWrite a TypeScript function that validates
email addresses. Return true for valid,
false otherwise. Don't use regex.
Example: validateEmail("user@example.com")
โ true
Example: validateEmail("invalid") โ false#codebase#file, #folder, #symbol#fetch โ pull info from web pages / docs| Mode | When to Use |
|---|---|
| Inline suggestions | In-flow coding, boilerplate |
| Ask | Questions, brainstorm, explore |
| Inline chat | Targeted in-place edits |
| Agent | Multi-file autonomous changes |
| Plan | Architecture, migration strategy |
| Smart actions | One-click commit msg, fix, rename |
| Action | Where |
|---|---|
| Generate Commit Message | Source Control panel |
| Rename Symbol | F2 on any symbol |
| Fix with Copilot | Lightbulb on errors/warnings |
| Fix Test Failure | Test Explorer failed tests |
| Generate Docs | Right-click โ Generate Code |
| Semantic Search | Search view; Preview |
| Generate PR Summary | PR description field |
| Resolve Merge Conflict | Conflict editor; Experimental |
| Delegate TODO | Code action โ Copilot cloud agent |
| Generate/Refine Alt Text | Markdown image code action |
| Review Code | Selection or PR Files Changed view |
| Search Settings with AI | Settings editor; enable AI search |
processData โ Copilot suggests transformUserPayload based on function body semanticsChat: Manage Language Models command| What | Behavior |
|---|---|
| Prompts, outputs, and context | Retention depends on surface, plan, and model provider; do not promise zero retention |
| Training on interactions | Business/Enterprise: not used for training; individual plans (Free, Pro, Pro+): may be used unless opted out (since 24 Apr 2026) |
| Telemetry | Individual users can control telemetry; richer usage metrics require IDE telemetry |
| Model hosting | Provider agreements and data handling differ by model; see model-hosting documentation |
| Claude Fable 5 and 5.1 | Anthropic retains prompts and outputs by default for safety classifiers. Enterprises can request zero data retention through the end of 2026 under a time-bound exemption. |
| Policy | Controls |
|---|---|
| Features | Chat, completions, agents, MCP |
| Models | Enable/disable premium models |
| Coding agent | Enable cloud agent + 3rd-party |
| Editor preview | Opt in to preview features |
| Public code filter | Block public code matches |
| Content exclusion | Exclude files/repos from AI |
| Web search | Allow Copilot Chat to use Bing |
| MCP / BYOK | Control external tools and custom models |
| Agent Apps / Memory | Enable separate agent and memory policies |
| Subagent | Purpose |
|---|---|
| Explore | Quick codebase analysis & Q&A |
| Task | Run tests/builds, return brief summaries |
| Code-review | Review changes, surface real issues |
| General-purpose | General-purpose subagent |
| Research | Deep research tasks |
chat.subagents.allowInvocationsFromSubagents| Scope | Endpoint |
|---|---|
| Enterprise daily | GET /enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day |
| Organization daily | GET /orgs/{org}/copilot/metrics/reports/organization-1-day |
| Users / repos | .../reports/users-1-day or .../reports/repos-1-day |
| 28-day latest | .../reports/*-28-day/latest |
*-28-day/latest for the latest 28-day windowcurl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $TOKEN" \
-H "X-GitHub-Api-Version: 2026-03-10" \
"https://api.github.com/orgs/my-org/copilot/metrics/reports/organization-1-day?day=2026-08-20"| Category | Key Metrics |
|---|---|
| Code generation | Suggestions, acceptances, lines added/deleted โ by IDE, language, model |
| Engagement | Active users, requests, features, and adoption phases |
| Pull requests | Created/merged counts, review activity, and median time to merge |
| Reports | User, repository, organization, enterprise, and user-team exports |
View Enterprise Copilot Metrics permissionView Organization Copilot Metrics permissionmanage_billing:copilot or read:enterprise; organization: read:org{
"report_day": "2026-08-20",
"download_links": [
"https://signed.example/report.ndjson"
]
}
The downloaded report contains usage and code-generation fields such as active
users, suggestions, acceptances, lines added/deleted, feature/IDE/language/model
breakdowns, adoption phases, and pull-request lifecycle metrics. The schema varies
by report type; use the current API reference rather than hardcoding this example.| Mode | Behavior |
|---|---|
| Block | On supported surfaces, suggestions matching public code (about 150 chars) are hidden. This reduces exposure but is not a complete IP control for every agentic surface. |
| Allow | Suggestions are shown with references โ source repo URL, license type, and code snippet displayed. |
NOASSERTIONfunction fizzBuzz() โ a common implementation will match and show references in the log.
| Repo Type | Autofix Access |
|---|---|
| Public repos | Free |
| Org repos (GitHub Code Security) | Included |
| Enterprise/org repos | Code Security |
| Feature | Autofix Role |
|---|---|
| Code Scanning | Generates code patches for CodeQL alerts (SQL injection, XSS, etc.) |
| Secret Scanning | Separate AI detection and alerting; Autofix does not rotate secrets |
| Dependabot | Separate dependency alerts and update PRs; review dependency changes normally |
| Code Quality | Copilot Autofix can suggest fixes for supported quality findings |
| Security Overview | Dashboard metrics include Copilot Autofix suggestions on pull requests |
| Section | What It Shows |
|---|---|
| System Prompt | Full instructions, agent description, loaded skills โ verify custom instructions appear |
| User Prompt | Exact text sent to model โ confirm #-mentions resolved to real content |
| Context | Files, symbols, attachments โ check if expected files are included or context window is full |
| Response | Raw model output including reasoning โ understand how model interpreted your request |
| Tool Responses | Input/output for each tool call โ debug MCP servers, verify correct payloads |
| View | What It Shows |
|---|---|
| Logs | Chronological events โ LLM requests, tool calls, discovery, errors. Filter by type. |
| Summary | Aggregate stats โ total tool calls, token usage, error count, duration |
| Flow Chart | Visual agent โ subagent interaction graph โ pan, zoom, click nodes |
github.copilot.chat.agentDebugLog.fileLogging.enabled/troubleshoot list loaded instructions| Problem | Where to Look | What to Check |
|---|---|---|
| AI ignores workspace files | Agent Logs โ Discovery events + Chat Debug โ Context | Workspace indexed? Files in context window? |
| MCP tool not invoked | Agent Logs โ Tool Calls filter + Chat Debug โ System Prompt | Tool listed in available tools? Server running? |
| Response truncated | Agent Logs โ LLM Requests โ token usage | Context window full? Start a new session. |
| Prompt file not applied | Agent Logs โ Discovery events | File loaded/skipped? applyTo glob match? |
| Custom instructions missing | Chat Debug โ System Prompt section | Expand and search for your instruction text |
Developer: Set Log Level โ select Trace for GitHub Copilot and GitHub Copilot Chat extensions.
| Level / mode | Tool Approval | Questions |
|---|---|---|
| Manual permissions (default) | Uses tool, URL, and terminal approval settings | Agent asks you |
| Assisted permissions | LLM judge evaluates risk; may show dialog | Agent asks you |
| Allow all | Runs all tool calls without confirmation, except managed rules | Agent asks you |
| Autopilot | Agent mode; auto-approves tools | Agent auto-responds |
| Control | Setting |
|---|---|
| Tool approval | chat.tools.eligibleForAutoApproval |
| URL approval | chat.tools.urls.autoApprove |
| Terminal commands | chat.tools.terminal.autoApprove |
| Sandboxing | chat.agent.sandbox.enabled |
chat.agent.sandbox.allowNetwork=true permits outbound network while sandboxing stays onchat.tools.urls.autoApprovegithub.copilot.chat.agentDebugLog.fileLogging.enabled| View | What It Shows |
|---|---|
| Logs | Chronological events โ LLM requests, tool calls, discovery, errors. Filter by type. Flat or tree view grouped by subagent. |
| Summary | Aggregate stats โ total tool calls, token usage, error count, duration. |
| Flow Chart | Visual agent โ subagent interaction graph. Pan, zoom, click nodes for details. |
| Cache Explorer | Side-by-side diff of consecutive model requests that pinpoints prompt-cache divergence. |
github.copilot.chat.fileLogging.enabled| Section | What to Check |
|---|---|
| System Prompt | Verify custom instructions, agent descriptions, skills loaded |
| User Prompt | Confirm #mentions resolved, variables filled |
| Context | Check expected files included, context window not full |
| Response | Raw model output including reasoning |
| Tool Responses | Input/output for each tool call (debug MCP) |
| Problem | Where to Look |
|---|---|
| AI ignores workspace files | Agent Logs โ Discovery events + Chat Debug โ Context |
| MCP tool not invoked | Agent Logs โ Tool Calls + Chat Debug โ System Prompt |
| Response truncated | Agent Logs โ LLM Requests โ token usage |
| Instructions missing | Agent Logs โ Discovery events + Chat Debug โ System Prompt |
| Cache misses | Cache Explorer โ divergence point in prompt signature |
| Type | Scope and behavior |
|---|---|
| Repository facts | Conventions, architecture, build commands, and project rules; citations are checked against the current branch before use. |
| User preferences | Personal interaction and coding preferences; available only in that user's later Copilot interactions. |
| Feature surfaces | Cloud agent, code review, CLI, and agentic autofix. Code review uses repository facts only; CLI uses facts plus the initiating user's preferences. |
| Feature | Use |
|---|---|
| Parallel workspaces | Run multiple agent sessions with separate worktrees and branches. |
| Cloud sandbox | Start a session in a GitHub-hosted cloud sandbox; this option is public preview. |
| GitHub integration | Browse issues, manage pull requests, inspect CI, and search repositories. |
| Chats and canvases | Scope ideas without a dedicated branch, or collaborate on agent-driven interfaces. |
| Usage | Model interactions consume AI credits; use the app's model and mode choices deliberately. |
| Recent updates | Local sandboxing (23 Sep 2026), OpenTelemetry (22 Sep 2026), and dynamic workflows (1 Oct 2026). |
copilot app from the terminal to open the Copilot app for parallel worktrees, pull requests, and CI| Trigger | Examples |
|---|---|
| Schedule | Hourly, daily, or weekly tasks. |
| Issue created | Triage or label incoming issues; optional search-query filter. |
| Pull request opened | Run checks or prepare a draft fix; filter by query or changed files. |
| Pull request synchronized | React to new commits, with the same optional filters. |
| Mode | Start command and behavior |
|---|---|
| stdio | copilot --acp --stdio; one client launches the child process and exchanges NDJSON over stdin/stdout. |
| TCP | copilot --acp --port 3000; clients connect to a longer-lived listener, which binds to loopback by default. |
| Controls | Server-start options such as --effort and tool filters apply to every session created through that server. |
| Slash commands | Use commands advertised through available_commands_update; interactive picker commands are not available over ACP. |
| Control | Current behavior |
|---|---|
| Model | Model switching is not supported. Code review uses a purpose-built model and prompt mix; Copilot Chat model policy does not control it. |
| Effort | Balanced is the default. It routes pull requests to a higher-reasoning model for deeper analysis and uses more AI credits. Lite gives fast, targeted feedback. |
| Review status | Copilot leaves Comment reviews by default, and they do not count toward required approvals. Admins can enable Copilot approvals (public preview, since 1 Sep 2026). An approval then counts toward required approvals and is dismissed when new commits are pushed. |
| Automatic review | Repositories can review new pull requests, new pushes, and optionally draft pull requests. |
AGENTS.md, path-specific instructions, skills, and configured MCP servers can improve review context.| Area | Rule |
|---|---|
| Setup file | .github/workflows/copilot-setup-steps.yml must be on the default branch and contain one job named copilot-setup-steps. |
| Allowed job keys | Customize steps, permissions, runs-on, services, snapshot, and timeout-minutes. |
| Runtime | Default is Ubuntu Linux; the maximum setup or session timeout is 59 minutes. |
| Failure behavior | A setup step returning a non-zero exit code skips remaining setup steps and lets the agent continue with the current environment. |
@AGENT-NAME, or the Agents UI on GitHub.com and GitHub Mobile.| Requirement | Meaning |
|---|---|
| Install the GitHub App | Install it on the account or organization and opt in to its agent features. |
| Enterprise policy | For enterprise-owned organizations, an administrator must enable the Agent apps policy. |
| Security | The app can access partner functionality and configured tools; review requested permissions before authorizing. |
| Billing | Sessions consume AI credits like Copilot cloud agent and are charged to the Copilot subscription. |
| Model family | Current hosting and retention notes |
|---|---|
| OpenAI | Hosted by OpenAI and GitHub Azure infrastructure; GitHub maintains a zero-data-retention agreement with OpenAI. |
| Anthropic | Hosted through AWS, Anthropic, and Google Cloud depending on the deployment. Claude Fable 5 and 5.1 are an exception: Anthropic retains prompts and outputs by default for safety classifiers. Enterprises can request zero data retention through the end of 2026 under a time-bound exemption. |
| Hosted on Google Cloud; Google states that prompts and responses are not used to train its models, with prompt caching used for service quality and latency. | |
| xAI | Operates under a zero-data-retention API policy; content exists temporarily in memory to process the request. |
| Microsoft | MAI models are hosted on Azure in GitHub's tenant. MAI-Code-1-Flash was deprecated on 10 Sep 2026; MAI-Code-1.1-Flash is current. Individual subscribers can opt out of model training; Business and Enterprise customer data is not used to train models. |
| Open-weight models | Kimi models are hosted by GitHub-managed infrastructure and providers; prompts and completions are not sent to Moonshot AI, the original developer. |
| Inline suggestions | Hosting differs by plan; Business and Enterprise inline models are hosted on Azure, while Free and Student models are hosted on Fireworks AI. |
| Topic | Current rule |
|---|---|
| Base model | For Business and Enterprise, the base model is the default when no other models are enabled. GPT-5.3-Codex was designated the base model on March 18, 2026. |
| LTS model | Business and Enterprise LTS models are supported for one year from designation; GPT-5.3-Codex is the current LTS model. |
| Evaluation models | May use codenames, can be added or removed without notice, and may perform worse on security-related prompts. Validate output with human review and other checks. |
| 1M context | Available only in VS Code and Copilot CLI for supported models; larger context consumes more tokens and AI credits. |
| Reasoning levels | Available in VS Code, Copilot CLI, and cloud agent for supported models; higher effort generally increases latency and credit use. |
| Prompt caching | Providers may reuse matching prompt prefixes. Cache reads, cache writes, retention, and pricing are model-specific, so inspect the current pricing table. |
--max-ai-credits or /limits set max-ai-credits VALUE.| Control | Scope |
|---|---|
| User-level budget | Hard stop for one user's total AI-credit consumption across shared-pool and metered phases. |
| Cost-center budget | Caps metered charges for a group after the shared pool is exhausted; optional stop behavior. |
| Organization budget | Caps metered charges for seats billed to that organization. |
| Enterprise budget | Caps enterprise-wide metered charges after the pool is exhausted; it is not the total monthly bill. |
| View | Question it answers |
|---|---|
| Usage metrics | How are users engaging across supported IDE, CLI, and agent-app activity? |
| Code generation | How much code is suggested, added, or deleted, and by which features? |
| Impact | How do adoption cohorts and feature engagement relate to pull-request output and time to merge? |
| NDJSON export | How can raw metrics be stored or joined in a custom BI pipeline? |
| Feature | What it does | Important boundary |
|---|---|---|
| Copilot Autofix | Generates a code change and explanation for supported CodeQL alerts on pull requests and the default branch. | Best-effort suggestion; review and test it. It does not require a Copilot subscription, but private-repository access depends on Code Security entitlement. |
| Code Quality | Combines CodeQL quality queries with LLM-powered analysis and offers Copilot-powered fixes for supported findings. | Pull requests receive rules-based CodeQL findings; Code Quality is a separate product with its own licensing and AI-credit behavior. |
| Generic secret detection | Uses AI to find unstructured secrets that deterministic partner and custom patterns may miss. | It can miss secrets and produce false positives; it does not rotate or remediate a credential. |
| Custom-pattern regex generator | Turns a natural-language description and optional examples into up to three candidate regular expressions. | Review the candidates and run a dry run before deploying; generation does not automatically save or enable a pattern. |
| Dependabot | Matches vulnerable dependencies and can open version-update pull requests. | Dependency alerts and update PRs are separate from Copilot Autofix and generic secret detection. |
| Surface | Useful commands |
|---|---|
| Plugins | copilot plugin (singular is canonical; copilot plugins is legacy), /plugins, /plugins install SOURCE, /plugins list, and marketplace add/browse/update commands. |
| Skills | /skills or copilot skill; install personal or project skills from a file, URL, or directory. |
| MCP | /mcp or copilot mcp; configure local stdio or remote HTTP/SSE servers with tool filters. |
| LSP | /lsp show|test|reload|logs; add precise definitions, references, and rename intelligence. |
| Extensions | Package tools and slash commands with the SDK; manage them through the CLI extension commands. |
--remote or /remote on can expose a session to GitHub.com and GitHub Mobile when remote sessions are available on the account.--remote-export allows read-only export without enabling remote control.| Surface | What it enables | Boundary to remember |
|---|---|---|
| Issues | Assign or start a Copilot cloud-agent task from an issue and receive branch or pull-request work. | Cloud agent works in the repository selected for the task and can open one pull request for that task. |
| Pull requests | Mention @copilot for cloud-agent changes or request Copilot code review. | Code review comments do not count as required approvals; agent changes still need human review. |
| GitHub Actions | Run cloud-agent and code-review agentic capabilities on Actions runners; run Copilot CLI in workflows with a token. | Actions minutes, workflow permissions, token choice, and approval rules apply in addition to AI-credit billing. |
| GitHub Mobile | Start or monitor agent work and request code review from a pull request. | Mobile activity is not included in Copilot usage metrics reports. |
| Copilot app | Manage parallel worktrees, issues, pull requests, CI, automations, and canvases from a desktop app. | Business and Enterprise users depend on the app policy; its sessions consume AI credits. |
| Windows Terminal | Host Copilot CLI on Windows, installed with WinGet or another supported method. | It is a terminal host, not a separate Copilot service or model surface. |
| External tools | Cloud agent integrations exist for Microsoft Teams, Slack, Linear, Azure Boards, and Jira. | Each integration captures its thread or issue context into agent artifacts; review visibility and data handling before enabling it. |
| Shortcut | Action |
|---|---|
| โโI / Ctrl+Alt+I | Open Chat panel |
| โN / Ctrl+N | Start a new chat |
| โงโฅโL / Ctrl+Shift+Alt+L | Open Quick Chat |
| โI / Ctrl+I | Inline chat |
| โโงI | Toggle secondary sidebar |
| Tab | Accept suggestion |
| Esc | Dismiss suggestion |
| Alt+] / Alt+[ | Next / prev suggestion |
| Ctrl+โ | Accept word by word |
| Command | Action |
|---|---|
/init | Generate workspace instructions |
/explain | Explain selected code |
/fix | Fix problems in code |
/tests | Generate unit tests |
/new | Scaffold a new project |
/clear | Start a new chat session |
/help | Copilot quick reference |