About GitHub Copilot coding agent - GitHub Docs (original) (raw)

You can ask Copilot to open a new pull request or make changes to an existing pull request. Copilot works in the background, then requests a review from you.

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

Overview of Copilot coding agent

With Copilot coding agent, GitHub Copilot can work independently in the background to complete tasks, just like a human developer.

Copilot coding agent can:

To delegate tasks to Copilot coding agent, you can:

Copilot coding agent will evaluate the task it has been assigned based on the prompt you give it—whether that's from the issue description or a chat message. Then Copilot coding agent will make the required changes and open a pull request. When Copilot coding agent finishes, it will request a review from you, and you can leave pull request comments to ask Copilot coding agent to iterate.

While working on a coding task, Copilot coding agent has access to its own ephemeral development environment, powered by GitHub Actions, where it can explore your code, make changes, execute automated tests and linters and more.

You can also create custom agents to tailor Copilot's behavior for specific workflows, coding conventions, or specialized tasks. Custom agents allow you to define multiple specialized versions of the coding agent—such as a frontend reviewer, test generator, or security auditor—each with their own prompts, tools, and capabilities. For more information, see About custom agents.

Benefits over traditional AI workflows

When used effectively, Copilot coding agent offers productivity benefits over traditional AI assistants in IDEs:

Copilot coding agent versus agent mode

Copilot coding agent is distinct from the "agent mode" feature available in your IDE. Copilot coding agent works autonomously in a GitHub Actions-powered environment to complete development tasks assigned through GitHub issues or GitHub Copilot Chat prompts, and creates pull requests with the results. In contrast, agent mode in your IDE makes autonomous edits directly in your local development environment. For more information about agent mode, see Asking GitHub Copilot questions in your IDE.

Streamlining software development with Copilot coding agent

Assigning tasks to Copilot coding agent can enhance your software development workflow.

For example, you can assign Copilot coding agent to straightforward issues on your backlog by selecting "Copilot" as the assignee. This allows you to spend less time on these issues and more time on more complex or interesting work, or work that requires a high degree of creative thinking. Copilot coding agent can work on "nice to have" issues that improve the quality of your codebase or product, but often remain on the backlog while you focus on more urgent work.

Having Copilot coding agent as an additional coding resource also allows you to start tasks that you might not have otherwise started due to lack of resources. For example, you might create issues to refactor code or add more logging, and then immediately assign these to Copilot.

Copilot coding agent can start a task, which you then pick up and continue working on yourself. By assigning the initial work to Copilot, you free up time that you would otherwise have spent doing repetitive tasks, such as setting up the scaffolding for a new project.

You can create specialized custom agents for different tasks. For example, you might create a custom agent specialized for frontend development that focuses on React components and styling, a documentation agent that excels at writing and updating technical documentation, or a testing agent that specializes in generating comprehensive unit tests. Each custom agent can be tailored with specific prompts and tools suited to its particular task.

You can also invoke Copilot coding agent from external tools, allowing you to assign tasks to Copilot, provide context, and open pull requests without leaving your workflow. See About Copilot integrations

Making Copilot coding agent available

Before you can assign tasks to Copilot coding agent, it must be enabled.

Copilot coding agent is available with the GitHub Copilot Pro, GitHub Copilot Pro+, GitHub Copilot Business and GitHub Copilot Enterprise plans.

If you are a GitHub Copilot Business or GitHub Copilot Enterprise subscriber, an administrator must enable the relevant policy before you can use the agent.

Repository owners can choose to opt out some or all repositories from Copilot coding agent.

For more information, see Managing access to GitHub Copilot coding agent.

AI models for Copilot coding agent

GitHub Copilot Pro and GitHub Copilot Pro+ users can select the model used by Copilot coding agent. You may find that different models perform better, or provide more useful responses, depending on the type of tasks you give Copilot.

Support for selecting a model is coming soon for GitHub Copilot Business and GitHub Copilot Enterprise users. Until then, tor these users, Copilot coding agent will use Claude Sonnet 4.5. GitHub reserves the right to change the model used at any time.

For more information, see Changing the AI model for GitHub Copilot coding agent.

Copilot coding agent usage costs

Copilot coding agent uses GitHub Actions minutes and Copilot premium requests.

Within your monthly usage allowance for GitHub Actions and premium requests, you can ask Copilot coding agent to work on coding tasks without incurring any additional costs.

For more information, see GitHub Copilot licenses.

Built-in security protections

Security is a fundamental consideration when you enable Copilot coding agent, as with any other AI agent. Copilot coding agent has a strong base of built-in security protections that you can supplement by following best practice guidance.

For more information, see:

Risks and mitigations

Copilot coding agent is an autonomous agent that has access to your code and can push changes to your repository. This entails certain risks. Where possible, GitHub has applied appropriate mitigations.

Risk: Copilot coding agent can push code changes to your repository

To mitigate this risk, GitHub:

Risk: Copilot coding agent has access to sensitive information

Copilot coding agent has access to code and other sensitive information, and could leak it, either accidentally or due to malicious user input. To mitigate this risk, GitHub:

Risk: Prompt injection vulnerabilities

Users can include hidden messages in issues assigned to Copilot coding agent or comments left for Copilot coding agent as a form of prompt injection. To mitigate this risk, GitHub:

Limitations of Copilot coding agent

Copilot coding agent has certain limitations in its software development workflow and compatibility with other features.

Limitations in Copilot coding agent's software development workflow

Limitations in Copilot coding agent's compatibility with other features

Hands-on practice

Try the Expand your team with Copilot coding agent Skills exercise for practical experience with Copilot coding agent.

Further reading