Answer: Repository-wide custom instructions are specified in a copilot-instructions.md file in the .github directory of the repository. Path-specific custom instructions are specified in one or more NAME.instructions.md files within or below the .github/instructions directory. Status: Confirmed Entry: tool/github-copilot/memory-and-context/repository-custom-instructions Revision: 3 Digest: sha256:afb14d0d8b7775d2 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:21:16Z Last changed: 2026-11-19T12:51:38Z (agent instruction files: — → AGENTS.md) Last verified: 2026-11-20T12:57:43Z Next check: 2026-11-21T12:57:43Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of repository-wide file | copilot-instructions.md | [1] | 2026-11-20 repository-wide location | .github | [1] | 2026-11-20 path-specific file | NAME.instructions.md | [1] | 2026-11-20 path-specific location | .github/instructions | [1] | 2026-11-20 agent instruction files | AGENTS.md | [1] | 2026-11-20 Sources: [1] GitHub. "Custom instructions for GitHub Copilot - GitHub Docs". https://docs.github.com/en/copilot/concepts/prompting-and-context/custom-instructions Role: primary. Accessed: 2026-11-20T12:57:43Z Quote: "These are specified in a copilot-instructions.md file in the .github directory of the repository." (Supports: repository-wide file, repository-wide location) Quote: "These are specified in one or more NAME.instructions.md files within or below the .github/instructions directory in the repository." (Supports: path-specific file, path-specific location) Quote: "These are specified in files called AGENTS.md , CLAUDE.md , or GEMINI.md ." (Supports: agent instruction files) Snapshot SHA-256: e031d68375c8c6a613bf9e2bca814949342ebe228a2f502f0eee0c2fcd78bf5d (captured 2026-11-18T12:51:25Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T12:51:26Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:57:43Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:57:43Z Last attempt: 2026-11-20T12:57:43Z Notes and limitations: Extracted automatically from a single official source (section "About repository custom instructions"). Related: https://latestn.com/tool/github-copilot/memory-and-context/repository-custom-instructions-2 How do I add custom instructions to a repository for GitHub Copilot? https://latestn.com/tool/github-copilot/memory-and-context/repository-indexing How do I index repositories for GitHub Copilot? https://latestn.com/tool/github-copilot/memory-and-context/semantic-search-copilot-chat How does semantic code search work in GitHub Copilot Chat? https://latestn.com/tool/github-copilot/memory-and-context/path-specific-custom-instructions-file How do I create a custom instructions file in GitHub Copilot that applies only to HTML files? https://latestn.com/tool/github-copilot/memory-and-context/personal-custom-instructions How do I set up personal custom instructions in GitHub Copilot? https://latestn.com/tool/github-copilot/memory-and-context/provide-relevant-context How do I give GitHub Copilot relevant context in my prompts? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:51:38Z | changed | agent instruction files: — → AGENTS.md | [1] 2026-11-19T12:51:38Z | changed | path-specific file: — → NAME.instructions.md | [1] 2026-11-19T12:51:38Z | changed | agent instruction filenames: AGENTS.md → — | [1] 2026-11-19T12:51:38Z | changed | path-specific file pattern: NAME.instructions.md → — | [1] 2026-11-17T13:12:34Z | changed | agent instruction filenames: — → AGENTS.md | [1] 2026-11-17T13:12:34Z | changed | path-specific location: — → .github/instructions | [1] 2026-11-17T13:12:34Z | changed | path-specific file pattern: — → NAME.instructions.md | [1] 2026-11-17T13:12:34Z | changed | repository-wide location: — → .github | [1] 2026-11-17T13:12:34Z | changed | repository-wide file: — → copilot-instructions.md | [1] 2026-11-17T13:12:34Z | changed | Agent instruction files: AGENTS.md → — | [1] 2026-11-17T13:12:34Z | changed | Path-specific location: .github/instructions → — | [1] 2026-11-17T13:12:34Z | changed | Path-specific file: NAME.instructions.md → — | [1] 2026-11-17T13:12:34Z | changed | Repository-wide location: .github → — | [1] 2026-11-17T13:12:34Z | changed | Repository-wide file: copilot-instructions.md → — | [1] 2026-11-13T03:21:16Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/memory-and-context/repository-custom-instructions/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/memory-and-context/repository-custom-instructions POST: https://latestn.com/dispute/tool/github-copilot/memory-and-context/repository-custom-instructions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/memory-and-context/repository-custom-instructions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set up repository custom instructions for GitHub Copilot? Revision 3, last verified 2026-11-20T12:57:43Z. https://latestn.com/tool/github-copilot/memory-and-context/repository-custom-instructions (accessed 2026-11-21T09:59:35Z). @misc{LatestN_tool_github_copilot_memory_and_context_repository_custom_instructions_r3, title = {How do I set up repository custom instructions for GitHub Copilot?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/memory-and-context/repository-custom-instructions}}, note = {Revision 3; digest sha256:afb14d0d8b7775d2; last verified 2026-11-20T12:57:43Z; accessed 2026-11-21T09:59:35Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/memory-and-context/repository-custom-instructions