Copilot CLI Handbook

Last updated on April 3, 2026 at 4:30 PM EDT

Custom instructions, commands, permissions, agents, hooks, configuration, and MCP for GitHub Copilot CLI

Instruction Files

Copilot CLI can load repository, path-specific, agent, and local instructions from several official file locations. How-to: custom instructions

Common instruction locations

Useful commands and flags

Interactive Commands

Session and navigation

Planning, review, and collaboration

Agents, models, skills, and extensions

Tools, account, and setup

Keyboard shortcuts

Command-Line Commands and Flags

Core commands

Automation and session control

Permissions and safety

UI, output, and logging

MCP and tooling flags

Permission Prompts and Tool Rules

When Copilot CLI asks for permission, these one-key responses are available. Docs: permission approvals

Tool rules use the Kind(argument) pattern. Deny rules always override allow rules. Docs: tool rules

# Allow all git commands except git push
copilot --allow-tool='shell(git:*)' --deny-tool='shell(git push)'

# Allow one MCP tool
copilot --allow-tool='MyMCP(create_issue)'

# Allow all tools from one MCP server
copilot --allow-tool='MyMCP'

Examples adapted from the command reference. Docs: tool rules

Configuration Files

Settings cascade from broader scopes to narrower scopes. Command-line flags and environment variables always win. Docs: config settings

Common user settings

Repository-level settings

Repository settings support shared plugin behavior and startup messaging. Docs: repo settings

Hooks

Hook configuration files live in .github/hooks/*.json in the current working directory. Docs: hooks reference How-to: hooks

What hooks can do

Main hook events

Hook formats

Useful recent hook updates

MCP Servers

Copilot CLI can load MCP servers from several places. Docs: MCP config

Configuration sources

Built-in MCP servers

Transport types

Common fields

Trust model

All MCP tool calls still require explicit permission, including read-only calls against external services. Docs: MCP trust

Skills and Custom Agents

Skills

Skills are Markdown files that extend what Copilot CLI can do. Each skill lives in its own directory with a SKILL.md file. Docs: skills

Built-in skills are now included with the CLI, starting with guides for common tasks. Release: v1.0.17

Common skill locations:

Useful frontmatter fields:

Custom agents

Custom agents are specialized AI agents defined in Markdown files. You can browse them with /agent or select one up front with --agent=AGENT. Docs: custom agents Docs: slash commands Docs: CLI options

Built-in agents currently include:

Custom agent locations:

Useful frontmatter fields:

Environment Variables

Useful environment variables include:

Observability

Copilot CLI can export traces and metrics with OpenTelemetry. Docs: OTel

Recent Additions Worth Knowing

Recent official releases added or improved several user-facing CLI features.

v1.0.17

v1.0.16

v1.0.15

v1.0.14

v1.0.13

Earlier releases

Sources