Skip to content

Repo sync #39450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[EDI - Builders] Copilot Chat (#56567)
Co-authored-by: Jules Porter <jules-p@users.noreply.github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
  • Loading branch information
3 people authored Jul 22, 2025
commit 3f1644e3e5a87dcb11a0594208e6386267426a47
45 changes: 45 additions & 0 deletions content/copilot/concepts/about-github-copilot-chat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: About GitHub Copilot Chat
intro: 'Learn how you can use {% data variables.copilot.copilot_chat %} to enhance your coding experience.'
versions:
feature: copilot
topics:
- Copilot
type: overview
---

# Overview

{% data variables.copilot.copilot_chat %} is the AI-powered chat interface for {% data variables.product.prodname_copilot %}. It allows you to interact with AI models to get coding assistance, explanations, and suggestions in a conversational format.

{% data variables.copilot.copilot_chat_short %} can help you with a variety of coding-related tasks, like offering you code suggestions, providing natural language descriptions of a piece of code's functionality and purpose, generating unit tests for your code, and proposing fixes for bugs in your code.

{% data variables.copilot.copilot_chat %} is available in various environments:

* {% data variables.product.github %} (the website).
* A range of IDEs such as {% data variables.product.prodname_vscode %}, Xcode, and JetBrains IDEs.
* {% data variables.product.prodname_mobile %}.

Different environments may have different features and capabilities, but the core functionality remains consistent across platforms. To explore the functionality available in each environment, see the [AUTOTITLE](/copilot/how-tos/chat) how-to guides and the [AUTOTITLE](/copilot/tutorials).

## Limitations

{% data variables.copilot.copilot_chat_short %} is designed to assist with coding tasks, but you remain responsible for reviewing and validating the code it generates. It may not always produce correct or optimal solutions, and it can sometimes generate code that contains security vulnerabilities or other issues. Always test and review the code before using it in production.

## Customizing {% data variables.copilot.copilot_chat_short %} responses

{% data variables.product.prodname_copilot %} in {% data variables.product.github %}, {% data variables.product.prodname_vscode %}, and {% data variables.product.prodname_vs %} can provide chat responses that are tailored to the way your team works, the tools you use, the specifics of your project, or your personal preferences, if you provide it with enough context to do so. Instead of repeating instructions in each prompt, you can create and save instructions for {% data variables.copilot.copilot_chat_short %} to customize what responses you receive.

There are two types of custom instructions you can add for {% data variables.copilot.copilot_chat_short %}:
* Repository instructions: You can create a custom instructions file for a repository, so that all prompts asked in the context of the repository automatically include the instructions you've defined
* Personal instructions: You can add personal instructions so that all the chat responses you, as a user, receive are tailored to your preferences

For more information, see [AUTOTITLE](/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot) and [AUTOTITLE](/copilot/customizing-copilot/adding-personal-custom-instructions-for-github-copilot).

## AI models for {% data variables.copilot.copilot_chat_short %}

{% data reusables.copilot.change-the-ai-model %}

## Extending {% data variables.copilot.copilot_chat_dotcom_short %}

{% data reusables.copilot.copilot-extensions.extending-copilot-chat %}
1 change: 1 addition & 0 deletions content/copilot/concepts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ children:
- /completions
- /prompt-engineering-for-copilot-chat
- /about-customizing-github-copilot-chat-responses
- /about-github-copilot-chat
- /content-exclusion-for-github-copilot
- /indexing-repositories-for-copilot-chat
- /about-copilot-coding-agent
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions content/copilot/how-tos/context/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ children:
- /copilot-spaces
- /model-context-protocol
- /creating-and-managing-copilot-knowledge-bases
- /using-knowledge-bases
- /install-copilot-extensions
redirect_from:
- /copilot/customizing-copilot
Expand Down
32 changes: 32 additions & 0 deletions content/copilot/how-tos/context/using-knowledge-bases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: Using knowledge bases
shortTitle: Use knowledge bases
intro: 'Learn how to provide predefined context for {% data variables.copilot.copilot_chat %} with knowledge bases.'
topics:
- Copilot
versions:
feature: copilot-enterprise
---

## Introduction

Knowledge bases are collections of documentation that you can use to provide context for your questions in {% data variables.copilot.copilot_chat %}. Knowledge bases are useful when you want to ask questions about a specific topic or set of topics, and you want the answers to be informed by the relevant documentation.

Organization owners (with a {% data variables.copilot.copilot_enterprise_short %} subscription) can create knowledge bases, grouping together Markdown documentation across one or more repositories. You can use a knowledge base to ask questions with that context in mind.

When you enter a query, {% data variables.product.prodname_copilot_short %} searches for relevant documentation snippets, synthesizes a summary of the relevant snippets to answer your question, and provides links to the source documentation for additional context.

## Asking {% data variables.copilot.copilot_chat_short %} questions about a knowledge base

