メモ
Copilot コーディング エージェント は パブリック プレビュー段階にあり、変更される可能性があります。 プレビュー期間中、この機能の使用は「GitHub プレリリース ライセンス条項」の対象となります。
Copilot コーディング エージェント is an autonomous, AI-powered agent that completes software development tasks on GitHub. Adopting Copilot コーディング エージェント in your organization frees your engineering teams to spend more time thinking strategically and less time making routine fixes and maintenance updates in a codebase.
Copilot コーディング エージェント:
- Joins your team: Developers can delegate work to Copilot unlike IDE-based coding agents that require synchronous pairing sessions. Copilot opens draft pull requests for team members to review and iterates based on feedback, as a developer would.
- Reduces context switching: Developers working in JetBrains IDEs, VS Code, Visual Studio, or GitHub.com can ask Copilot コーディング エージェント to create a pull request to complete small tasks without stopping what they are currently doing.
- Executes tasks in parallel: Copilot can work on multiple issues simultaneously, handling tasks in the background while your team focuses on other priorities.
1. Evaluate
Before enabling Copilot コーディング エージェント for members, understand how Copilot コーディング エージェント will fit into your organization. This will help you evaluate whether Copilot コーディング エージェント is suitable for your needs and plan communications and training sessions for developers.
- Learn about Copilot コーディング エージェント, including the costs, built-in security features, and how it differs from other AI tools your developers may be used to. See About Copilot coding agent.
- Learn about the tasks that Copilot コーディング エージェント is best suited for. These are generally well-defined and scoped issues, such as increasing test coverage, fixing bugs or flaky tests, or updating config files or documentation. See Best practices for using Copilot to work on tasks.
- Consider how Copilot コーディング エージェント fits alongside other tools in your organization's workflows. For an example scenario that walks through how to use Copilot コーディング エージェント alongside other AI features on GitHub, see エージェント型 AI を Enterprise のソフトウェア開発ライフサイクルに統合する.
2. Secure
All AI models are trained to meet a request, even if they don't have all the information needed to provide a good answer, and this can lead them to make mistakes. By following best practices, you can build on the default security features of Copilot コーディング エージェント.
- Give Copilot the information it needs to work successfully in a repository using a
copilot-instructions.md
file. See GitHub Copilot のリポジトリ カスタム命令を追加する. - Set up the Copilot development environment for a repository with access to the tools and package repositories approved by the organization using a
copilot-setup-steps.yml
file and local MCP servers. See Customizing the development environment for Copilot coding agent and Extending Copilot coding agent with the Model Context Protocol (MCP). - Follow best practices for storing secrets securely. See Using secrets in GitHub Actions.
- Enable code security features to further lower the risk of leaking secrets and introducing vulnerabilities into the code. See 組織での GitHub で推奨されるセキュリティ構成の適用.
- Configure your branch rulesets to ensure that all pull requests raised by Copilot are approved by a second user with write permissions (a sub-option of "Require a pull request before merging"). See Enterprise でルールセットを使ってコード ガバナンスを適用する, 組織内のリポジトリのルールセットを作成する and ルールセットで使用できるルール.
3. Pilot
ヒント
You need GitHub Copilot Pro, GitHub Copilot Pro+, GitHub Copilot Business or GitHub Copilot Enterprise to use Copilot コーディング エージェント.
As with any other change to working practices, it's important to run a trial to learn how to deploy Copilot コーディング エージェント effectively in your organization or enterprise.
- Gather a cross-functional team for the trial to bring different roles, backgrounds, and perspectives to the project. This will make it easier to ensure that you explore a broad range of ways to define issues, assign work to Copilot, and give clear review feedback.
- Choose an isolated or low-risk repository, for example, one that contains documentation or internal tools. You could create a fresh repository to use as a playground, but Copilot needs context to be successful, so you would need to add a lot of context, including team processes, development environment, and common dependencies.
- Enable Copilot コーディング エージェント in the repository and optionally enable third-party MCP servers for enhanced context sharing. See Adding Copilot コーディング エージェント to your organization.
- Create repository instructions and pre-install any tools required in the development environment Copilot uses. See Customizing the development environment for Copilot coding agent.
- Identify a few compelling use cases for your organization, for example: test coverage or improving accessibility. See Choose the right type of tasks to give to Copilot in the best practice guide.
- Use best practice to create or refine issues for Copilot in your pilot repository.
- Assign issues to Copilot and prepare team members to review its work.
- Spend time looking at the codebase or documentation in VS Code or GitHub.com, asking Copilot to create a pull request to fix any bugs or small improvements that you identify.
Over the course of the trial, the team should iterate on the repository instructions, installed tools, access to MCP servers, and issue definition to identify how your organization can get the most from Copilot コーディング エージェント. This process will help you identify your organization's best practices for working with Copilot and plan an effective rollout strategy.
In addition to giving you insight into how to set up Copilot コーディング エージェント for success, you'll learn how Copilot uses premium requests and actions minutes. This will be valuable when you come to set and manage your budget for a broader trial or full rollout. See GitHub Copilot に対する会社の支出を管理する.
Enhancing with MCP
The Model Context Protocol (MCP) is an open standard that defines how applications share context with large language models (LLMs). MCP provides a standardized way to provide Copilot コーディング エージェント with access to different data sources and tools.
Copilot コーディング エージェント has access to the full GitHub context of the repository it's working in, including issues and pull requests, using the built-in GitHub MCP server. By default, it's restricted from accessing external data by authentication barriers and a firewall.
You can extend the information available to Copilot コーディング エージェント by giving it access to local MCP servers for the tools your organization uses. For example, you might want to provide access to local MCP servers for some of the following contexts:
- Project planning tools: Allow Copilot direct access to private planning documents that are stored outside GitHub in tools like Notion or Figma.
- Augment training data: Each LLM contains training data up to a specific cut-off date. If you're working with fast moving tools, Copilot may not have access to information on new features. You can fill this knowledge gap by making the tool's MCP server available. For example, adding the Terraform MCP server will give Copilot access to the most recently supported Terraform providers.
For more information, see Extending Copilot coding agent with the Model Context Protocol (MCP).
Next steps
When you're satisfied with the pilot, you can:
- Enable Copilot コーディング エージェント in more organizations or repositories.
- Identify more use cases for Copilot コーディング エージェント and train developers accordingly.
- Continue to collect feedback and measure results.
To assess the impact of a new tool, we recommend measuring the tool's impact on your organization's downstream goals. For a systematic approach to driving and measuring improvements in engineering systems, see GitHub's Engineering System Success Playbook.