The behavior described is a current limitation of how Copilot features work across products, and the context only documents reliable support for .github/copilot-instructions.md in Visual Studio and some IDE/extension scenarios, not in GitHub.com Code Review.
Based on the available information, the questions can be answered as follows:
- Does Copilot Code Review on GitHub.com actually support
.github/copilot-instructions.mdreliably?
The documented, reliable support for.github/copilot-instructions.mdis for Copilot in IDEs such as Visual Studio and for inline/chat usage, where Copilot automatically reads the instructions file and applies it to suggestions and chat responses. The context does not document equivalent, reliable support for.github/copilot-instructions.mdin GitHub.com Copilot Code Review. The observed behavior (generic comments, no explicit use of the instructions) is consistent with this limitation. - Can it use documentation located in a Git submodule?
The context does not document any support for Copilot Code Review on GitHub.com explicitly reading or prioritizing documentation from Git submodules. The only documented mechanisms for adding guidance are:- Instructions files such as
.github/copilot-instructions.mdand targeted*.instructions.mdfiles, which are described for Visual Studio and IDE-based Copilot usage. - Agent mode and MCP-based tools, again in the context of IDEs and Copilot Chat, not GitHub.com reviews. There is no documented mechanism guaranteeing that GitHub.com Code Review will traverse and interpret submodule content as a first-class knowledge source.
- Instructions files such as
- Is there any supported way to make Code Review use repository documentation as a real source of truth?
The context documents supported ways to make Copilot use project documentation and conventions primarily in IDE/chat scenarios:-
.github/copilot-instructions.mdfor global project guidance. -
.github/instructions/*.instructions.mdwithapplyTopatterns to scope guidance to specific files or folders. - Custom agents and MCP tools that can connect to style guides or other documentation.
- Use Copilot Chat / agent mode in Visual Studio (or other supported IDEs) where
.github/copilot-instructions.mdand*.instructions.mdare honored and listed as references. - Store project rules and design guidance in those instruction files so that chat and code-generation behavior consistently follows them.
-
- If not, is this only supported in Copilot Chat / Coding Agent sessions?
Yes, the documented behavior for:- Automatically loading
.github/copilot-instructions.mdand.github/instructions/*.instructions.md. - Applying them to responses.
- Showing them in the “References” list.
- Using custom agents that connect to style guides via MCP.
- Automatically loading
Given the documentation, the most reliable way to enforce repository documentation and shared guidance today is to:
- Put the rules into
.github/copilot-instructions.mdand, if needed, more granular.github/instructions/*.instructions.mdfiles with appropriateapplyTopatterns. - Use Copilot Chat / agent mode in supported IDEs (for example, Visual Studio) for reviews and code changes that must follow those rules.
- Treat GitHub.com Copilot Code Review as a more generic assistant that may not fully honor or cite those instruction files or submodule documentation.
References:
- Use GitHub Copilot to create WinUI 3 / Windows App SDK apps in Visual Studio
- Azure Cosmos DB for NoSQL best practices in GitHub Copilot for Visual Studio Code
- Use GitHub Copilot with Azure Boards
- GitHub Copilot modernization FAQ
- Customize chat responses and set context
- Use built-in and custom agents with GitHub Copilot
- Get started with GitHub Copilot
- Copilot Studio Agent will not read entire data set in Excel or markdown - Microsoft Q&A
- Copilot Studio Agent doesn't recognize the docs in the Knowledge Base. - Microsoft Q&A
- How do I get rid of the Copilot icon on Docs as I'm working on them? - Microsoft Q&A
- Why am I getting this exit code 14 error in my project logs? - Microsoft Q&A
- Update on Integrating APA 7th edition to MS Word 365 - Microsoft Q&A