{% data reusables.copilot.immersive-mode-instructions %}
1. To select a knowledge base for context, click **{% octicon "paperclip" aria-label="Add attachments" %} Attach** at the bottom of the chat panel, then click **Knowledge bases**.
1. In the "Select knowledge bases" dialog, type the name of the knowledge base you want to use as context, select the knowledge bases you want to use, and click **Save**.
1. In the prompt box, type a question and press <kbd>Enter</kbd>.

You can click the **_n_ references** link at the top of the response to see the sources that {% data variables.product.prodname_copilot_short %} used to answer your question.

1. Within a conversation thread, you can ask follow-up questions. Follow-up questions will continue to use the selected knowledge base as context until you explicitly detach the knowledge base or select a different one.

## Further reading

* [AUTOTITLE](//copilot/tutorials/using-copilot-to-explore-a-codebase)
2 changes: 2 additions & 0 deletions content/copilot/tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ children:
- /quickstart-for-github-copilot-extensions-using-agents
- /speeding-up-development-work-with-copilot-spaces
- /using-copilot-to-explore-a-codebase
- /using-copilot-to-explore-issues-and-discussions
- /using-copilot-to-explore-pull-requests
- /writing-tests-with-github-copilot
- /refactoring-code-with-github-copilot
- /learning-a-new-programming-language-with-github-copilot
Expand Down
32 changes: 32 additions & 0 deletions content/copilot/tutorials/using-copilot-to-explore-a-codebase.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,38 @@ To find out about a specific file:
1. For a small file, ask {% data variables.product.prodname_copilot_short %}: `Explain this file`.
1. For a large file, ask: `Explain what this file does. Start with an overview of the purpose of the file. Then, in appropriately headed sections, go through each part of the file and explain what it does in detail.`

## Understanding specific lines of code

Use {% data variables.product.prodname_copilot_short %} to help you understand specific lines of code in a file.

To find out about a specific line of code:

1. On {% data variables.product.github %}, navigate to a repository and open a file.
1. Select the lines by clicking the line number for the first line you want to select, holding down <kbd>Shift</kbd> and clicking the line number for the last line you want to select.
1. To ask your own question about the selected lines, click the {% data variables.product.prodname_copilot_short %} icon ({% octicon "copilot" aria-hidden="true" aria-label="copilot" %}) to the right of your selection.
This displays the {% data variables.copilot.copilot_chat %} panel with the selected lines indicated as the context of your question.
1. To ask a predefined question, click the downward-pointing button beside the {% data variables.product.prodname_copilot_short %} icon, then choose one of the options.

![Screenshot of the {% data variables.product.prodname_copilot_short %} buttons, highlighted with a dark orange outline, to the right of some selected code.](/assets/images/help/copilot/copilot-buttons-inline-code.png)

1. If you clicked the {% data variables.product.prodname_copilot_short %} icon, type a question in the prompt box at the bottom of the chat panel and press <kbd>Enter</kbd>.

## Understanding a specific file or symbol

Use {% data variables.product.prodname_copilot_short %} to help you understand the purpose of a specific file or symbol in the codebase. A symbol is a named entity in the code, such as a function, class, or variable.

1. Navigate to a repository on {% data variables.product.github %}.
{% data reusables.copilot.open-chat-panel %}
1. In the prompt box, click **{% octicon "paperclip" aria-label="Add attachments" %} Attach**, then click **Files, folders, and symbols**.
1. Search for and select one or more files, folders, or symbols.
1. In the prompt box, type a question and press <kbd>Enter</kbd>.

{% data variables.product.prodname_copilot_short %} replies in the chat panel.

> [!TIP]
>
> {% data reusables.copilot.semantic-index-info %}

## Finding out about commits

One good way to familiarize yourself with a project is to look at the recent work that's been happening. You can do this by browsing the recent commits.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: Using Copilot to explore issues and discussions
shortTitle: Explore issues and discussions
intro: '{% data variables.copilot.copilot_chat %} can help you quickly gain context of lengthy discussions and issues.'
topics:
- Copilot
versions:
feature: copilot
---

## Introduction

{% data variables.product.prodname_copilot_short %} can help you quickly gain context of lengthy discussions and issues on {% data variables.product.github %}. You can ask {% data variables.product.prodname_copilot_short %} to summarize discussions, identify key participants, and provide insights into the status of an issue or discussion.

The quality of {% data variables.copilot.copilot_chat_short %}'s responses may be degraded when working with issues or discussions that have very long bodies or a large number of comments. For example, this may occur if you ask {% data variables.product.prodname_copilot_short %} to summarize a long-running discussion. Where this happens, {% data variables.product.prodname_copilot_short %} will warn you so you can double check its output.

## Exploring issues and discussions

1. Navigate to an issue or discussion on {% data variables.product.github %}.
{% data reusables.copilot.open-chat-panel %}
{% data reusables.copilot.chat-previous-conversation %}
1. At the bottom of the {% data variables.product.prodname_copilot_short %} chat panel, in the prompt box, type a question and press <kbd>Enter</kbd>.

{% data variables.product.prodname_copilot_short %} responds to your request in the panel.

> [!TIP] Instead of navigating to an issue or discussion in your browser to ask a question, you can include the relevant URL in your message. For example, `Summarize https://github.com/monalisa/octokit/issues/1`.

## Example prompts

The following prompts are examples of the kind of questions you can ask {% data variables.product.prodname_copilot_short %} to help you find out about an issue or discussion.

### General questions

* `Summarize this issue`
* `What is the current status of this discussion?`
* `What are the main points of contention in this issue?`
* `Who are the key participants in this discussion?`

### Specific questions

* `What are the proposed solutions for this issue?`
* `What are the potential impacts of this issue?`
* `What are the next steps for this discussion?`

## Further reading

* [AUTOTITLE](/copilot/tutorials/using-copilot-to-explore-a-codebase#further-reading)
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
title: Using Copilot to explore pull requests
shortTitle: Explore pull requests
intro: '{% data variables.copilot.copilot_chat %} can help you understand the content, functionality, and status of a pull request.'
topics:
- Copilot
versions:
feature: copilot
---

## Introduction

You can ask {% data variables.product.prodname_copilot_short %} different questions about a pull request, from different views within the pull request. For example, you can ask {% data variables.product.prodname_copilot_short %} to summarize a pull request, or explain what has changed within specific files or lines of code in a pull request.

## Get a summary of a pull request

You can ask {% data variables.product.prodname_copilot_short %} to summarize a pull request, or to provide information about the status of a pull request.

1. On {% data variables.product.github %}, navigate to a pull request in a repository.
{% data reusables.copilot.open-chat-panel %}
{% data reusables.copilot.chat-previous-conversation %}
1. At the bottom of the {% data variables.copilot.copilot_chat_short %} panel, in the prompt box, type a question and press <kbd>Enter</kbd>.

### Example prompts

The following prompts are examples of the kind of questions you can ask {% data variables.product.prodname_copilot_short %} to help you find out about a pull request.

* `Summarize this pull request`
* `What is the current status of this pull request?`
* `What are the main changes in this pull request?`

## Ask about changes to a specific file in a pull request

You can ask {% data variables.product.prodname_copilot_short %} to explain the changes made to a specific file in a pull request, or to provide information about the status of a file in a pull request.

1. On {% data variables.product.github %}, navigate to a pull request in a repository.
1. Click the **Files changed** tab.
1. Click {% octicon "kebab-horizontal" aria-label="Show options" %} at the top right of the file, then click **Ask {% data variables.product.prodname_copilot_short %} about this diff**.
1. Type a question in the prompt box at the bottom of the chat panel and press <kbd>Enter</kbd>.

### Example prompts

* `What are the changes in this file?`
* `What is the status of this file in the pull request?`

## Ask about specific lines within a file in a pull request

You can ask {% data variables.product.prodname_copilot_short %} to explain specific lines of code in a pull request, or to provide information about the status of those lines.

1. On {% data variables.product.github %}, navigate to a pull request in a repository.
1. Click the **Files changed** tab.
1. Click the line number for the first line you want to select, then hold down <kbd>Shift</kbd> and click the line number for the last line you want to select.
1. Ask {% data variables.product.prodname_copilot_short %} a question, or choose from a list of predefined questions.
* _To ask your own question about the selected lines_, to the right of your selection, click the {% octicon "copilot" aria-hidden="true" aria-label="copilot" %} {% data variables.product.prodname_copilot_short %} icon.
This displays the {% data variables.copilot.copilot_chat %} panel with the selected lines indicated as the context of your question.

### Example prompts

* `Explain the selected lines of code`
* `What do these lines of code do?`

## Ask why a workflow has failed

You can ask {% data variables.product.prodname_copilot_short %} to explain why a workflow has failed in a pull request, and provide suggestions for how to fix the issue.

1. On {% data variables.product.github %}, navigate to a pull request in a repository.
1. Scroll to the bottom of the page, then, next to one of the failing checks, click **Details**.
{% data reusables.copilot.open-chat-panel %}
{% data reusables.copilot.chat-previous-conversation %}
1. At the bottom of the {% data variables.copilot.copilot_chat_short %} panel, in the prompt box, ask {% data variables.product.prodname_copilot_short %} why the pull request has failed and press <kbd>Enter</kbd>.

{% data variables.product.prodname_copilot_short %} responds with information about why the pull request failed. {% data variables.product.prodname_copilot_short %} may also provide suggestions for how to fix the issue.

1. If {% data variables.product.prodname_copilot_short %} has provided steps to fix the issue, you can follow the steps to resolve the problem.

### Example prompts

* `Why has this workflow failed?`
* `What can I do to fix this issue?`

## Further reading

* [AUTOTITLE](//copilot/tutorials/using-copilot-to-explore-a-codebase)
2 changes: 2 additions & 0 deletions src/tools/lib/all-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const allTools: ToolsMapping = {
curl: 'curl',
desktop: 'Desktop',
eclipse: 'Eclipse',
github_mobile: 'GitHub Mobile',
ides: 'IDEs',
importer_cli: 'GitHub Enterprise Importer CLI',
javascript: 'JavaScript',
jetbrains: 'JetBrains IDEs',
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy