注意
Third-party coding agents are currently in 公开预览.
Introduction
You can use third-party coding agents alongside Copilot云代理 to work asynchronously on your development tasks. You can assign an existing issue or give a prompt to an agent, which will work on the required changes and create a pull request. When the agent finishes, it will request a review from you, and you can leave pull request comments to ask the agent to iterate.
Coding agents are subject to the same security protections, mitigations, and limitations as Copilot云代理. To learn more about how you can use coding agents, see 关于 GitHub Copilot 云代理.
Where you can use coding agents
You can kick off tasks with coding agents in the following locations:
- The Agents tab: Select an agent under the prompt box in the Agents tab, then kick off a new task and watch the agent get to work on a pull request.
- Issues: Assign the agent to an existing issue in a repository.
- Pull requests: Mention
@AGENT_NAMEin a comment on an existing pull request to ask it to make changes. - On GitHub Mobile: From the Home view, click to start a new agent session.
- In Visual Studio Code: Start a new session in the chat view, or delegate an existing session to a different agent.
Making coding agents available
Before you can assign tasks to coding agents on GitHub, they must be enabled in your account policies.
- For GitHub Copilot Pro, GitHub Copilot Pro+, and GitHub Copilot Max subscribers, see 以个人订阅者身份管理 GitHub Copilot 策略.
- For GitHub Copilot业务 and GitHub Copilot Enterprise subscribers, see 管理组织中GitHub Copilot的策略和功能 or 管理企业中 GitHub Copilot 的策略和功能.
These policies do not apply to local agents in Visual Studio Code. To configure agent settings in Visual Studio Code, see Types of agents in the Visual Studio Code documentation. To adjust enterprise agent settings in Visual Studio Code, see Enable or disable the use of agents in the Visual Studio Code documentation.
Supported coding agents
The following third-party agents are supported on GitHub:
AI models for third-party agents
When starting a task with a third-party agent, you can select the AI model used by the agent. You may find that different models perform better, or provide more useful responses, depending on the type of task. For help deciding which model to use, see AI 模型比较.
You can also select Auto, which allows Copilot自动选择模型 to choose the best available model on your behalf. See 关于 Copilot自动模型选择.
The following models are available for each agent:
OpenAI Codex
- Auto
- GPT-5.2-Codex
- GPT-5.3-Codex
- GPT-5.4
- GPT-5.4 nano
Anthropic Claude
- Auto
- 克洛德作品4.5
- 克洛德作品4.6
- 克劳德·奥普斯 4.7
- 克劳德十四行诗 4.5
- 克洛德十四行诗 4.6
Usage costs
Coding agents consume GitHub Actions minutes and AI credits. Each agent session consumes AI credits based on the model used and the number of tokens processed.
Within your included GitHub Actions minutes and AI credits, you can use agents without incurring additional costs. See 组织和企业的基于使用情况的计费.
Partner agents
When enabling partner agents in your user or organization Copilot云代理 settings, a GitHub App will be installed for the corresponding agent.
- Allow Claude coding agent will install
anthropic code agent - Allow Codex coding agent will install
openai code agent
Actions taken by these GitHub Apps will be visible in your audit log, but the GitHub Apps themselves will not be visible in your account's list of GitHub App installations.
Next steps
- To start managing agents, see 管理代理会话.
- To learn how AI models are hosted and served, see 托管用于GitHub Copilot的模型.