Instructions
★Spec / stableInstructionsProject (repo)
.github/copilot-instructions.md — repository-wide. Also reads AGENTS.md (treated as primary instructions; CLI + VS Code via chat.useAgentsMdFile, on by default; nested: chat.useNestedAgentsMdFiles, experimental/off by default), CLAUDE.md (and .claude/CLAUDE.md, read by the CLI too) via chat.useClaudeMdFile, GEMINI.md at root. VS Code additionally reads CLAUDE.local.md (workspace) and ~/.claude/CLAUDE.md (user home), and a project-level .claude/rules/ folder (uses a paths key instead of applyTo). Org-wide instructions from GitHub organization settings load via github.copilot.chat.organizationInstructions.enabled. These settings and discovery rules apply to VS Code's Local harness; other harnesses (Claude, Codex, Agent Host) use their own rulesGlobal (user)
$HOME/.copilot/copilot-instructions.md, ~/.copilot/instructions/**/*.instructions.md (CLI and VS Code); $COPILOT_HOME replaces ~/.copilot for both. VS Code additionally: ~/.claude/rules. The chat.instructionsFilesLocations setting (Local harness only, not deprecated but not recommended since the CLI and GitHub Copilot app don't inherit editor settings) adds extra search directories. $COPILOT_CUSTOM_INSTRUCTIONS_DIRS adds extra directories for AGENTS.md and *.instructions.md (CLI)