Answer: Add include-custom-instructions: true to the agent file's frontmatter. This setting only affects the agent when it runs as a subagent; a custom agent you select yourself with --agent or /agent follows your repository's custom instructions by default, unless you use --no-custom-instructions. Status: Confirmed Entry: tool/github-copilot/memory-and-context/apply-custom-instructions-agent Revision: 3 Digest: sha256:b7769f8b871de658 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:24:06Z Last changed: 2026-11-19T12:56:10Z (opt-out option: — → --no-custom-instructions) Last verified: 2026-11-20T13:02:22Z Next check: 2026-11-21T13:02:22Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of frontmatter setting | include-custom-instructions: true | [1] | 2026-11-20 scope of setting | This setting only affects the agent when it runs as a subagent. | [1] | 2026-11-20 default for selected agents | --agent or /agent | [1] | 2026-11-20 opt-out option | --no-custom-instructions | [1] | 2026-11-20 Sources: [1] GitHub. "Creating and using custom agents for GitHub Copilot CLI - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli Role: primary. Accessed: 2026-11-20T13:02:22Z Quote: "add include-custom-instructions: true to the agent file's frontmatter" (Supports: frontmatter setting) Quote: "This setting only affects the agent when it runs as a subagent." (Supports: scope of setting) Quote: "A custom agent that you select yourself—with --agent or /agent —follows your repository's custom instructions by default" (Supports: default for selected agents) Quote: "unless you use --no-custom-instructions" (Supports: opt-out option) Snapshot SHA-256: 64a3c0d142ad21c0f69aeb3d4dabc247cb63928c3610eb4c7280fd6d95e45519 (captured 2026-11-19T12:56:07Z) 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-19T12:56:10Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:02:22Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:02:22Z Last attempt: 2026-11-20T13:02:22Z Notes and limitations: Extracted automatically from a single official source (section "Applying your repository's custom instructions to a custom agent"). Related: https://latestn.com/tool/github-copilot/memory-and-context/approve-memory-updates-cli How do I approve memory updates in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/memory-and-context/ask-copilot-to-remember-fact How do I ask GitHub Copilot to remember a fact or preference? https://latestn.com/tool/github-copilot/memory-and-context/attach-repository-in-chat How do I attach a repository in GitHub Copilot Chat to give it repository context? https://latestn.com/tool/github-copilot/memory-and-context/add-personal-custom-instructions-2 How do I add personal custom instructions for GitHub Copilot cloud sessions? https://latestn.com/tool/github-copilot/memory-and-context/add-repository-custom-instructions How do I add repository custom instructions for GitHub Copilot in my IDE? https://latestn.com/tool/github-copilot/memory-and-context/add-repository-custom-instructions-2 How do I add repository custom instructions for GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:56:10Z | changed | opt-out option: — → --no-custom-instructions | [1] 2026-11-19T12:56:10Z | changed | default for selected agents: — → --agent or /agent | [1] 2026-11-19T12:56:10Z | changed | example tools value: ["*"] → — | [1] 2026-11-19T12:56:10Z | changed | example agent name: RepoAwareReviewer → — | [1] 2026-11-19T12:56:10Z | changed | scope of setting: only affects the agent when it runs as a subagent → This setting only affects the agent when it runs as a subagent. | [1] 2026-11-17T13:18:33Z | changed | example tools value: — → ["*"] | [1] 2026-11-17T13:18:33Z | changed | example agent name: — → RepoAwareReviewer | [1] 2026-11-17T13:18:33Z | changed | scope of setting: — → only affects the agent when it runs as a subagent | [1] 2026-11-17T13:18:33Z | changed | frontmatter setting: — → include-custom-instructions: true | [1] 2026-11-17T13:18:33Z | changed | Example agent name: RepoAwareReviewer → — | [1] 2026-11-17T13:18:33Z | changed | Default subagent behavior: the subagent does not follow your repository's custom instructions by default → — | [1] 2026-11-17T13:18:33Z | changed | Scope of setting: This setting only affects the agent when it runs as a subagent. → — | [1] 2026-11-17T13:18:33Z | changed | Frontmatter setting: include-custom-instructions: true → — | [1] 2026-11-13T03:24:06Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/memory-and-context/apply-custom-instructions-agent/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/apply-custom-instructions-agent POST: https://latestn.com/dispute/tool/github-copilot/memory-and-context/apply-custom-instructions-agent with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/memory-and-context/apply-custom-instructions-agent?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I apply my repository's custom instructions to a custom agent in GitHub Copilot CLI? Revision 3, last verified 2026-11-20T13:02:22Z. https://latestn.com/tool/github-copilot/memory-and-context/apply-custom-instructions-agent (accessed 2026-11-21T09:54:44Z). @misc{LatestN_tool_github_copilot_memory_and_context_apply_custom_instructions_agent_r3, title = {How do I apply my repository's custom instructions to a custom agent in GitHub Copilot CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/memory-and-context/apply-custom-instructions-agent}}, note = {Revision 3; digest sha256:b7769f8b871de658; last verified 2026-11-20T13:02:22Z; accessed 2026-11-21T09:54:44Z} } 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/apply-custom-instructions-agent