1

Copilot Architecture & Flow

What: How your prompt flows through Copilot โ€” context is gathered, routed via a proxy to the AI model, filtered for safety, and returned as a response.
HOW YOUR PROMPT FLOWS THROUGH COPILOT ๐Ÿ’ฌ User Prompt Chat ยท Inline ยท CLI Completions ๐Ÿ“‚ Context Gathering Open tabs ยท #file ยท #codebase Instructions ยท Skills ๐Ÿ›ก๏ธ Pre-Model Filters Responsible AI Content Exclusion ๐Ÿ”€ Proxy Service Routes to model Applies policies ๐Ÿง  AI Model GPT ยท Sonnet ยท Gemini Opus ยท Grok ยท etc. User-selected or auto ๐Ÿ” Post-Model Filters Duplicate code check Safety & quality Response delivered to user CONTEXT SOURCES ๐Ÿ“„ Open Tabs Active editor files ๐Ÿ“ Workspace #codebase search ๐Ÿ“‹ Instructions .md config files ๐Ÿงฉ Skills SKILL.md bundles ๐Ÿ”Œ MCP Servers External tools/data โœ‚๏ธ Selection #selection context ๐ŸŒ Web Pages #fetch URL content OUTPUT TYPES โŒจ๏ธ Inline Completions ๐Ÿ’ฌ Chat Responses ๐Ÿ”ง Agent Actions ๐Ÿ“ Code Edits ๐Ÿ—๏ธ Terminal Commands
Key Stages
  • Context gathering โ€” workspace files, open tabs, selections, instructions
  • Pre-model filters โ€” responsible AI, content exclusion
  • Proxy service โ€” routes to chosen model, applies policies
  • AI model โ€” user picks model or auto-select (10% discount)
  • Post-model filters โ€” duplicate code detection, safety checks
Installation
ext install GitHub.copilot ext install GitHub.copilot-chat
๐Ÿ’ก Data handling depends on your plan, surface, model host, and settings. Business/Enterprise customer data is not used to train AI models; individual-plan interactions may be used for training unless you opt out. Do not treat this conceptual diagram as a contractual data-flow guarantee.
Use Cases
Debug unexpected output โ€” understand why Copilot gave a wrong answer (check if context was gathered correctly)
Explain to stakeholders โ€” describe the documented data-flow, plan, provider, and policy boundaries (security/compliance reviews)
2

Chat Experience

