You can add personal instructions for GitHub Copilot Chat to customize chat responses for your conversations.
Note
Personal custom instructions are currently only supported for GitHub Copilot Chat in GitHub.
You can add instructions for GitHub Copilot Chat in order to receive chat responses that are customized to your personal preferences, across your conversations on the GitHub website. Your saved instructions will not be displayed in the chat, but they are automatically provided to Copilot so that it can provide responses aligned with your personal preferences.
For example, you can choose to always have Copilot Chat respond in a preferred language or with a particular style. Some examples of instructions you could add are:
Always respond in Spanish.
Your style is a helpful colleague, minimize explanations but provide enough context to understand the code.
Always provide examples in TypeScript.
Personal custom instructions apply to conversations that you, as a user, have with Copilot Chat across GitHub, and are different from repository custom instructions, which apply to conversations in the context of a single repository. For more information on repository instructions, see Adding repository custom instructions for GitHub Copilot.
Personal custom instructions take priority over repository custom instructions, but both are incorporated into the final prompt provided to Copilot Chat. Whenever possible, you should avoid providing conflicting personal and repository instructions. If you are concerned about response quality, you can also choose to temporarily disable repository instructions. See Adding repository custom instructions for GitHub Copilot.
You can add personal custom instructions either in the Chat panel or in immersive mode. The same instructions will be applied in both modes.
In the top right of any page on GitHub, either:
Select the dropdown menu at the top right of the Chat panel, or immersive page, then click Personal instructions.
Add natural language instructions to the text box.
You can write your instructions in any format you prefer. For example, you can write them as a single block of text, each on a new line, or separated by blank lines.
Click Save. Your instructions are now active, and will stay active until you change or remove them.