You can ask Copilot to create a pull request from the Agents page, Copilot Chat, or agentic coding tools and IDEs with Model Context Protocol (MCP) support.
Who can use this feature?Copilot coding agent is available with the GitHub Copilot Pro, GitHub Copilot Pro+, GitHub Copilot Business and GitHub Copilot Enterprise plans. The agent is available in all repositories stored on GitHub, except repositories owned by managed user accounts and where it has been explicitly disabled.
Sign up for Copilot
You can ask Copilot to work on a task from:
Copilot will start working on the task, raise a pull request, then request a review from you when it's finished working. For more information, see About GitHub Copilot coding agent.
Asking Copilot to create a pull request from the Agents pageNavigate to the Agents page at github.com/copilot/agents.
You can also reach this page by clicking the button next to the search bar on any page on GitHub, then selecting Agents from the sidebar.
Using the dropdown menu in the prompt field, select the repository you want Copilot to work in.
Type a prompt describing your request.
For example, Implement a user friendly message for common errors.
Optionally, select a base branch for Copilot's pull request. Copilot will create a new branch based on this branch, then push its changes to a pull request targeting that branch.
Click the Send now button or press Return.
Copilot will start a new session, which will appear in the list below the prompt box. Copilot will work on the task and push changes to its pull request, then add you as a reviewer when it has finished, triggering a notification.
Install the GitHub Pull Requests extension for Visual Studio Code.
Open GitHub Copilot Chat in Visual Studio Code.
Type a prompt explaining what you want Copilot to do, and add #copilotCodingAgent
to the prompt.
For example, Put backticks around file names and variables in output #copilotCodingAgent
Tip
Submit your prompt.
Copilot will typically do some research and context-gathering in Visual Studio Code, and then will ask you to confirm that you want to use the coding agent to create a pull request.
Click Continue.
Copilot will push up any local changes, start a new session and respond with a link to the pull request it creates. It will work on the task and push changes to the pull request, and then add you as a reviewer when it has finished, triggering a notification.
Open GitHub Copilot Chat in Visual Studio or JetBrains IDEs.
Type a prompt, starting with @github
, asking Copilot to create a pull request, and giving details of what you want Copilot to change.
For example, @github Create a PR to put backticks around file names and variables in output.
Tip
Submit your prompt.
Copilot asks you to confirm that you want to use the coding agent to create a pull request.
Click Allow.
Copilot will start a new session and respond with a link to the pull request it creates. It will work on the task and push changes to the pull request, and then add you as a reviewer when it has finished, triggering a notification.
Open GitHub Copilot Chat on GitHub.com.
Type a prompt asking Copilot to create a pull request, and giving details of what you want Copilot to change.
For example, Create a PR in monalisa/bookstore to put backticks around file names and variables in output.
Tip
Submit your prompt.
Copilot asks you to confirm that you want to use the coding agent to create a pull request.
Click Allow.
Copilot will start a new session and respond with a link to the pull request it creates. It will work on the task and push changes to the pull request, and then add you as a reviewer when it has finished, triggering a notification.
As an alternative to using Copilot Chat, you can use the remote GitHub MCP server to trigger Copilot coding agent from any MCP host.
Note
Install the GitHub MCP server in your preferred IDE or agentic coding tool. See Using the GitHub MCP Server.
Ensure the create_pull_request_with_copilot
tool is enabled.
Open chat.
Type a prompt asking Copilot to create a pull request, with the details of what you want to change.
For example, Open a PR in my repository to expand unit test coverage.
Tip
Submit your prompt.
Copilot will start a new session, open a draft pull request and work on the task in the background. As it works, it will push changes to the pull request, and once it has finished, it will add you as a reviewer. In most cases, the MCP host will show you the URL of the created pull request.
You can view your current and past Copilot sessions from the Agents page and Visual Studio Code. See Tracking GitHub Copilot's sessions.
Further readingRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4