What: The conversational AI panel in VS Code. Use slash commands, context variables (#), and participants (@) to give Copilot precise context for better answers.
ANATOMY OF A COPILOT CHAT PROMPT / Slash Commands /explain /fix /tests What to do # Context Variables #file #codebase #changes What to include @ Participants @github @terminal @vscode Who to ask ๐Ÿ’ฌ Assembled Prompt /explain #file:auth.ts "How does the login flow work?" Your natural language question + structured context โœจ AI Response Explanation, code edit, tests, scaffold, or fix CHAT MODES ๐Ÿ’ฌ Ask ๐Ÿš€ Autopilot ๐Ÿค– Agent ๐Ÿ“‹ Plan โŒ˜I Inline Chat โŒƒโŒ˜I Panel ยท โŒ˜I Inline ยท ๐ŸŽ™๏ธ Voice
Slash Commands (built-in, client-specific, or customized)
CommandActionCommandAction
/explainExplain selected code/fixFix problems in code
/testsGenerate unit tests/newScaffold new project
/clearNew chat session/helpCopilot quick reference
/initGenerate instructions@vscode /searchGenerate a Search view query
/docGenerate code docs/compactCompress context
/planCreate implementation plan/setupTestsSetup testing framework
/troubleshootAnalyze debug logs/forkFork chat session
/debugOpen Chat Debug view/renameRename a local chat
/newNotebookScaffold a notebook/modelsOpen the model picker
/agentsConfigure custom agents/hooksConfigure hooks
/instructionsConfigure instructions/promptsConfigure prompt files
/skillsConfigure skills/create-promptGenerate a prompt file
/create-instructionsGenerate instruction files/create-skillGenerate a skill
/create-agentGenerate a custom agent/create-hookGenerate a hook
/toolsConfigure tools for a local chat/sandbox-policyInspect the effective sandbox policy (Agent Host)
Context Variables (#)
#fileInclude file content
#selectionSelected text
#codebaseWorkspace semantic context
#problemsError/warning diagnostics
#changesGit changes (diff)
#fetchFetch a web page
#terminalSelectionSelected terminal output
#searchResultsSearch view results
#search/codebaseFull workspace search
Chat Participants (@)
@githubGitHub repos, issues, PRs
@terminalTerminal shell context
@vscodeVS Code commands & features
๐Ÿ“Œ Use #codebase or #search/codebase for workspace context. Chat mentions vary by client and version; @workspace is not in the current VS Code reference.
Voice Chat VS Code
  • Install ms-vscode.vscode-speech
  • Dictate prompts hands-free
Use Cases
/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)
3

Code Completions

What: Real-time ghost text suggestions as you type. Copilot predicts your next lines of code based on context โ€” accept with Tab, dismiss with Esc.
HOW CODE COMPLETIONS WORK โŒจ๏ธ You Type Code Comment, function sig, variable name, pattern ๐Ÿ‘ป Ghost Text Appears Greyed-out inline suggestion Multiple alternatives available โœ… Accept โ€” Tab Inserts full suggestion โŒ Dismiss โ€” Esc Ghost text disappears ๐Ÿ”„ Cycle โ€” Alt+] / [ Browse alternative suggestions shows next/prev alternative โœ‚๏ธ Partial โ€” โŒ˜โ†’ / Ctrl+โ†’ Accept word by word app.py โ€” VS Code 12 13 14 15 16 # fetch user by email from the database def fetch_user_by_email ( email : str ): """Fetch a user record from the database by email.""" query = "SELECT * FROM users WHERE email = %s" return db.execute(query, (email,)).fetchone() ๐Ÿ‘ป Ghost Text Press Tab to Accept
Keyboard Shortcuts
TabAccept full suggestion
EscDismiss suggestion
Alt+] / Alt+[Cycle alternatives
โŒ˜โ†’ / Ctrl+โ†’Accept the next word or line
Enable / Disable
  • Toggle from Copilot icon in status bar
  • Disable for specific languages in settings
  • Snooze โ€” temporarily pause suggestions
Completions Model
  • Change model in settings for inline suggestions
  • Available models vary by plan, client, and organization policy
  • Completions and NES are not billed in AI credits
  • Free: 2,000 completions/month; Student: unlimited; paid plans: unlimited
๐Ÿ’ก Write a descriptive comment first โ€” Copilot uses it as a prompt to generate the function body below.
Use Cases
Write a function from a comment โ€” type // fetch user by email, Copilot generates the implementation
Auto-complete test cases โ€” write one it("should...") block and Tab through the rest
4

Next Edit Suggestions (NES)

What: Predicts your next edit based on recent changes, not just cursor position. Jumps you to the right location and suggests the change โ€” great for repetitive multi-location refactors.
HOW NEXT EDIT SUGGESTIONS WORK โœ๏ธ You Make an Edit Rename, refactor, add code in one location ๐Ÿง  NES Detects Pattern Analyzes your change and finds similar locations โžก๏ธ Arrow โ†’ Appears Indicator points to the next suggested edit location โœ… Tab โ†’ Tab Tab navigates to edit, Tab again accepts it ๐Ÿ” Repeat Tab again for next location jumps to next matching location BEFORE (your edit) AFTER (NES applies) 5 const userId = getUser (); accountId 8 console.log( userId ); โ† still old name 15 fetchData( userId ); โ† still old name โ†’ NES 5 const accountId = getUser(); 8 console.log( accountId ); โœ… fixed 15 fetchData( accountId ); โœ… fixed
How It Works
  • Monitors your editing patterns across files
  • Suggests edits at locations you haven't navigated to yet
  • Shows arrow indicator โ†’ jump to suggested edit
  • Tab to navigate to edit, Tab again to accept
  • Enable with github.copilot.nextEditSuggestions.enabled
Why Use It
  • Rename variables across multiple locations
  • Apply consistent pattern changes
  • Add missing imports after using a new API
Use Cases
Rename userId โ†’ accountId โ€” change one occurrence, NES finds and fixes the rest across files
Add error handling โ€” wrap one function in try/catch, NES suggests the same for similar functions
5

Inline Chat

What: Chat with GitHub Copilot directly inside your editor or terminal without switching to the sidebar. Get targeted code edits, command generation, and image-to-code conversion in context; image support depends on the selected model and policy.
INLINE CHAT WORKFLOW IN EDITOR โ€” โŒ˜I / Ctrl+I ๐Ÿ–ฑ๏ธ Select Code (optional โ€” or place cursor) ๐Ÿ’ฌ โŒ˜I โ†’ Type Prompt "Extract into a custom hook" ๐Ÿ“Š Preview Diff Review changes inline โœ… Accept / Discard Apply edits or reject IN TERMINAL โ€” โŒ˜I $ โŒ˜I โ†’ "Find all .log files > 100MB and delete them" Copilot generates: find . -name "*.log" -size +100M -delete โ†‘ Run or Copy VISION INPUT โ€” Attach Images ๐Ÿ–ผ๏ธ UI mockup โ†’ โŒ˜I + ๐Ÿ“Ž image "Build this login form using React + Tailwind" โ†’ ๐Ÿ“„ Generated
In Editor
  • โŒ˜I (Mac) / Ctrl+I (Win) โ€” open inline chat
  • Select code first for targeted edits
  • Supports context vars & model selection
  • Preview diff before accepting
In Terminal
  • โŒ˜I in terminal โ€” generate commands
  • Copilot understands shell context
  • Run (โŒ˜Enter) or Insert (โŒฅEnter) after reviewing the command
  • Generates and explains terminal commands
Vision Input
  • Attach images when the selected model supports vision
  • UI mockups โ†’ code generation
Use Cases
Refactor selected code โ€” select a function, โŒ˜I โ†’ "Extract this into a custom hook" (targeted in-place edit)
Generate shell commands โ€” โŒ˜I in terminal โ†’ "Find all .log files larger than 100MB and delete them"
6

Model Selection & AI Credits

What: Choose from the current supported model catalog. Billing is usage-based via GitHub AI Credits (1 credit = $0.01 USD), and cost depends on the model and tokens processed. Model names, availability, prices, and retirement dates change. Code completions and NES are not billed in AI credits and remain unlimited on paid plans.
MODEL COST TIERS โ€” PICK THE RIGHT MODEL FOR THE TASK ๐Ÿชถ LIGHTWEIGHT Low cost per token GPT-6 Luna Claude Haiku 5.5 GPT-5.6 Luna MAI-Code-1.1-Flash Best for: boilerplate, simple edits โšก VERSATILE Balanced cost & capability Claude Sonnet 5.5 Gemini 3.8 Flash GPT-5.6 Terra Grok 4.6 / 4.7 Best for: fast iteration, tests ๐Ÿง  POWERFUL High capability, higher cost GPT-5.3-Codex GPT-6 Sol / GPT-5.6 Sol GPT-6.1 Sol Kimi K3 ยท Opus 4.8 Best for: complex reasoning, agents ๐Ÿ”ฅ HIGHER COST Higher per-token cost Opus 5.5 / Opus 5 GPT-6 Astra ยท Fable 5.1 Opus 4.8 fast (preview) Best for: critical reasoning โ—€ โ–ถ LOW COST HIGH COST COST PER TOKEN โ†’
Model Pricing (USD per 1M tokens; current representative rates)
ModelInputCachedWriteOutputTier
GPT-5 mini (retires 19 Oct 2026)$0.25$0.025—$2.00Lightweight
GPT-5.3-Codex$1.75$0.175—$14.00Powerful
GPT-5.4 (≤272K) (retires 19 Oct 2026)$2.50$0.25—$15.00Versatile
GPT-5.4 (long) (retires 19 Oct 2026)$5.00$0.50—$22.50Versatile
GPT-5.4 mini (retires 19 Oct 2026)$0.75$0.075—$4.50Lightweight
GPT-5.4 nano*$0.20$0.02—$1.25Lightweight
GPT-5.5 (≤272K) (retires 19 Oct 2026)$5.00$0.50—$30.00Powerful
GPT-5.5 (long) (retires 19 Oct 2026)$10.00$1.00—$45.00Powerful
GPT-5.6 Luna (≤200K)$0.20$0.02$0.25$1.20Lightweight
GPT-5.6 Sol (≤272K)$4.00$0.40$5.00$20.00Powerful
GPT-5.6 Terra (≤272K)$2.00$0.20$2.50$12.00Versatile
GPT-6 Astra (≤272K)$10.00$1.00$12.50$50.00Powerful
GPT-6 Sol (≤272K)$2.00$0.20$2.50$10.00Powerful
GPT-6.1 Sol (≤272K)$2.00$0.10$2.50$10.00Powerful
GPT-6 Luna (≤272K)$0.10$0.01$0.125$0.50Lightweight
Claude Haiku 5.5 (≤100K)$0.10$0.01$0.125$0.50Lightweight
Claude Haiku 4.5$1.00$0.10$1.25$5.00Versatile
Claude Sonnet 5.5$2.00$0.10$2.50$10.00Versatile
Claude Sonnet 5$2.00$0.20$2.50$10.00Versatile
Claude Sonnet 4.6 (annual individual plans only)$3.00$0.30$3.75$15.00Versatile
Claude Opus 5.5$4.00$0.20$5.00$20.00Powerful
Claude Opus 4.8 / 5$5.00$0.50$6.25$25.00Powerful
Claude Opus 4.8 fast*$10.00$1.00$12.50$50.00Higher cost
Claude Fable 5*$10.00$1.00$12.50$50.00Higher cost
Claude Fable 5.1$10.00$0.25$12.50$50.00Higher cost
Gemini 3.8 Flash$0.75$0.075—$3.75Versatile
Gemini 3.7 Flash (retires 19 Oct 2026)$0.75$0.075—$3.75Versatile
MAI-Code-1.1-Flash$0.20$0.02—$1.20Lightweight
Grok 4.6 / 4.7 (≤200K)$2.00$0.50—$6.00Versatile
Grok 4.5 (≤200K) (retires 19 Oct 2026)$2.00$0.50—$6.00Versatile
Kimi K3$3.00$0.30—$15.00Powerful
* GPT-5.4 nano is currently limited to the Codex VS Code extension and is not available in Copilot Chat. Long-context tiers and promotional rates are shown in the official pricing table.
Plans & AI Credit Allowances
PlanPriceCredits/mo
Free$0AI-credit allowance; 2K completions/month
Student$0AI-credit allowance; unlimited completions
Pro$10/mo1,500 (1K base + 500 flex)
Pro+$39/mo7,000 (3.9K base + 3.1K flex)
Max$100/mo20,000 (10K base + 10K flex)
Business$19/seat/mo1,900/user; pooled at billing entity
Enterprise$39/seat/mo3,900/user; pooled at billing entity
๐Ÿ’ก Paid plans receive a 10% discount when Auto model selection is used in Chat, CLI, the Copilot app, or cloud agent. 1 AI credit = $0.01 USD.
โš ๏ธ Code completions & NES are not billed in AI credits and are unlimited on paid plans. Chat, CLI, cloud agent, Spaces, third-party agents, and code review use usage-based billing; cloud agent and code review can also consume GitHub Actions minutes.
Utility Models Background
  • GPT-4o mini, GPT-4o, GPT-4.1, and GPT-5.4 nano power background utility features
  • Cannot be selected in the model picker or disabled
  • Power features like commit messages, code review, search indexing
๐Ÿ“Œ Models are frequently added and deprecated. Pricing may change. Check official pricing for the latest.
Use Cases
Save credits on simple tasks โ€” use GPT-6 Luna ($0.10/M input) for boilerplate, switch to Claude Sonnet 5.5 ($2/M) for complex refactors
Architecture decisions โ€” use Claude Opus 5.5 ($4/M input) or GPT-6 Sol ($2/M input) for design reviews where quality matters
7

Custom Instructions

What: Markdown instructions that guide GitHub Copilot in chat and agent requests. Applicable files are combined; personal instructions take precedence over repository instructions, which take precedence over organization instructions. They do not affect inline suggestions as you type.
INSTRUCTION SOURCES โ€” WHAT IS INCLUDED? โ‘  PERSONAL User-level instructions ~/.copilot/instructions/ โ‘ก REPOSITORY Workspace rules copilot-instructions.md ยท AGENTS.md โ‘ข ORGANIZATION Lowest precedence Organization settings PRECEDENCE COMBINES ALWAYS-ON FILES copilot-instructions.md AGENTS.md CLAUDE.md Matching .instructions.md files are conditional; applicable instructions are combined and order is not guaranteed.
Always-On Files
copilot-instructions.md.github/ folder
AGENTS.mdRoot or subfolders
CLAUDE.mdRoot, .claude/, ~/
For Specific Tasks
Code reviewgithub.copilot.chat.reviewSelection.instructions
Commitsgithub.copilot.chat.commitMessageGeneration.instructions
PR descriptionsgithub.copilot.chat.pullRequestDescriptionGeneration.instructions
๐Ÿ“Œ Settings-based code/test-generation instructions are deprecated; use file-based instructions instead.
Priority (High โ†’ Low)
  • 1. Personal instructions (highest precedence)
  • 2. Repository instructions: copilot-instructions.md and AGENTS.md
  • 3. Organization instructions (lowest precedence)
  • Matching *.instructions.md files are added conditionally
  • No specific order is guaranteed among applicable files
Generate Instructions
  • /init โ€” generate or update workspace instructions
  • /create-instructions โ€” generate a targeted instruction file
  • Chat debug view โ†’ verify loaded files
Use Cases
Enforce coding style โ€” add "Always use single quotes and 2-space indentation" to copilot-instructions.md
Standardize commit messages โ€” set commitMessageGeneration instructions to follow Conventional Commits format
8

Instructions.md Files

What: Targeted instruction files (.instructions.md) that apply conditionally based on file glob patterns or semantic matching โ€” e.g., Python rules only for *.py files.
CONDITIONAL INSTRUCTIONS โ€” applyTo GLOB MATCHING .github/instructions/ ๐Ÿ“„ python.instructions.md **/*.py ๐Ÿ“„ react.instructions.md **/*.tsx ๐Ÿ“„ tests.instructions.md **/*.test.* ๐Ÿ“„ api.instructions.md **/api/** match ๐Ÿ“ You're editing: src/utils/auth.py inject ๐Ÿ’ฌ Copilot Prompt (enriched) System instructions injected: โœ… python.instructions.md โŒ react.instructions.md โŒ tests.instructions.md โŒ api.instructions.md Only python.instructions.md matches auth.py via applyTo: '**/*.py' โ€” others are skipped
Format
--- name: 'Python Standards' description: 'Python conventions' applyTo: '**/*.py' --- # Python coding standards - Follow PEP 8 style guide - Use type hints for all functions
Locations
Workspace.github/instructions/
Claude fmt.claude/rules/ Claude-specific
User~/.copilot/instructions/ (also ~/.claude/rules/)
๐Ÿ’ก Type /instructions to configure files, or /create-instructions to generate one. Without applyTo, a file is not applied automatically.
Use Cases
Python-only rules โ€” create python.instructions.md with applyTo: '**/*.py' for PEP 8, type hints, docstrings
React testing patterns โ€” create react-tests.instructions.md with applyTo: '**/*.test.tsx' for RTL best practices
9

Reusable Prompt Files

What: Saved prompt templates (.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.
HOW PROMPT FILES WORK ๐Ÿ“ Create .prompt.md ๐Ÿ’ฌ Type /name in chat to invoke โšก AI Executes with tools & model PROMPT FILE ANATOMY --- description ยท agent ยท tools ยท model --- + prompt body Variables: ${input:name} ยท Markdown links to instructions
  • Encode common tasks as .prompt.md files
  • Invoke via /prompt-name in chat
  • Workspace: .github/prompts/
  • User: VS Code user-profile prompts location
  • Agent Host sessions do not use prompt files; convert the workflow to an Agent Skill when needed
Format
--- 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}
Quick Commands
/create-promptAI-generate a prompt file VS Code
/promptsConfigure prompt files
๐Ÿ’ก Reference instructions via Markdown links. Use ${input:name} for user-provided values.
Use Cases
One-command API scaffold โ€” /create-api generates REST endpoint with controller, service, tests, and OpenAPI spec
Standardized code review โ€” /review-pr checks for security, performance, and accessibility issues every time
10

Chat Modes & Custom Agents

What: Custom agents are specialized configurations with their own tools, instructions, model, and optional handoffs. They were previously called custom chat modes; current files use .agent.md.
BUILT-IN MODES vs CUSTOM AGENTS BUILT-IN MODES ๐Ÿ’ฌ Ask Read-only Q&A ๐Ÿš€ Autopilot Auto-approves tools ๐Ÿค– Agent Autonomous + tools ๐Ÿ“‹ Plan Plan before code vs CUSTOM AGENT (.agent.md) ๐Ÿ›ก๏ธ Your Agent reviewer.agent.md Custom instructions ๐Ÿ”ง tools[] ๐Ÿง  model ๐Ÿค– agents[] ๐Ÿ”Œ MCP HANDOFF WORKFLOW ๐Ÿ›ก๏ธ Review ๐Ÿ”จ Fix โœ… Validate
Built-in Modes
ModePurpose
AskRead-only Q&A, no code changes
AutopilotAgent mode that auto-approves tools and works until the task is complete
AgentAutonomous tool use + edits
PlanCreate plan before implementation
Custom Agent File (.agent.md)
--- 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...
Agent Frontmatter Fields
FieldDescription
descriptionShown in the agent picker; required for GitHub cloud-agent agents
nameDisplay name (defaults to filename)
toolsList of available tools; omit for all tools
agentsAllowed subagents (* = all, [] = none)
modelAI model (string or prioritized array)
handoffsSequential workflow transitions (label, agent, prompt, send, model)
targetvscode or github-copilot (omit for both)
mcp-serversMCP server configs scoped to this agent
hooksAgent-scoped hooks Preview
user-invocableShow/hide in dropdown (default: true)
disable-model-invocationPrevent subagent invocation (default: false)
argument-hintHint text in chat input field
inferDeprecated; use user-invocable and disable-model-invocation
File Locations
Workspace.github/agents/
Claude fmt.claude/agents/
User~/.copilot/agents/
Org/Enterprise.github-private repo โ†’ agents/
Where Custom Agents Work
VS Code Supported IDE agent hosts GitHub.com Copilot CLI Copilot cloud agent Surface support varies
๐Ÿ’ก Type /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.
Use Cases
Security review agent โ€” read-only tools (search, readFile), scans for OWASP Top 10, hands off to "fix" agent
Plan โ†’ Implement workflow โ€” Plan agent creates a spec, handoff button (send: true) auto-submits to implementation agent
Org-wide agent โ€” create agents in .github-private repo to share across all repos in your org/enterprise
11

Skills (Agent Superpowers)

What: Portable folders of instructions, scripts & resources that GitHub Copilot loads when relevant. Unlike instructions (guidelines), skills teach capabilities such as testing and deployment workflows. The open standard works with VS Code, Copilot CLI, the Copilot app, and Copilot cloud agent.
HOW SKILLS LOAD โ€” PROGRESSIVE CONTEXT REQUEST 1 ๐Ÿ“‹ Metadata name + description ร— all skills ๐Ÿง  Prompt Match AI matches prompt to skill descriptions โœ… Best match testing skill selected for loading ๐Ÿ’ก Only metadata is sent initially โ€” not full SKILL.md REQUEST 2 ๐Ÿ“„ SKILL.md Full instructions loaded into context ๐Ÿค– Agent reads: โ€ข Workflow steps โ€ข Patterns & rules ๐Ÿ’ก Only matched skill's SKILL.md is loaded Agent now knows HOW to perform the task but hasn't loaded helper files yet REQUEST 3+ ๐Ÿ“ฆ Resources Scripts, templates, fixtures loaded โšก Executes Agent uses helpers to complete task ๐Ÿ’ก Progressive loading saves tokens Helper scripts, test templates, fixtures loaded only when agent needs them ๐Ÿ”„ All automatic โ€” just place skills in .github/skills/ โ€” Copilot handles matching & loading
SKILL.md Format
--- name: webapp-testing description: 'Run and debug web app integration tests' --- # Testing Workflow Use describe + it + AAA pattern Use factory mocks for fixtures
Locations
Project.github/skills/<name>/
Project alternatives.claude/skills/ or .agents/skills/
Personal~/.copilot/skills/<name>/ or ~/.agents/skills/<name>/
Key Features
  • Invoke via /skill-name in chat
  • /create-skill โ€” AI-generate a skill
  • user-invocable controls slash-command visibility
  • disable-model-invocation prevents automatic loading
  • Optional context: fork runs the skill in an isolated context
  • Open standard: agentskills.io
Use Cases
Testing skill โ€” SKILL.md + test templates + fixture scripts โ†’ Copilot auto-loads when you ask "help me test"
Deployment skill โ€” SKILL.md + deploy scripts + Dockerfile โ†’ /deploy runs the full pipeline
12

MCP โ€” Model Context Protocol

What: An open standard that connects GitHub Copilot to external tools and services. MCP servers can expose tools, resources, prompts, and interactive apps, but support depends on the client and execution surface.
MCP โ€” HOW COPILOT CONNECTS TO EXTERNAL TOOLS ๐Ÿง  Copilot Agent Discovers & calls tools via MCP protocol requests โ†’ โ† responses ๐Ÿ”Œ MCP Server stdio / HTTP transport Exposes capabilities EXTERNAL SERVICES ๐Ÿ—„๏ธ Databases ๐ŸŒ APIs ๐Ÿงญ Browsers ๐Ÿ“ File Systems ๐Ÿ™ GitHub ๐Ÿ”ง Custom Tools MCP CAPABILITIES ๐Ÿ”ง Tools ๐Ÿ“„ Resources ๐Ÿ’ฌ Prompts ๐Ÿ–ฅ๏ธ MCP Apps ๐Ÿ”„ Sampling โ“ Elicitation ๐Ÿ–๏ธ Sandbox
VS Code: .vscode/mcp.json
{ "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp" }, "playwright": { "type": "stdio", "command": "npx", "args": ["-y", "@microsoft/mcp-server-playwright"] } } }
MCP Capabilities
CapabilityDescription
ToolsExecute operations (file, DB, API)
ResourcesRead-only context (Add Context โ†’ MCP Resources)
PromptsTemplates via /server.prompt
MCP AppsInteractive UI in chat
SamplingServer-initiated model calls
ElicitationServer asks user for input
Key Servers
github-mcp-serverGitHub APIs
PlaywrightBrowser automation
SandboxmacOS/Linux: sandboxEnabled
โš ๏ธ Only use MCP servers from trusted sources. Review configs before starting.
Surface note: VS Code uses 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.
Use Cases
Query a database โ€” add a Postgres MCP server โ†’ ask Copilot "show me users who signed up this week"
Browser testing โ€” add Playwright MCP server โ†’ "go to our staging site and screenshot the login page"
13

Hooks โ€” Lifecycle Automation

What: Preview lifecycle automation for agent sessions. Hooks run commands at defined events and can log, inject context, modify results, or block tool calls depending on the event and client. Configuration and behavior may change.
AGENT LIFECYCLE โ€” WHERE HOOKS FIRE SessionStart ๐Ÿš€ Session begins UserPromptSubmit ๐Ÿ’ฌ User sends prompt PreToolUse ๐Ÿ›ก๏ธ Before tool runs PostToolUse ๐Ÿ” After tool completes PreCompact ๐Ÿ“ฆ Before compaction Stop ๐Ÿ Session ends EXIT CODES โœ… 0 = Success โ†’ parse JSON โš ๏ธ Other non-zero = Warning โ†’ continue ๐Ÿ›ก๏ธ Deny via PreToolUse decision or exit 2
Hook Events
EventWhen
SessionStartFirst prompt of new session
UserPromptSubmitUser submits a prompt
PreToolUseBefore tool invocation
PostToolUseAfter tool completes
PreCompactBefore context compaction
SubagentStart/StopSubagent lifecycle
StopAgent session ends
Hook Config (.github/hooks/*.json)
{ "hooks": { "PostToolUse": [{ "type": "command", "command": "npx prettier --write ." }] } }
Local hook locations (VS Code)
.github/hooks/*.jsonWorkspace hooks
~/.copilot/hooks/*.jsonUser hooks across Local sessions
hooks in .agent.mdRuns only while that custom agent is active (Preview)
.claude/settings.jsonClaude format; requires chat.useClaudeHooks (off by default)
Exit Codes
0Success โ†’ parse stdout JSON output
Exit 2Blocking error; behavior is event-specific
Other non-zeroWarning/logged and usually continues
TimeoutWarning; VS Code continues through normal handling
PreToolUse Output (JSON)
hookSpecificOutput.permissionDecisiondeny blocks the tool call; allow and ask behavior depends on the client
โš ๏ธ Hook behavior is surface-specific. In VS Code, exit 2 can block processing; Copilot CLI/cloud-agent preToolUse has its own fail-closed and fail-open rules. Test security hooks before relying on them.
Use Cases
Auto-format after edits โ€” PostToolUse hook runs prettier --write after the agent uses a tool
Block destructive commands โ€” PreToolUse hook outputs {"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny"}} for rm -rf and DROP TABLE
14

Copilot on GitHub.com

What: GitHub.com Copilot features include Copilot cloud agent, Copilot code review, pull-request summaries, issue workflows, and CodeQL Autofix. Cloud agent (formerly Copilot coding agent) is distinct from Agent mode in an IDE and works in an ephemeral GitHub Actions-powered environment. GitHub plans to relaunch Copilot Chat on github.com, Copilot Chat in GitHub Mobile, and cloud agent as one experience and one policy no earlier than 28 Sep 2026.
CODING AGENT WORKFLOW ON GITHUB.COM ๐Ÿ“‹ Delegate Issue or /delegate ๐Ÿค– Agent Codes Branch + implement ๐Ÿ”€ Opens PR Auto-created ๐Ÿ‘€ Review Merge GITHUB.COM FEATURES ๐Ÿ“ PR Summary ๐Ÿ” Code Review ๐Ÿ› Issue Helper ๐Ÿ›ก๏ธ Autofix
Coding Agent
  • Delegate tasks from GitHub.com, supported IDE entry points, or Copilot CLI
  • Use /delegate in Copilot CLI or delegate from an issue, PR comment, or supported chat surface
  • Creates a branch and works in an ephemeral, firewalled GitHub Actions environment
  • Consumes AI credits and GitHub Actions minutes
  • Follow up with steering comments
  • Maximum execution time is 59 minutes; one task is limited to one repository, branch, and PR
PR & Issue Features
  • PR Summary โ€” auto-generate descriptions
  • Code Review โ€” assign Copilot as reviewer
  • Issue helper โ€” create/update issues with Copilot
  • Autofix โ€” code scanning security fixes
Customize Agent Environment
  • Use copilot-setup-steps.yml (GitHub Actions workflow)
  • MCP servers for cloud agent
  • Preinstall dependencies, choose supported runners, and configure secrets/variables
  • Deep research, planning, and iteration before a PR are available on GitHub.com; other integrations may create a PR directly
Use Cases
Delegate a feature โ€” /delegate + link to GitHub issue โ†’ agent creates a branch, implements, and opens a PR
Auto-review PRs โ€” assign Copilot as reviewer on every PR โ†’ catches bugs, style issues, and security flaws
15

Copilot CLI โ€” Terminal AI Agent

What: GitHub Copilot CLI is an AI coding agent in your terminal with interactive and programmatic interfaces, plan and autopilot modes, custom agents, MCP, hooks, skills, memory, and GitHub workflows. Choose models with /model or --model; the models you can use depend on your plan and policies.
COPILOT CLI โ€” TERMINAL INTERFACE Terminal โ€” copilot โฏ copilot "Add input validation to all API endpoints and write tests" ๐Ÿค– Agent ๐Ÿ’ฌ Ask ๐Ÿ“‹ Plan Shift+Tab: toggle mode Ctrl+T: show reasoning @file: add context !cmd: run shell โ ‹ Reading codebase... โ†’ Found 6 API endpoints โ†’ Adding Zod schemas... โœ“ 12 files modified, 47 tests pass FLAGS: -p "prompt" --continue --resume --agent=name --allow-all-tools --model name --allow-tool='shell(git)'
Slash Commands
CommandAction
/modelSwitch AI model
/compactCompress conversation context
/contextView token usage breakdown
/usageSession stats (AI credits, duration, LOC)
/agentSelect a custom agent
/researchRun deep research
/reviewReview code changes
/security-reviewRun a focused security review
/delegateHand a task to the cloud agent
/remoteSteer this session from GitHub.com or GitHub Mobile
/pluginsManage plugins
/skillsManage skills
/fleetRun subagents in parallel
/mcpList MCP servers; /mcp add to add
/resumeResume a previous session
/add-dirTrust an additional directory
/cwd / /cdChange working directory
/loginAuthenticate with GitHub
/feedbackSubmit feedback, bugs, features
/allow-allAllow all tools, paths, and URLs this session
/limitsSet a per-response AI-credit limit
/everySchedule recurring prompt (e.g. /every 1h run tests)
/afterSchedule one-shot prompt after delay
/sandboxEnable local sandboxing (/sandbox enable)
/shareShare session transcript or export context
/chronicleSession history, standup reports & usage tips
Keyboard & Syntax
Key / SyntaxAction
Shift+TabCycle interactive / plan / autopilot modes
Ctrl+TShow/hide model reasoning
Esc EscStop the current operation while Copilot is thinking (press Esc twice within half a second)
@path/to/fileInclude file as context
!git statusRun shell command directly
Command-Line Flags
-p "prompt"Programmatic single-prompt mode
--continueResume most recent session
--resumePick a session to resume
--agent=nameUse a specific custom agent
--allow-all-toolsAllow all tools without confirmation
--allow-tool='shell(git)'Allow specific tool
--deny-tool='shell(rm)'Block specific tool
--model nameSet model from CLI
--cloudRun in cloud sandbox
--yoloAllow all permissions (alias for --allow-all)
--autopilotContinue autonomously until complete
--max-ai-creditsSet a soft per-response credit limit
--max-autopilot-continuesLimit autopilot continuation steps
--remoteEnable remote steering/export
--acpRun as an Agent Client Protocol server
--effort LEVELReasoning effort: low, medium, high, xhigh, or max
Built-in Subagents
exploreQuick codebase analysis
taskRun tests/builds, brief summaries
code-reviewReview changes, surface real issues
general-purposeGeneral-purpose subagent
researchDeep research tasks
rubber-duckConstructive second opinion
Use Cases
Headless automation โ€” copilot --autopilot --allow-all -p "Run tests, fix failures, commit" in a controlled CI environment
Resume cloud agent โ€” enable remote sessions, then use /resume or --remote to continue work from GitHub.com
16

Spaces & Spark (retired)

What: Copilot Spaces are curated knowledge collections for project context. GitHub Spark is retired on github.com: new apps stopped on 4 Aug 2026, and access ended on 31 Aug 2026.
๐Ÿ“š Copilot Spaces Curated knowledge collections ๐Ÿ“„ Docs + ๐Ÿ’ป Code + ๐Ÿ“ Files โ†’ Shared project context โ†’ github.com/copilot/spaces AI credits per use โš ๏ธ Spark retired New apps stopped 4 Aug 2026 Access ended 31 Aug 2026 โ†’ Export apps before access ended โ†’ Deployed apps keep running Retired
  • Curate knowledge for project context
  • Attach docs, code, files to a space
  • Access at github.com/copilot/spaces
  • Consumes AI credits based on token usage
Spark retirement
  • New apps stopped 4 Aug 2026; access ended 31 Aug 2026
  • Deployed apps keep running after retirement
  • Apps that call llm() stop working: GitHub Models retired 30 Jul 2026
Use Cases
Spaces: shared context โ€” collect repository docs, code, and files โ†’ ask focused questions with the same curated context
Spark app that calls llm() โ€” replace the call with your own inference provider and key before relying on AI features
17

Toolsets

What: A collection of tools you reference as a single entity in prompts, prompt files, and custom agents. Organize related tools and enable/disable them as a group.
GROUP TOOLS โ†’ REFERENCE AS ONE INDIVIDUAL TOOLS ๐Ÿ” search/codebase ๐Ÿ“„ search/changes โš ๏ธ read/problems ๐Ÿ”— search/usages group ๐Ÿ“ฆ #reader Toolset 4 tools bundled .jsonc config use USE IN ๐Ÿ’ฌ Prompts #reader ๐Ÿค– Agents tools: ['reader']
  • Define in .jsonc files via Chat: Configure Tool Sets
  • Reference in prompts: #toolset-name
  • Reference in agents: tools: ['my-toolset']
  • Built-in sets: #edit, #search
Tool Set File (.jsonc)
{ "reader": { "tools": ["search/changes", "search/codebase", "read/problems", "search/usages"], "description": "Tools for reading context", "icon": "book" } }
Properties
toolsArray of tool names (built-in, MCP, extension)
descriptionShown in tools picker
iconProduct icon (see Icon Reference)
Use Cases
Read-only toolset โ€” group search, readFile, grep into a #reader set for safe auditing
Quick reference โ€” type #reader in prompt to enable all read tools at once
๐Ÿ“š Sources: VS Code Docs โ€” Tool Sets
18

Content Exclusion

What: Repository, organization, or enterprise rules that prevent specified files, paths, or repositories from being used as Copilot context on supported surfaces. It is a governance control, not a complete secret-protection system.
CONTENT EXCLUSION โ€” WHAT GETS BLOCKED ๐Ÿšซ EXCLUDED FILES ๐Ÿ”’ .env / .env.* ๐Ÿ”‘ **/secrets/** ๐Ÿ“œ **/keys/** ๐Ÿข internal-repo ๐Ÿ›ก๏ธ BLOCKED Not sent to AI model โœ… APPLIES TO โŒจ๏ธ Completions ๐Ÿ’ฌ Chat ยท Inline ยท App & CLI ๐Ÿšซ NOT: IDE Agent / Edit mode โš ๏ธ Requires Business or Enterprise plan
  • Exclude files/repos from Copilot at repository, organization, or enterprise level
  • Prevents content from being sent to model
  • Configurable in GitHub org settings
  • Supports glob patterns for paths
  • Applies to IDE completions and Chat/Ask surfaces, and to the Copilot app and CLI (GA 2 Sep 2026)
  • Requires Business or Enterprise plan
โš ๏ธ Content exclusion is not supported in IDE Edit/Agent mode. The Copilot app and CLI respect it (GA 2 Sep 2026), but older docs say the CLI does not, so verify on your surface. Do not assume it protects cloud-agent or other agentic workflows. Public-code blocking is also not guaranteed on CLI/cloud-agent surfaces; review their references and logs.
Common Exclusions
.env / .env.*Environment variables & secrets
**/secrets/**Secret files & credentials
**/keys/**API keys & certificates
internal-repoEntire private repositories
Operational note: IDE changes can take up to 30 minutes to propagate; reload the IDE when testing a new exclusion. Exclusions do not remove secrets already exposed elsewhere.
Use Cases
Exclude secrets โ€” content exclusion rule blocks .env, **/secrets/** from being sent to AI
Compliance โ€” exclude regulated codebases (HIPAA, PCI) from AI processing at the org level
19

Spec-Driven Development Community

โš ๏ธ Note: This section describes community frameworks, not official GitHub Copilot features. These methodologies work well with Copilot agents but are maintained by third parties.
What: Write a specification first, then let the AI agent implement it. Specs define requirements, acceptance criteria, and architecture โ€” giving agents a clear blueprint instead of ad-hoc prompts.
SPEC-DRIVEN WORKFLOW ๐Ÿ“ Write Spec Requirements + acceptance criteria ๐Ÿ‘€ Review Refine & validate spec ๐Ÿค– Implement Agent codes from blueprint โœ… Validate Tests pass criteria met Frameworks: spec-kit ยท OpenSpec ยท BMAD ยท GSD
Popular Frameworks
spec-kitGitHub open-source project (github/spec-kit) for spec-driven development; not a built-in Copilot feature
OpenSpecFission AI spec framework
BMADBMAD methodology
GSDGet-shit-done framework
Workflow
Write Spec โ†’ Review & Refine โ†’ Agent Implements โ†’ Validate Output
Use Cases
Feature spec โ€” write a spec with user stories + acceptance criteria โ†’ /delegate to coding agent for implementation
Migration spec โ€” define the target state, constraints, and rollback plan โ†’ agent handles the migration systematically
๐Ÿ“š Sources: github/spec-kit · OpenSpec · BMAD Method · GSD
20

Customization File Structure

What: A practical layout for Copilot customization files. File names and locations are surface-specific: VS Code, Copilot CLI, and GitHub cloud agent do not consume every configuration file in the same way.
CUSTOMIZATION FILE LOCATIONS .github/ instructions/ prompts/ agents/ skills/ hooks/ mcp.json copilot-instructions.md Repo: AGENTS.md ยท CLAUDE.md | VS Code: .vscode/mcp.json | CLI: .mcp.json
your-project/ โ”œโ”€โ”€ .github/ โ”‚ โ”œโ”€โ”€ copilot-instructions.md โ”‚ โ”œโ”€โ”€ instructions/ โ”‚ โ”‚ โ”œโ”€โ”€ python.instructions.md โ”‚ โ”‚ โ””โ”€โ”€ react.instructions.md โ”‚ โ”œโ”€โ”€ prompts/ โ”‚ โ”‚ โ””โ”€โ”€ create-api.prompt.md โ”‚ โ”œโ”€โ”€ agents/ โ”‚ โ”‚ โ”œโ”€โ”€ planner.agent.md โ”‚ โ”‚ โ””โ”€โ”€ reviewer.agent.md โ”‚ โ”œโ”€โ”€ skills/ โ”‚ โ”‚ โ””โ”€โ”€ testing/ โ”‚ โ”‚ โ””โ”€โ”€ SKILL.md โ”‚ โ”œโ”€โ”€ hooks/ โ”‚ โ”‚ โ””โ”€โ”€ format.json โ”‚ โ””โ”€โ”€ mcp.json (CLI project config) โ”œโ”€โ”€ .vscode/ โ”‚ โ””โ”€โ”€ mcp.json โ”œโ”€โ”€ .github/workflows/ โ”‚ โ””โ”€โ”€ copilot-setup-steps.yml โ”œโ”€โ”€ .mcp.json (CLI workspace config) โ”œโ”€โ”€ AGENTS.md โ””โ”€โ”€ CLAUDE.md
Use Cases
Monorepo setup โ€” separate instructions/ for frontend (React) and backend (Python) with different applyTo globs
Team shared configs โ€” commit supported .github/ files to Git; keep user-level settings, credentials, and provider keys outside the repository
21

Third-Party Coding Agents

What: Use Anthropic Claude and OpenAI Codex as third-party coding agents alongside Copilot cloud agent. Assign GitHub issues or prompts โ€” they create branches, implement changes, and open PRs for review. Agent Apps are a separate public-preview integration category.
THIRD-PARTY CODING AGENTS โ€” ASSIGN & COMPARE Claude Anthropic ยท Preview Codex OpenAI ยท Preview WORKFLOW ๐Ÿ“‹ Assign Issue ๐Ÿค– Agent Codes ๐Ÿ”€ Opens PR Cost: AI credits plus GitHub Actions minutes AVAILABLE FROM ๐ŸŒ GitHub.com ๐Ÿ–ฅ๏ธ VS Code ๐Ÿ“ฑ GitHub Issues ๐Ÿ’ฌ PR Comments ๐Ÿ“ฑ Mobile โŒจ๏ธ CLI
Supported Third-Party Agents
AgentProviderStatus
ClaudeAnthropicPreview
CodexOpenAIPreview
๐Ÿ“Œ Copilot cloud agent (formerly Copilot coding agent) is the first-party (native) agent โ€” see Section 14. Third-party agents work alongside it.
Where to Use
  • Agents tab โ€” github.com/copilot/agents
  • Issues โ€” assign the agent to an issue
  • PRs โ€” mention @AGENT_NAME in a comment
  • VS Code โ€” choose the Claude or Codex session target
  • GitHub Mobile โ€” start agent session from Home
How It Works
Assign Issue / Prompt โ†’ Agent Plans & Codes โ†’ Opens PR โ†’ You Review
Cost & Billing
  • Each prompt consumes AI credits based on model & tokens
  • GitHub Actions minutes and AI credits apply to third-party coding agents too
  • Same repo access permissions as built-in agent
Enable for Your Org
  • Org Settings โ†’ Copilot โ†’ Policies โ†’ "Enabling or disabling third-party coding agents"
  • Available on all paid plans: Pro, Pro+, Max, Business, and Enterprise
  • Org admins toggle each agent independently
โš ๏ธ Third-party agents are in public preview. Policies apply to cloud agents only โ€” local agents in VS Code cannot be disabled.
Use Cases
Compare agent output โ€” assign the same issue to Claude and Codex โ†’ compare their PRs with Copilot cloud agent's PR and merge the best one
Parallel workstreams โ€” assign backend refactor to Codex while Claude handles frontend tests โ€” both open PRs simultaneously
22

Browser Agent Tools VS Code

What: Agents can open, interact with, and screenshot web pages in VS Code's integrated browser, enabling build โ†’ test โ†’ debug โ†’ fix loops for web apps. Tool availability depends on VS Code version, organization policy, and the workbench.browser.enableChatTools setting.
AUTONOMOUS DEV LOOP โ€” BUILD โ†’ TEST โ†’ FIX ๐Ÿ—๏ธ Build App Agent writes code ๐ŸŒ Open in Browser openBrowserPage ๐Ÿ–ฑ๏ธ Test & Interact click ยท type ยท screenshot ๐Ÿ”ง Fix Issues Auto-fix from errors โœ… Validate Screenshot & verify repeat until all tests pass KEY TOOLS openBrowserPage screenshotPage clickElement typeInPage readPage handleDialog runPlaywrightCode
Available Tools
ToolAction
openBrowserPageOpen a URL in integrated browser
navigatePageNavigate to a different URL
readPageRead page content & structure
screenshotPageTake a screenshot for visual review
clickElementClick a page element
hoverElementHover over an element
dragElementDrag and drop elements
typeInPageType text into inputs
handleDialogAccept/dismiss browser dialogs
runPlaywrightCodeRun custom Playwright automation
Enable Browser Tools
  • Check that workbench.browser.enableChatTools is true (on by default)
  • Open Chat โ†’ Agent mode โ†’ Tools picker
  • Enable all tools under Built-in > Browser
Autonomous Dev Loop
Build App โ†’ Open in Browser โ†’ Test & Interact โ†’ Fix Issues โ†’ Validate
Sharing Pages
  • Agent-opened pages use isolated ephemeral sessions (no shared cookies)
  • Share with Agent button โ€” share your pages (uses your session/cookies)
  • Visual indicator shows when a page is shared
โš ๏ธ Browser agent tools are experimental and may change in future releases.
Use Cases
Form validation testing โ€” "Build a contact form, open it in the browser, test all validation rules and fix any issues" (full loop)
Responsive layout check โ€” "Screenshot this page at 320px, 768px, and 1440px widths and verify the layout is correct"
Accessibility audit โ€” "Check this page for missing alt text, heading hierarchy, keyboard nav, and color contrast issues"
23

Checkpoints & Session Forking VS Code

What: VS Code can snapshot affected workspace files before chat requests. Restore a checkpoint, redo changes, edit and resend an earlier request, or fork a conversation to explore an alternative approach. Availability and file isolation depend on the session host.
CHECKPOINT TIMELINE โ€” SNAPSHOT ยท RESTORE ยท FORK C1 Agent edits ๐Ÿ“ธ auto-saved C2 More edits ๐Ÿ“ธ auto-saved C3 โŒ Bad result ๐Ÿ“ธ auto-saved ๐Ÿ”„ Restore to C2 C4 New attempt โœ… better result F1 ๐Ÿด Fork Alternative approach ACTIONS ๐Ÿ”„ Restore ๐Ÿด Fork โœ๏ธ Edit & Resend
Checkpoints
  • Enable: chat.checkpoints.enabled
  • Auto-created before requests that affect workspace files
  • Hover chat request โ†’ Restore Checkpoint
  • Restores tracked agent changes made after that point; review unrelated edits before restoring
  • Redo button appears after restore โ€” undo mistakes
View File Changes
  • Enable: chat.checkpoints.showFileChanges
  • Shows modified files + lines added/removed per request
  • Helps decide which checkpoint to restore to
๐Ÿ’ก Checkpoints complement Git but don't replace it. They're for quick iteration within a session โ€” use Git for permanent version control.
Edit Previous Requests
  • Click any previous chat request to edit it
  • Reverts changes from that request + all later ones
  • Resends as a new request with your edits
  • Configure: chat.editRequests
Fork from Checkpoint
  • Hover chat request โ†’ Fork Conversation
  • Creates new independent session from that point
  • Original conversation preserved
  • Explore alternative approaches side by side
Workflow
Agent Acts โ†’ Review Output โ†’ โœ… Keep / ๐Ÿ”„ Restore / ๐Ÿด Fork
Use Cases
Safe experimentation โ€” let the agent try a risky refactor, restore checkpoint if it breaks tests, fork to try an alternative
Prompt refinement โ€” edit a vague prompt 3 requests back โ†’ agent re-runs with better instructions, previous bad output is undone
24

Agent Sessions, Handoffs & Orchestration

What: Run multiple agent sessions in parallel across local, CLI, and cloud environments. Handoffs carry relevant context and a prepared prompt; forks preserve the conversation history. Manage sessions from a unified view.
MULTI-AGENT ORCHESTRATION โ€” HANDOFF & PARALLEL HANDOFF FLOW (relevant context + prepared prompt) ๐Ÿ“‹ Plan (Local) VS Code interactive โŒจ๏ธ Build (CLI) Background on machine โ˜๏ธ PR (Cloud) Remote infra ๐Ÿ‘€ Review Team reviews PR PARALLEL AGENTS ๐Ÿ“‹ Task "Review this code for security" ๐Ÿง  GPT-5.6 Sol ๐Ÿง  Sonnet 5.5 ๐Ÿง  Gemini 3.8 Flash โ†“ compare results โ†“ Forks preserve conversation history ยท Handoffs pass relevant context ยท Parallel sessions can use different models
Agent Types
TypeRunsBest For
LocalVS Code (interactive)Brainstorm, debug, browse
Copilot CLIBackground on machineWell-defined tasks, POCs
CloudRemote infraPRs, team collaboration
Third-partyClaude / CodexProvider-specific models
Handoff Flow
Plan (Local) โ†’ Implement (CLI) โ†’ PR (Cloud) โ†’ Review
  • Select different agent type from session dropdown
  • Handoffs pass relevant context; forks preserve full history
  • Session state and changes depend on the selected harness/worktree
  • /delegate in CLI โ†’ sends to cloud agent
Sessions View
  • Unified list of all sessions (local, CLI, cloud)
  • Group or split chats within an Agent Host session
  • Shows status, harness, workspace, and file-change stats
  • Archive / unarchive completed sessions
  • Group sessions by workspace or timeframe
Agent Status Indicator
  • Badge in command center title bar Experimental
  • Shows unread messages + in-progress count
  • Enable: chat.agentsControl.enabled
Parallel Sessions
  • Create multiple sessions via + button
  • Each session: independent context window
  • Run different tasks simultaneously
  • Assign TODOs: right-click code โ†’ assign to agent
Use Cases
Plan โ†’ Build โ†’ Ship โ€” Plan agent designs architecture, hand off to CLI for implementation, then cloud agent opens the PR for team review
Parallel features โ€” run 3 local sessions: one for API endpoints, one for UI components, one for tests โ€” all working simultaneously
TODO delegation โ€” add // TODO: add input validation in code โ†’ right-click โ†’ assign to Copilot cloud agent โ†’ agent creates a PR
25

Prompt & Context Engineering

What: Proven techniques for writing effective prompts and providing the right context. The quality of Copilot's output depends directly on how well you communicate โ€” be specific, break tasks down, include expected output, and choose the right interaction mode.
GOOD vs BAD PROMPTS โ€” QUALITY IN = QUALITY OUT โŒ BAD "Make this code better" Vague ยท No language ยท No criteria ยท No expected output โ†’ poor results โœ… GOOD "Refactor to reduce O(nยฒ) โ†’ O(n log n). Add tests." Specific ยท Clear goal ยท Measurable criteria ยท Includes verification step โ†’ great results PROMPT ENGINEERING TIPS ๐ŸŽฏ Be specific language + framework + I/O โœ‚๏ธ Break it down smaller steps = better ๐Ÿ“‹ Show expected test cases + criteria ๐Ÿ”„ Iterate refine with follow-ups โ“ Ask AI to ask clarify before coding ๐Ÿ“‚ Add context #file ยท #fetch ยท images ๐Ÿงน New sessions avoid context pollution PROMPTING TECHNIQUES ๐Ÿงฉ Few-Shot Prompting Provide 2-3 input โ†’ output examples ๐Ÿ”— Plan + Verify "Give a concise plan and list assumptions" ๐ŸŽญ Role Prompting "Act as a senior security engineer" ๐Ÿ”€ Negative Prompting "Don't use regex. Don't use any libs." + moreโ€ฆ
Writing Effective Prompts
  • Be specific โ€” state language, framework, expected I/O
  • Break down complex tasks โ€” smaller steps = better results
  • Include expected output โ€” test cases, acceptance criteria
  • Avoid vague prompts โ€” "make this better" โ†’ "reduce time complexity"
  • Iterate with follow-ups โ€” refine, don't rewrite the whole prompt
  • Ask AI to ask questions โ€” "ask me clarifying questions before starting"
  • Course-correct early โ€” steer mid-request if heading wrong way
Prompt Example
Write 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
Providing Context
  • Agent auto-searches workspace โ€” usually no need for #codebase
  • Reference specific files: #file, #folder, #symbol
  • #fetch โ€” pull info from web pages / docs
  • Attach images / screenshots for visual context
  • Use integrated browser to select page elements
  • Ask for a concise plan, assumptions, and verification steps instead of hidden reasoning
Pick the Right Mode
ModeWhen to Use
Inline suggestionsIn-flow coding, boilerplate
AskQuestions, brainstorm, explore
Inline chatTargeted in-place edits
AgentMulti-file autonomous changes
PlanArchitecture, migration strategy
Smart actionsOne-click commit msg, fix, rename
Session Hygiene
  • New session for unrelated tasks โ€” avoid context pollution
  • Use subagents for isolated research
  • Run parallel sessions for independent work
Use Cases
High-quality output โ€” "Implement a rate limiter using token bucket. Write tests that verify: 10 req/s allowed, 11th rejected, refills after 1s. Run the tests."
Plan first โ€” use Plan agent to design architecture โ†’ review โ†’ hand off to Agent mode for implementation with tests as verification
26

Smart Actions

What: One-click AI-powered actions built into VS Code โ€” no prompt needed. Generate commit messages, rename symbols intelligently, fix diagnostics, and search semantically. Available via right-click, lightbulb, or keyboard shortcuts.
SMART ACTIONS โ€” ZERO PROMPTS NEEDED โœจ Commit Message F2 Smart Rename ๐Ÿ’ก Fix with Copilot ๐Ÿงช Fix Test Failure ๐Ÿ“„ Generate Docs ๐Ÿ” Semantic Search ๐Ÿ“ PR Summary Access via โŒ˜. ยท Right-click Context menus
Available Actions
ActionWhere
Generate Commit MessageSource Control panel
Rename SymbolF2 on any symbol
Fix with CopilotLightbulb on errors/warnings
Fix Test FailureTest Explorer failed tests
Generate DocsRight-click โ†’ Generate Code
Semantic SearchSearch view; Preview
Generate PR SummaryPR description field
Resolve Merge ConflictConflict editor; Experimental
Delegate TODOCode action โ†’ Copilot cloud agent
Generate/Refine Alt TextMarkdown image code action
Review CodeSelection or PR Files Changed view
Search Settings with AISettings editor; enable AI search
How to Access
  • Lightbulb (โŒ˜.) โ€” hover over error โ†’ AI fix suggestion
  • Right-click โ†’ Generate Code menu
  • Context menus in Source Control, Test Explorer
  • No prompt required โ€” Copilot infers from context
Use Cases
Instant commit messages โ€” click โœจ in Source Control โ†’ Copilot analyzes diff and generates a Conventional Commit message
Smart rename โ€” F2 on processData โ†’ Copilot suggests transformUserPayload based on function body semantics
27

BYOK โ€” Bring Your Own Key

What: Bring your own model provider to VS Code. Individual BYOK works for chat without a Copilot plan or GitHub login and can use local models; Business/Enterprise administrators can enable organization-managed custom models. Enterprise custom models are in public preview, provider billing and data terms apply, and GitHub-dependent features still require a GitHub account.
TWO BYOK MODES โ€” INDIVIDUAL + ENTERPRISE ๐Ÿ”‘ Individual BYOK โ€” Chat & local models User adds API key in VS Code model picker Works without Copilot plan/login ยท local models can run offline ๐Ÿข Enterprise custom models โ€” Business / Enterprise (Preview) Admin connects key in org/enterprise settings ยท Centralized model management Billed by provider, not GitHub quotas ยท Streaming & Responses API supported SUPPORTED PROVIDERS OpenAI Anthropic Google AI Studio MS Foundry AWS Bedrock xAI OpenAI-compatible Ollama (local)
Individual BYOK (VS Code)
  • Model picker โ†’ Manage Models โ†’ select provider โ†’ enter key
  • Or: Chat: Manage Language Models command
Built-in providersOpenAI, Anthropic, Google, etc.
ExtensionsAI Toolkit, Foundry Local
Local modelsOllama, custom OpenAI-compat
๐Ÿ“Œ Individual BYOK works without a Copilot plan or GitHub login for chat. Semantic search, inline suggestions, and embedding-dependent features still require the GitHub Copilot service.
Enterprise custom models (Business/Enterprise) Preview
  • Org/Enterprise settings โ†’ connect API key โ†’ manage model access
  • Enterprise admins control which orgs can use which models
ProvidersOpenAI, Anthropic, Google AI Studio, Microsoft Foundry, AWS Bedrock, xAI, OpenAI-compat
BillingBilled by your provider, not GitHub quotas
Context windowAdmins can set max context window
StreamingStreaming responses supported
API typesChat Completions, Responses, and Anthropic Messages (custom endpoint)
๐Ÿ’ก BYOK models need tool calling support for Agent mode; Copilot CLI also requires streaming. Requests go to your configured provider, so review its retention and training terms. GitHub-dependent features still require the relevant account/service access.
Use Cases
Run local Ollama โ€” add a local model through the Ollama extension โ†’ use chat offline; GitHub-dependent features remain unavailable without the service
Enterprise model standardization โ€” connect org's Azure OpenAI key โ†’ all devs use approved models, billed via existing contract (Enterprise)
Cutting-edge models โ€” add your Anthropic key to try Claude's latest release before it appears in the built-in list
28

Privacy, Security & Trust

What: GitHub's privacy, security, and IP controls vary by plan, surface, model provider, and settings. Business/Enterprise customer data is not used for training; individual-plan interactions may be used for training unless the user opts out. Retention and filtering claims must be checked for the specific feature and provider.
DATA PROTECTION โ€” YOUR CODE STAYS YOURS ๐Ÿ”’ Training Policy Business/Enterprise: no training; individual plans: opt out ๐Ÿ—‘๏ธ Retention Varies Check the surface and model-provider terms โš–๏ธ IP Indemnity Business/Enterprise protection is subject to published terms RESPONSIBLE AI PIPELINE ๐Ÿ›ก๏ธ Pre-Model Filters ๐Ÿšซ Content Exclusion ๐Ÿง  AI Model ๐Ÿ” Post-Model Filters ๐Ÿ“‹ Duplicate Code Check COMPLIANCE SOC 2 Type II GDPR Encrypted Trust Center Public Code Filter Telemetry Opt-out
Data Handling
WhatBehavior
Prompts, outputs, and contextRetention depends on surface, plan, and model provider; do not promise zero retention
Training on interactionsBusiness/Enterprise: not used for training; individual plans (Free, Pro, Pro+): may be used unless opted out (since 24 Apr 2026)
TelemetryIndividual users can control telemetry; richer usage metrics require IDE telemetry
Model hostingProvider agreements and data handling differ by model; see model-hosting documentation
Claude Fable 5 and 5.1Anthropic 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.
Responsible AI Filters
  • Pre-model โ€” content exclusion and safety processing where supported
  • Post-model โ€” public-code matching and safety checks where supported
  • Configure public-code matching; support differs by surface
IP & Compliance
  • IP indemnity โ€” Business/Enterprise protection is subject to GitHub's published requirements and terms
  • SOC 2 Type II and GDPR information is documented in the Trust Center
  • Subprocessor list published on Trust Center
Security Best Practices
  • Review AI output for vulnerabilities (OWASP Top 10)
  • Don't paste credentials into prompts
  • Use content exclusion for sensitive files
  • Only use MCP servers from trusted sources
  • BYOK: review the configured provider's data, safety, and retention policies
๐Ÿ’ก Enable Block for suggestions matching public code on supported completion and chat surfaces, then review agentic outputs separately.
Use Cases
Compliance review โ€” point stakeholders to the Trust Center FAQ for SOC 2, GDPR, and data handling evidence
Reduce IP risk โ€” enable public code filter + content exclusion for proprietary algorithms โ†’ dual protection
29

Org & Enterprise Administration

What: Admin controls for assigning Copilot seats, managing features and models, configuring MCP/BYOK/content policies, reviewing usage analytics, and auditing activity. Enterprise and organization policies interact by policy; they are not one universal cascade.
POLICY SCOPES AND CONFLICTS ๐Ÿข Enterprise Enforce or let organizations decide ๐Ÿ›๏ธ Organization Org policies, seats, models, features ๐Ÿ‘ค User Personal settings where permitted ADMIN TOOLS ๐Ÿ“Š Usage analytics ๐Ÿ“‹ Audit logs ๐Ÿ’ฐ AI credit tracking CONFIGURABLE POLICIES Features Models Coding Agent Preview Features Public Code Filter Content Exclusion Seat Management 3rd-Party Agents
Policy Management
PolicyControls
FeaturesChat, completions, agents, MCP
ModelsEnable/disable premium models
Coding agentEnable cloud agent + 3rd-party
Editor previewOpt in to preview features
Public code filterBlock public code matches
Content exclusionExclude files/repos from AI
Web searchAllow Copilot Chat to use Bing
MCP / BYOKControl external tools and custom models
Agent Apps / MemoryEnable separate agent and memory policies
Access Management
  • Assign Copilot seats per user or team
  • Enterprise owners can enforce policies or let organizations decide
  • Organization owners manage seats and organization-scoped settings
  • When users have multiple licenses, conflict rules depend on the policy and billing scope
  • An individual plan is canceled when a Business/Enterprise seat is assigned
  • Global model policy (rolling out through 1 Sep 2026): models you have not configured follow the default policy; explicit choices are kept
  • From 1 Oct 2026, Business and Enterprise seats are charged upfront for card or PayPal billing (announced 28 Aug 2026)
Usage Analytics
  • Dashboards: adoption, code generation, impact, and pull-request outcomes
  • AI credit consumption and seat activity by billing scope
  • Breakdowns by feature, IDE, language, model, repository, and user
  • Export NDJSON or use the usage-metrics API for custom reporting
Audit Logs
  • Track Copilot actions by user
  • Seat assignments, policy changes
  • Available for Business & Enterprise plans
  • Retention and available events depend on the audit-log product and plan
Settings Path
OrgSettings โ†’ Copilot โ†’ Policies / Models
EnterpriseEnterprise settings โ†’ AI controls โ†’ Copilot
๐Ÿ’ก An enterprise policy can enforce a value or allow organizations to decide. Check the policy-conflict rules before documenting a blanket override.
Use Cases
Rollout strategy โ€” enable Copilot for a pilot team, review usage analytics for 30 days, then expand to the full org
Model governance โ€” restrict high-cost frontier models org-wide to control AI credit spend
30

Subagents

What: Isolated child agents that run focused research or execution tasks within a parent agent session. Results return as a summary, while tools, models, nesting, and cost depend on the client and configuration.
SUBAGENTS โ€” SPAWN ยท RUN PARALLEL ยท SUMMARIZE ๐Ÿค– Parent Agent Main conversation context preserved ๐Ÿ” Explore โšก Task ๐Ÿ“ Code-review ๐Ÿ”’ isolated ๐Ÿ”’ isolated ๐Ÿ”’ isolated ๐Ÿ“‹ Summary โ†’ parent EXAMPLE USE CASES ๐Ÿ” 3ร— Explore in parallel auth ยท caching ยท logging โšก Task runs test suite "2/47 failed" โ†’ parent ๐Ÿ“ Review changes quietly no noisy output in chat
Built-in Subagents (client-dependent)
SubagentPurpose
ExploreQuick codebase analysis & Q&A
TaskRun tests/builds, return brief summaries
Code-reviewReview changes, surface real issues
General-purposeGeneral-purpose subagent
ResearchDeep research tasks
How They Work
  • Parent agent spawns subagent for a focused task
  • Subagent runs in isolated context โ€” no pollution
  • Returns a single summary message to parent
  • Can run in parallel for independent tasks
  • By default, subagents cannot spawn further subagents
  • Enable nesting with chat.subagents.allowInvocationsFromSubagents
  • Models and tools can be selected per subagent; subagent work consumes AI credits
When to Use
  • Research a topic without cluttering main chat
  • Run tests and get a pass/fail summary
  • Explore multiple approaches in parallel
Use Cases
Parallel research โ€” agent spawns 3 Explore subagents to investigate auth, caching, and logging patterns simultaneously
Test runner โ€” Task subagent runs full test suite, returns "2 of 47 tests failed: test_auth, test_cache" โ€” no noisy output in main chat
๐Ÿ“š Sources: VS Code Docs โ€” Subagents
31

Copilot Metrics API

What: Copilot usage-metrics APIs provide exportable usage, code-generation, adoption, and pull-request lifecycle reports at enterprise, organization, repository, and user scopes. Use the current report endpoints for new integrations; data is delivered through signed download links and NDJSON exports.
COPILOT USAGE METRICS โ€” REPORTS & SCOPES REST API ENDPOINTS ๐Ÿข Enterprise Daily Report GET /enterprises/{enterprise}/copilot/metrics/ ๐Ÿ›๏ธ Organization Daily Report GET /orgs/{org}/copilot/metrics/... ๐Ÿ‘ฅ User / Repository Reports GET .../reports/users|repos-28-day/latest REPORT STRUCTURE ๐Ÿ“„ Report Metadata report_day: "YYYY-MM-DD" download_links: [...] signed URLs, then NDJSON โŒจ๏ธ Code Generation completions and agent edits suggested / accepted lines by IDE, language, model ๐Ÿ’ฌ Engagement daily / weekly active users requests and feature usage adoption phases ๐Ÿ”€ PR Lifecycle created and merged PRs median time to merge agent/code-review activity ๐Ÿ“ฆ Exports user and repository reports NDJSON for custom BI dashboard + API views BREAKDOWN DIMENSIONS ๐Ÿ“ By Language ๐Ÿ–ฅ๏ธ By Editor ๐Ÿง  By Model ๐Ÿ“ By Repository ๐Ÿ“… By Day ๐Ÿท๏ธ Adoption Phase acceptance_rate = code_acceptance_activity_count / code_generation_activity_count ร— 100
API Endpoints
ScopeEndpoint
Enterprise dailyGET /enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day
Organization dailyGET /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
Request & Download
dayRequired date for 1-day reports: YYYY-MM-DD
28-dayUse *-28-day/latest for the latest 28-day window
download_linksSigned URLs returned by the API for report files
cURL Example
curl -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"
Metrics Returned
CategoryKey Metrics
Code generationSuggestions, acceptances, lines added/deleted โ€” by IDE, language, model
EngagementActive users, requests, features, and adoption phases
Pull requestsCreated/merged counts, review activity, and median time to merge
ReportsUser, repository, organization, enterprise, and user-team exports
Authentication
EnterpriseEnterprise owner, billing manager, or View Enterprise Copilot Metrics permission
OrganizationOrganization owner or View Organization Copilot Metrics permission
Token scopesEnterprise: manage_billing:copilot or read:enterprise; organization: read:org
Requirements
  • Set the Copilot usage metrics policy to Enabled everywhere at enterprise level
  • Data typically finalizes within three full UTC days
  • Daily and latest 28-day reports expose signed download links
  • IDE telemetry provides the richest client-side breakdowns; server-side signals also contribute to active-user totals
  • Teams with fewer than 5 seated Copilot users on a day are omitted from user-team reports
  • Organization-level visibility can use a custom role with the metrics permission
โš ๏ธ The legacy Copilot Metrics API sunset on 2 Apr 2026, and the User-level Feature Engagement and Direct Data Access APIs sunset on 2 Mar 2026. Do not use the old direct daily-array example for new integrations. Use the current Copilot usage metrics report endpoints and read the downloaded NDJSON/schema for the selected report.
Response Schema (Simplified)
{ "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.
Community Tools
copilot-metrics-viewerGitHub resource for visualizing Copilot metrics data
Custom dashboardsPipe API data to Grafana, Power BI, Looker, or Datadog
/usage in CLIQuick session stats in Copilot CLI
Use Cases
ROI dashboard โ€” download daily org metrics โ†’ join daily user and user-team reports for team slices โ†’ calculate comparable activity rates
Identify low adoption โ€” compare active vs engaged users per team โ†’ target training for teams with low engagement rates
Language coverage โ€” break down completions by language โ†’ discover which stacks benefit most from Copilot
32

Code Referencing & Attribution

What: GitHub Copilot can identify code that matches publicly available GitHub code and, on supported surfaces, either block the suggestion or display references with source and license information. It reduces IP risk but does not replace human license review.
CODE REFERENCING โ€” HOW PUBLIC CODE MATCHING WORKS ๐Ÿ’ฌ Copilot Suggests Inline completion or chat response generated ๐Ÿ” Compare ~150 chars Post-model filter checks against public GitHub repos ? ๐Ÿšซ Block Mode Suggestion hidden from user โŒ User never sees match Reduces exposure on supported surfaces โœ… Allow + Reference Suggestion shown with attribution ๐Ÿ“‹ License + repo URL shown User reviews & decides WHAT A CODE REFERENCE LOOKS LIKE โŒจ๏ธ INLINE COMPLETION โ€” Code References Log 2026-03-24 14:23:55 [info] Similar code at [Ln 12, Col 4] let i = 1; i <= 100; i++) { let output... License: MIT URL: github.com/octo-org/repo/blob/.../fizz.js View: Output โ†’ "GitHub Copilot Log (Code References)" ๐Ÿ’ฌ CHAT โ€” Inline Reference Banner Copilot generates a code response... function fizzBuzz() { for (let i = 1; i <= 100; i++) { ... ๐Ÿ“‹ Similar code found with 2 license types โ€” View matches Configure: Personal Settings โ†’ Suggestions matching public code โ†’ Allow or Block | Org: Copilot Policies
Two Modes
ModeBehavior
BlockOn 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.
AllowSuggestions are shown with references โ€” source repo URL, license type, and code snippet displayed.
Where References Appear
  • Inline completions โ€” Output panel โ†’ "GitHub Copilot Log (Code References)"
  • Chat responses โ€” banner at bottom: "Similar code found โ€” View matches"
  • Click View matches โ†’ new tab with license, URL, and code snippet
  • Ctrl+click / Cmd+click URL โ†’ view full source file on GitHub
Reference Details
LicenseMIT, Apache-2.0, GPL, or NOASSERTION
URLDirect link to matching file on GitHub
Code snippetThe matching public code excerpt
LocationLine & column where suggestion was inserted
How to Configure
  • Individual: Profile โ†’ Copilot Settings โ†’ "Suggestions matching public code" โ†’ Allow or Block
  • Organization: Org Settings โ†’ Copilot โ†’ Policies โ†’ "Suggestions matching public code"
  • Enterprise: Enterprise Settings โ†’ Copilot โ†’ Policies (overrides org setting)
๐Ÿ’ก Verify code referencing works by typing function fizzBuzz() โ€” a common implementation will match and show references in the log.
โš ๏ธ Org/enterprise members inherit the organization's policy and cannot override it in personal settings.
Use Cases
IP-aware development โ€” enable Block mode on supported completion/chat surfaces and review agentic outputs separately
Attribution workflow โ€” enable Allow mode + review references before committing โ†’ add license headers where required
Open-source compliance โ€” check if matched code uses GPL โ†’ decide whether to accept or rewrite to avoid copyleft obligations
33

Copilot Autofix & Advanced Security

What: Copilot Autofix generates a proposed fix and explanation for supported CodeQL code-scanning alerts and supported Code Quality findings on pull requests and the default branch. It does not require a GitHub Copilot subscription; private-repository access depends on the relevant Code Security or Code Quality entitlement and policy. Generic secret detection and Dependabot remain separate features.
COPILOT AUTOFIX โ€” AUTOMATED SECURITY REMEDIATION PR SECURITY PIPELINE ๐Ÿ”€ Push / PR Code changes submitted ๐Ÿ” CodeQL Scans SARIF analysis finds SQL injection alert ๐Ÿค– Autofix Generates LLM generates fix + natural language explanation ๐Ÿ‘€ Dev Reviews Review diff, edit if needed, commit fix โœ… Alert Resolved Vulnerability fixed, CI passes, PR merges SECURITY + QUALITY FEATURES โ€” WHERE AUTOFIX APPLIES ๐Ÿ” Code Scanning (CodeQL) Static analysis for vulnerabilities โ€ข SQL injection, XSS, path traversal โ€ข SARIF format alerts on PRs โ†’ Autofix generates code patches ๐Ÿ”‘ Secret Scanning Detects leaked credentials โ€ข API keys, tokens, passwords โ€ข Push protection blocks commits โ†’ Generic secret detection is separate ๐Ÿ“ฆ Dependabot Vulnerable dependency alerts โ€ข CVE-based advisory matching โ€ข Auto-PRs to bump versions โ†’ Dependabot updates are separate ๐Ÿค– Copilot Autofix AI fixes for CodeQL + Code Quality โ€ข Code + explanation generated โ€ข No Copilot subscription required โ€ข Review every proposed change SUPPORTED LANGUAGES (CodeQL + AUTOFIX) JavaScript TypeScript Python Java Kotlin Go C# C/C++ Ruby Swift Rust No Copilot subscription required Works on: Public repos (free) ยท Org repos with GitHub Code Security ยท PRs + existing alerts on default branch
How It Works
  • CodeQL scans PR โ†’ detects security vulnerability (SARIF format)
  • Alert + code context sent to LLM via internal Copilot APIs
  • Fix generated โ€” code patch + natural language explanation
  • Displayed on PR โ€” click to view diff, edit, and commit
  • Also available for existing alerts on default branch
Where to Find Autofix
PR alertsCode scanning alert โ†’ "Generate fix" button
Security tabRepo โ†’ Security โ†’ Code scanning alerts
Security overviewOrg dashboard โ†’ autofix suggestion counts
Availability
Repo TypeAutofix Access
Public reposFree
Org repos (GitHub Code Security)Included
Enterprise/org reposCode Security
Advanced Security Integration
FeatureAutofix Role
Code ScanningGenerates code patches for CodeQL alerts (SQL injection, XSS, etc.)
Secret ScanningSeparate AI detection and alerting; Autofix does not rotate secrets
DependabotSeparate dependency alerts and update PRs; review dependency changes normally
Code QualityCopilot Autofix can suggest fixes for supported quality findings
Security OverviewDashboard metrics include Copilot Autofix suggestions on pull requests
What Autofix Sends to the LLM
  • CodeQL alert data (SARIF format)
  • Code snippets around source, sink, & flow path
  • First ~10 lines of each involved file
  • CodeQL query help text
Configuration
Enable/disableRepo / Org / Enterprise settings
DefaultAllowed and enabled for repositories using CodeQL; admins can disable it
โš ๏ธ Always verify fixes โ€” Autofix may suggest partial fixes, incorrect locations, or dependency changes. Run CI tests before merging.
๐Ÿ’ก Data is not used for LLM training. Governed by Advanced Security terms, not Copilot terms.
Use Cases
Fix SQL injection on PR โ€” CodeQL detects unsanitized input โ†’ Autofix generates parameterized query patch โ†’ dev reviews diff and commits
Remediate backlog โ€” navigate Security tab โ†’ existing alerts on default branch โ†’ click "Generate fix" โ†’ create a PR with the suggested patch
Org-wide metrics โ€” Security overview reports the number of Copilot Autofix suggestions on open and closed pull requests over a selected period
34

Chat Debug View VS Code

What: The Chat Debug View shows raw LLM request/response payloads โ€” system prompt, user prompt, context, and tool I/O. For the full Agent Debug Log panel with event timeline, flow charts, and cache explorer, see Section 36.
TWO DEBUGGING TOOLS โ€” SEE EXACTLY WHAT COPILOT SEES ๐Ÿ”ฌ CHAT DEBUG VIEW โ€” Raw LLM Data โ‹ฏ menu โ†’ Show Chat Debug View or Developer: Show Chat Debug View EXPANDABLE SECTIONS PER REQUEST: โ–ธ System Prompt Full instructions defining AI behavior โ€” verify custom instructions, agent descriptions, skills loaded โ–ธ User Prompt Exact text sent to model โ€” confirm #mentions resolved, prompt files expanded, variables filled โ–ธ Context Files, symbols, attachments โ€” check if expected files appear ('#file'), context window full โ–ธ Response Raw model output + reasoning โ–ธ Tool Responses Input/output for each tool call Best for: inspecting exact prompts, verifying context, debugging MCP tool I/O ๐Ÿ“Š AGENT DEBUG LOG โ€” Event Timeline โ‹ฏ menu โ†’ Show Agent Debug Logs (enable fileLogging.enabled) THREE VIEWS: ๐Ÿ“‹ Logs Chronological events Filter by type ๐Ÿ“Š Summary Token usage, tool count Duration, errors ๐Ÿ”€ Flow Chart Agent โ†” subagent Visual orchestration EVENT TYPES IN LOG: LLM Requests Tool Calls Discovery Errors All โœจ Attach to Chat Ask AI about its own session ๐Ÿ“ค Export / Import OTLP JSON โ€” share sessions Best for: timeline analysis, token budgets, custom agent/subagent debugging Quick alternative: /troubleshoot + question โ†’ AI analyzes its own debug logs (e.g. "/troubleshoot list loaded instructions")
Chat Debug View (Raw Data)
SectionWhat It Shows
System PromptFull instructions, agent description, loaded skills โ€” verify custom instructions appear
User PromptExact text sent to model โ€” confirm #-mentions resolved to real content
ContextFiles, symbols, attachments โ€” check if expected files are included or context window is full
ResponseRaw model output including reasoning โ€” understand how model interpreted your request
Tool ResponsesInput/output for each tool call โ€” debug MCP servers, verify correct payloads
How to Open
Chat Debug ViewChat โ‹ฏ menu โ†’ Show Chat Debug View
Command PaletteDeveloper: Show Chat Debug View
Agent Debug Log Panel Preview
ViewWhat It Shows
LogsChronological events โ€” LLM requests, tool calls, discovery, errors. Filter by type.
SummaryAggregate stats โ€” total tool calls, token usage, error count, duration
Flow ChartVisual agent โ†” subagent interaction graph โ€” pan, zoom, click nodes
How to Open
Enable settinggithub.copilot.chat.agentDebugLog.fileLogging.enabled
Gear iconChat โš™๏ธ โ†’ Show Agent Debug Logs
Command PaletteDeveloper: Open Agent Debug Logs
Extra Features
  • Attach to chat โ€” sparkle icon โ†’ ask AI about its own session
  • Export/Import โ€” OTLP JSON format, share sessions offline
  • /troubleshoot โ€” ask AI directly: /troubleshoot list loaded instructions
Common Troubleshooting Scenarios
ProblemWhere to LookWhat to Check
AI ignores workspace filesAgent Logs โ†’ Discovery events + Chat Debug โ†’ ContextWorkspace indexed? Files in context window?
MCP tool not invokedAgent Logs โ†’ Tool Calls filter + Chat Debug โ†’ System PromptTool listed in available tools? Server running?
Response truncatedAgent Logs โ†’ LLM Requests โ†’ token usageContext window full? Start a new session.
Prompt file not appliedAgent Logs โ†’ Discovery eventsFile loaded/skipped? applyTo glob match?
Custom instructions missingChat Debug โ†’ System Prompt sectionExpand and search for your instruction text
๐Ÿ’ก Set log level to Trace for maximum detail: Command Palette โ†’ Developer: Set Log Level โ†’ select Trace for GitHub Copilot and GitHub Copilot Chat extensions.
Use Cases
Debug missing instructions โ€” open Chat Debug View โ†’ expand System Prompt โ†’ search for your copilot-instructions.md text โ†’ confirm it was loaded
Optimize token usage โ€” open Agent Debug Logs โ†’ Summary view โ†’ check token consumption โ†’ identify if context window is being wasted on irrelevant files
Debug multi-agent flow โ€” open Agent Flow Chart โ†’ visualize parent โ†’ subagent โ†’ tool call sequence โ†’ identify where the chain breaks
35

Permission Levels & Approvals VS Code

What: Control how much autonomy agents have โ€” from approving every tool call to fully autonomous operation. Permission levels sit on top of finer-grained tool, URL, terminal, and sandbox controls.
PERMISSION LEVELS โ€” CONTROL AGENT AUTONOMY ๐Ÿ›ก๏ธ Manual permissions Uses your tool, URL, and terminal approval settings. Tools show confirmation before running. โšก Assisted permissions LLM judge assesses each tool call. Agent Host sessions only. โšก Allow all Runs all tool calls without confirmation. Sandbox still applies to terminal commands. โ—€ โ–ถ SAFE AUTONOMOUS AGENT AUTONOMY โ†’ Configure default: chat.permissions.default ยท Autopilot is an agent mode, not a permission level ยท Change per session in the chat input
Permission Levels & Agent Mode
Level / modeTool ApprovalQuestions
Manual permissions (default)Uses tool, URL, and terminal approval settingsAgent asks you
Assisted permissionsLLM judge evaluates risk; may show dialogAgent asks you
Allow allRuns all tool calls without confirmation, except managed rulesAgent asks you
AutopilotAgent mode; auto-approves toolsAgent auto-responds
Autopilot Behavior
  • Continuous iteration โ€” keeps working until task is complete
  • Auto-approve all tools โ€” no confirmation dialogs
  • Auto-retry on errors โ€” recovers without asking
  • Auto-respond to questions โ€” never stalls waiting for input
โš ๏ธ Allow all and Autopilot skip manual approval prompts and override session-level fine-grained settings for eligible operations. Organization-managed rules can still require approval or block operations, including destructive actions.
Fine-Grained Controls
ControlSetting
Tool approvalchat.tools.eligibleForAutoApproval
URL approvalchat.tools.urls.autoApprove
Terminal commandschat.tools.terminal.autoApprove
Sandboxingchat.agent.sandbox.enabled
Sandbox Modes
offNo sandboxing (default)
onFile system and network isolation; outbound network blocked unless allowed
allowNetworkchat.agent.sandbox.allowNetwork=true permits outbound network while sandboxing stays on
URL Approval Flow
  • Pre-approval โ€” approves the request to the URL
  • Post-approval โ€” reviews fetched content before adding to context
  • Pattern-based auto-approval via chat.tools.urls.autoApprove
Use Cases
Safe exploration โ€” use Manual permissions when working with unfamiliar code or MCP servers
Trusted automation โ€” use Autopilot for well-defined tasks in trusted repos with sandbox enabled for safety
36

Agent Debug Logs & Chat Debug View VS Code Preview

What: Two complementary tools to inspect exactly what Copilot sees โ€” the Agent Debug Log panel shows a chronological event timeline with 4 views (Logs, Summary, Flow Chart, Cache Explorer), while the Chat Debug View shows raw LLM request/response payloads.
Agent Debug Log Panel Preview
Enablegithub.copilot.chat.agentDebugLog.fileLogging.enabled
OpenChat โ‹ฏ โ†’ Show Agent Debug Logs
4 Views
ViewWhat It Shows
LogsChronological events โ€” LLM requests, tool calls, discovery, errors. Filter by type. Flat or tree view grouped by subagent.
SummaryAggregate stats โ€” total tool calls, token usage, error count, duration.
Flow ChartVisual agent โ†” subagent interaction graph. Pan, zoom, click nodes for details.
Cache ExplorerSide-by-side diff of consecutive model requests that pinpoints prompt-cache divergence.
Key Features
  • Attach to chat โ€” sparkle icon โ†’ ask AI about its own session
  • Export/Import โ€” OTLP JSON format for offline sharing
  • Historical sessions โ€” logs persisted locally on disk
  • /troubleshoot โ€” ask AI directly about debug logs; requires github.copilot.chat.fileLogging.enabled
Chat Debug View (Raw Data)
OpenChat โ‹ฏ โ†’ Show Chat Debug View
SectionWhat to Check
System PromptVerify custom instructions, agent descriptions, skills loaded
User PromptConfirm #mentions resolved, variables filled
ContextCheck expected files included, context window not full
ResponseRaw model output including reasoning
Tool ResponsesInput/output for each tool call (debug MCP)
Common Troubleshooting
ProblemWhere to Look
AI ignores workspace filesAgent Logs โ†’ Discovery events + Chat Debug โ†’ Context
MCP tool not invokedAgent Logs โ†’ Tool Calls + Chat Debug โ†’ System Prompt
Response truncatedAgent Logs โ†’ LLM Requests โ†’ token usage
Instructions missingAgent Logs โ†’ Discovery events + Chat Debug โ†’ System Prompt
Cache missesCache Explorer โ†’ divergence point in prompt signature
Use Cases
Debug custom agent โ€” open Flow Chart โ†’ visualize parent โ†’ subagent โ†’ tool call sequence โ†’ identify where the chain breaks
Optimize token costs โ€” Cache Explorer โ†’ find divergence points causing cache misses โ†’ restructure instructions to improve cache hit rate
37

GitHub Copilot Memory Public Preview

What: Copilot Memory stores useful repository facts and personal preferences so later agent interactions can use validated context. It is enabled per user, not per repository, and is currently in public preview.
Memory Types
TypeScope and behavior
Repository factsConventions, architecture, build commands, and project rules; citations are checked against the current branch before use.
User preferencesPersonal interaction and coding preferences; available only in that user's later Copilot interactions.
Feature surfacesCloud agent, code review, CLI, and agentic autofix. Code review uses repository facts only; CLI uses facts plus the initiating user's preferences.
Controls and Retention
  • Individual plans have Memory on by default; Business and Enterprise administrators must enable the policy before users can opt out.
  • Repository facts are usable only in the repository where they were learned and can be reviewed or deleted by repository owners.
  • Users can view and delete their own preferences. Business and Enterprise administrators can manage organization-owned preferences.
  • An unused entry is automatically deleted after 28 days; successful validation and use can reset the timer.
Use Cases
Onboard an existing codebase โ€” let validated repository facts reduce repeated explanations without treating Memory as a replacement for explicit instructions
Keep reviews consistent โ€” record repository conventions so code review can apply them across pull requests
38

GitHub Copilot App

What: The GitHub Copilot app is a desktop control surface for agent-driven development. It is built on GitHub Copilot CLI, connects to GitHub natively, and is available on macOS, Linux, and Windows for all Copilot plans.
Workflow
  1. Browse an issue or start from a blank workspace.
  2. Choose Interactive, Plan, or Autopilot, then select a model and reasoning effort.
  3. Run the task in an isolated worktree and branch, review the changes, and iterate.
  4. Create a pull request, review it, inspect CI, and merge from the app.
Distinctive Features
FeatureUse
Parallel workspacesRun multiple agent sessions with separate worktrees and branches.
Cloud sandboxStart a session in a GitHub-hosted cloud sandbox; this option is public preview.
GitHub integrationBrowse issues, manage pull requests, inspect CI, and search repositories.
Chats and canvasesScope ideas without a dedicated branch, or collaborate on agent-driven interfaces.
UsageModel interactions consume AI credits; use the app's model and mode choices deliberately.
Recent updatesLocal sandboxing (23 Sep 2026), OpenTelemetry (22 Sep 2026), and dynamic workflows (1 Oct 2026).
Use Cases
Coordinate parallel fixes โ€” isolate unrelated issues into separate branches and review each result in one workspace
Move work to a desktop workflow โ€” run copilot app from the terminal to open the Copilot app for parallel worktrees, pull requests, and CI
39

Copilot Automations Cloud Agent

What: Automations run Copilot cloud agent automatically on a schedule or in response to repository events. They are available for private and internal repositories when cloud agent and the required organization policies are enabled; public repositories are not supported. VS Code also has Automations (preview) for scheduled prompts in the Agents window.
Triggers
TriggerExamples
ScheduleHourly, daily, or weekly tasks.
Issue createdTriage or label incoming issues; optional search-query filter.
Pull request openedRun checks or prepare a draft fix; filter by query or changed files.
Pull request synchronizedReact to new commits, with the same optional filters.
Scope, Billing, and Safety
  • Users with write access can create automations; each automation is scoped to one repository.
  • Selected tools define what the run can do. Grant only the actions required by the task.
  • Each run starts a cloud-agent session and consumes GitHub Actions minutes and AI credits, billed to the creator.
  • Automations are private to their creator, but their sessions and logs are visible to people with repository access.
  • Events from users without write access are ignored by default to reduce prompt-injection risk; workflow runs from resulting pull requests still require approval.
Use Cases
Nightly maintenance โ€” run tests on a schedule and open a draft pull request for a proposed fix
Issue triage โ€” classify new issues with a narrow tool set and review the resulting changes
40

Copilot SDK and Agent Client Protocol

What: The GitHub Copilot SDK embeds the agent runtime behind Copilot CLI into applications and services. SDKs are available for Node.js/TypeScript, Python, Go, .NET, Java, and Rust; Copilot CLI's ACP server exposes a standard editor-to-agent protocol and is currently in public preview.
SDK
  • Applications communicate with a Copilot CLI server through JSON-RPC while the SDK manages the CLI process lifecycle.
  • Node.js, Python, and .NET SDKs bundle the CLI; Go, Java, and Rust generally require a CLI installation or an available external server.
  • Standard use requires a GitHub Copilot subscription. BYOK can use supported provider keys without GitHub authentication.
  • Usage follows the Copilot CLI billing model; available models can be queried at runtime.
ACP
ModeStart command and behavior
stdiocopilot --acp --stdio; one client launches the child process and exchanges NDJSON over stdin/stdout.
TCPcopilot --acp --port 3000; clients connect to a longer-lived listener, which binds to loopback by default.
ControlsServer-start options such as --effort and tool filters apply to every session created through that server.
Slash commandsUse commands advertised through available_commands_update; interactive picker commands are not available over ACP.
Use Cases
Embed agentic coding โ€” call the SDK from a service that needs planning, tool use, file edits, and streamed responses
Build an editor adapter โ€” connect an ACP-compatible client to Copilot CLI without creating a custom agent protocol
41

GitHub Copilot Code Review

What: Code review is a dedicated review experience for pull requests and local changes. It is available on GitHub.com, GitHub CLI, GitHub Mobile, VS Code, Visual Studio, Xcode, and JetBrains IDEs; Azure DevOps support is public preview.
Review Controls
ControlCurrent behavior
ModelModel switching is not supported. Code review uses a purpose-built model and prompt mix; Copilot Chat model policy does not control it.
EffortBalanced 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 statusCopilot 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 reviewRepositories can review new pull requests, new pushes, and optionally draft pull requests.
Context and Cost
  • Repository instructions, AGENTS.md, path-specific instructions, skills, and configured MCP servers can improve review context.
  • Review reads customization from the pull request's head branch, not the base branch.
  • Agentic capabilities use GitHub Actions runners for project context gathering and cloud-agent handoff; standard, larger, and self-hosted runner options have different billing.
  • Each review consumes AI credits based on model calls and tokens. Review comments are suggestions, not proof that a change is correct.
  • Some files, including dependency-management, log, and SVG files, are excluded from review.
Use Cases
Review before merge โ€” request Copilot, inspect every comment, run tests, and keep a human reviewer in the approval path
Extend review context โ€” use path-specific instructions or a review-focused skill for repository-specific checks
42

Cloud-Agent Environment Security

What: Copilot cloud agent works in an ephemeral GitHub Actions-powered development environment. Treat runner choice, setup steps, firewall rules, secrets, network access, and workflow approvals as part of the agent's security boundary.
Environment Setup
AreaRule
Setup file.github/workflows/copilot-setup-steps.yml must be on the default branch and contain one job named copilot-setup-steps.
Allowed job keysCustomize steps, permissions, runs-on, services, snapshot, and timeout-minutes.
RuntimeDefault is Ubuntu Linux; the maximum setup or session timeout is 59 minutes.
Failure behaviorA setup step returning a non-zero exit code skips remaining setup steps and lets the agent continue with the current environment.
Security Checklist
  • Use repository secrets and variables for sensitive values; do not put secrets in prompts or automation text.
  • Use the integrated firewall or controlled runner network access. Self-hosted runners should be ephemeral and single-use.
  • The integrated firewall is not compatible with self-hosted runners or Windows; use your own network controls with those options.
  • Keep workflow permissions minimal. A pull request opened by an agent does not automatically run privileged workflows until a user with write access approves it.
  • Larger or self-hosted runners can reach private resources, so isolate them and audit their network and credential exposure.
Use Cases
Reproducible builds โ€” preinstall dependencies in setup steps and keep the agent's permissions read-only where possible
Private-network work โ€” use larger runners with private networking or tightly controlled ephemeral self-hosted runners
43

Agent Apps and Partner Agents Public Preview

What: Agent apps are GitHub Apps that expose partner-built agents on GitHub. They are powered by Copilot cloud agent and are a separate category from the supported third-party coding agents such as Anthropic Claude and OpenAI Codex.
Where and How
  • Start an agent app from issue assignment, a pull request comment mentioning @AGENT-NAME, or the Agents UI on GitHub.com and GitHub Mobile.
  • Each app can define its own prompt, model, tools, and MCP servers.
  • Partner MCP servers can use a GitHub-issued JWT assertion to identify the account and app without asking users to manage another credential.
  • The first use requires an OAuth authorization flow so the app can act on the user's behalf.
Enablement and Billing
RequirementMeaning
Install the GitHub AppInstall it on the account or organization and opt in to its agent features.
Enterprise policyFor enterprise-owned organizations, an administrator must enable the Agent apps policy.
SecurityThe app can access partner functionality and configured tools; review requested permissions before authorizing.
BillingSessions consume AI credits like Copilot cloud agent and are charged to the Copilot subscription.
Use Cases
Bring domain tools into GitHub โ€” delegate analytics, security, or feature-flag work to a partner agent from an issue or pull request
Separate trust decisions โ€” review GitHub App permissions and organization policies independently from local IDE agents
44

Model Hosting, Retention, and Residency Version-sensitive

What: Model choice can change the hosting provider, retention agreement, data-residency options, and enterprise policy compatibility. Do not turn a provider-specific commitment into a blanket privacy promise for every Copilot surface.
Model familyCurrent hosting and retention notes
OpenAIHosted by OpenAI and GitHub Azure infrastructure; GitHub maintains a zero-data-retention agreement with OpenAI.
AnthropicHosted 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.
GoogleHosted 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.
xAIOperates under a zero-data-retention API policy; content exists temporarily in memory to process the request.
MicrosoftMAI 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 modelsKimi models are hosted by GitHub-managed infrastructure and providers; prompts and completions are not sent to Moonshot AI, the original developer.
Inline suggestionsHosting differs by plan; Business and Enterprise inline models are hosted on Azure, while Free and Student models are hosted on Fireworks AI.
Enterprise check: Data residency and FedRAMP restrictions are policy- and model-specific. Check the current hosting and supported-model pages before enabling a model, especially one outside the provider agreements used by your organization.
Use Cases
Choose a compliant model โ€” compare provider hosting and organizational model policy before placing regulated code in a model route
Audit individual-plan settings โ€” review the model-training opt-out rather than assuming the Business/Enterprise policy applies
45

Model Lifecycle and Extended Capabilities Version-sensitive

What: Model availability is surface-, plan-, policy-, and version-dependent. Separate stable base/LTS behavior from evaluation models and from optional capabilities such as long context, configurable reasoning, and prompt caching.
TopicCurrent rule
Base modelFor 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 modelBusiness and Enterprise LTS models are supported for one year from designation; GPT-5.3-Codex is the current LTS model.
Evaluation modelsMay 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 contextAvailable only in VS Code and Copilot CLI for supported models; larger context consumes more tokens and AI credits.
Reasoning levelsAvailable in VS Code, Copilot CLI, and cloud agent for supported models; higher effort generally increases latency and credit use.
Prompt cachingProviders may reuse matching prompt prefixes. Cache reads, cache writes, retention, and pricing are model-specific, so inspect the current pricing table.
Use Cases
Keep enterprise defaults stable โ€” pin policy-approved models or use the base/LTS model when long-term support matters
Spend credits deliberately โ€” use standard context and reasoning by default; raise them only for tasks that need more analysis
46

AI-Credit Cost Controls

What: One GitHub AI Credit equals $0.01 USD. Cost depends on the model and input, output, and cached-token usage. Control spend with model selection, context and reasoning choices, session limits, budgets, and Actions-minute governance.
Individual Controls
  • Paid plans receive a 10% model-cost discount when using Auto model selection in Copilot Chat, CLI, the GitHub Copilot app, or cloud agent.
  • Use lighter models for simple edits and higher-capability models for complex reasoning. Long context and higher reasoning use more credits.
  • Copilot CLI supports a per-response soft limit with --max-ai-credits or /limits set max-ai-credits VALUE.
  • Included credits reset monthly and do not carry over. Additional usage requires a budget and can be capped.
  • Individual user budgets can have an expiration date (since 1 Sep 2026); budget increase requests are generally available (since 16 Sep 2026).
Organization and Enterprise Controls
ControlScope
User-level budgetHard stop for one user's total AI-credit consumption across shared-pool and metered phases.
Cost-center budgetCaps metered charges for a group after the shared pool is exhausted; optional stop behavior.
Organization budgetCaps metered charges for seats billed to that organization.
Enterprise budgetCaps enterprise-wide metered charges after the pool is exhausted; it is not the total monthly bill.
Important: User-level budgets always stop usage and there is no automatic fallback to a cheaper model when a budget is reached. Cloud agent, code review, and automations can also consume GitHub Actions minutes, which are separate from AI credits.
Use Cases
Protect a team budget โ€” combine a user-level hard cap with a cost-center or enterprise metered-spend limit
Reduce avoidable spend โ€” start with Auto or a lighter model, compact long chats, and inspect cache usage before raising limits
47

Usage Dashboards and Adoption Cohorts

What: GitHub Copilot usage reporting now combines dashboards, daily and 28-day report APIs, and NDJSON exports. The dashboard family covers usage trends, code generation, adoption cohorts, and pull-request impact.
Dashboard Views
ViewQuestion it answers
Usage metricsHow are users engaging across supported IDE, CLI, and agent-app activity?
Code generationHow much code is suggested, added, or deleted, and by which features?
ImpactHow do adoption cohorts and feature engagement relate to pull-request output and time to merge?
NDJSON exportHow can raw metrics be stored or joined in a custom BI pipeline?
Interpretation Rules
  • Adoption cohorts use a trailing 28-day window and require at least two active days for a phase.
  • Client telemetry provides the richest feature and lines-of-code breakdowns, while server telemetry can preserve active-user totals when client telemetry is unavailable.
  • GitHub.com Chat and GitHub Mobile activity are not included in Copilot usage metrics reports.
  • Data is normally available within two full UTC days. Organization totals and enterprise totals have different attribution and deduplication rules.
  • Metrics endpoints require the relevant Copilot usage metrics policy and organization or enterprise permissions.
Use Cases
Measure adoption depth โ€” compare Passive, Code First, Agent First, and Multi-agent cohorts rather than relying only on active-user counts
Build a BI pipeline โ€” download signed NDJSON reports, retain the report date, and document scope and attribution before comparing periods
48

GitHub Code Security AI Features

What: GitHub's security and quality AI features are related but distinct. Separate Copilot Autofix for CodeQL alerts and Code Quality findings from generic secret detection, the custom-pattern regex generator, and Dependabot dependency updates.
FeatureWhat it doesImportant boundary
Copilot AutofixGenerates 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 QualityCombines 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 detectionUses 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 generatorTurns 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.
DependabotMatches vulnerable dependencies and can open version-update pull requests.Dependency alerts and update PRs are separate from Copilot Autofix and generic secret detection.
Review requirement: AI output can be incomplete, syntactically invalid, semantically wrong, or introduce a new vulnerability or dependency risk. Keep human review, CI, and dependency checks in the acceptance path.
Use Cases
Remediate a CodeQL alert โ€” inspect the Autofix diff, run tests and CodeQL again, then commit only a verified change
Define a secret pattern โ€” describe the format, compare generated regexes, and validate with a repository or organization dry run
49

Copilot CLI Plugins, LSP, and Remote Control

What: Copilot CLI can be extended with plugins, marketplaces, skills, MCP servers, language servers, and CLI extensions. It can also export or expose a session for remote control; these features do not provide general offline model execution.
Plugin and Intelligence Surface
SurfaceUseful commands
Pluginscopilot 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.
ExtensionsPackage tools and slash commands with the SDK; manage them through the CLI extension commands.
Remote and Offline Boundaries
  • --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.
  • Local sandboxing controls filesystem and network access for commands and local servers; it does not run the Copilot model offline.
  • Copilot CLI can discover local models for /model (added 7 Oct 2026).
  • BYOK can route requests to a supported provider with your key, but the provider still needs network connectivity and its own terms apply.
  • Review plugin, extension, MCP, and LSP code before enabling repository-controlled components.
Use Cases
Package a team workflow โ€” distribute a plugin marketplace entry containing skills, MCP servers, and helper commands
Steer from another device โ€” start a remote-enabled CLI session, then monitor or guide it from GitHub.com or Mobile
50

GitHub Copilot Integrations and Entry Points

What: GitHub Copilot has several GitHub-native entry points plus external integrations. They share concepts but not identical permissions, context, billing, or availability, so identify the surface before documenting a workflow.
SurfaceWhat it enablesBoundary to remember
IssuesAssign 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 requestsMention @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 ActionsRun 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 MobileStart or monitor agent work and request code review from a pull request.Mobile activity is not included in Copilot usage metrics reports.
Copilot appManage 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 TerminalHost 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 toolsCloud 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.
Use Cases
Choose the right entry point โ€” use Issues for backlog delegation, pull requests for review or iteration, and the CLI or app for interactive control
Trace a cost โ€” record the surface, model, AI credits, Actions minutes, and billing owner for every automated workflow
โ˜…

Quick Reference & Resources

What: Essential keyboard shortcuts, AI-powered slash commands for creating customizations, and key links to documentation, changelogs, and community resources.
Chat Shortcuts
ShortcutAction
โŒƒโŒ˜I / Ctrl+Alt+IOpen Chat panel
โŒ˜N / Ctrl+NStart a new chat
โ‡งโŒฅโŒ˜L / Ctrl+Shift+Alt+LOpen Quick Chat
โŒ˜I / Ctrl+IInline chat
โŒ˜โ‡งIToggle secondary sidebar
TabAccept suggestion
EscDismiss suggestion
Alt+] / Alt+[Next / prev suggestion
Ctrl+โ†’Accept word by word
Useful Extensions
Awesome CopilotCurated tips & resources ยท โ†— Link
Prompt BoostEnhance your prompts ยท โ†— Link
Token TrackerTrack Copilot usage ยท โ†— Link
SpecStorySave & search AI chat history ยท โ†— Link
HuggingFaceHF models in VS Code ยท โ†— Link
Quick Commands
CommandAction
/initGenerate workspace instructions
/explainExplain selected code
/fixFix problems in code
/testsGenerate unit tests
/newScaffold a new project
/clearStart a new chat session
/helpCopilot quick reference
Key Resources
Feature MatrixCopilot feature comparison ยท โ†— Link
MCP MarketplaceDiscover MCP servers ยท โ†— Link
Skills RepositoryBrowse agent skills ยท โ†— Link
ChangelogLatest Copilot updates ยท โ†— Link
awesome-copilotCommunity resources ยท โ†— Link
Use Cases
Fast navigation โ€” memorize โŒƒโŒ˜I (open chat) + โŒ˜I (inline chat) + Tab (accept) for fluid keyboard-only workflow
Stay current โ€” check github.blog/changelog/copilot weekly for new models, features, and API changes
๐Ÿ“š Sources: GitHub Copilot Docs · Changelog