{"meta":{"title":"GitHub Copilot 文档","intro":"您可以使用 GitHub Copilot 来提升您的工作效率，并在处理代码时提供帮助。","product":"GitHub Copilot","breadcrumbs":[{"href":"/zh/enterprise-cloud@latest/copilot","title":"GitHub Copilot"}],"documentType":"product"},"body":"# GitHub Copilot 文档\n\n您可以使用 GitHub Copilot 来提升您的工作效率，并在处理代码时提供帮助。\n\n## Links\n\n### Getting started\n\n* [什么是GitHub Copilot？](/zh/enterprise-cloud@latest/copilot/get-started/what-is-github-copilot)\n\n  了解 Copilot 是什么以及您可以用它做什么。\n\n* [GitHub Copilot 快速入门](/zh/enterprise-cloud@latest/copilot/get-started/quickstart)\n\n  快速了解如何使用 GitHub Copilot。\n\n## Articles\n\n* [GitHub Copilot 快速入门](/zh/enterprise-cloud@latest/copilot/get-started/quickstart)\n\n  快速了解如何使用 GitHub Copilot。\n\n* [开始使用 GitHub Copilot CLI](/zh/enterprise-cloud@latest/copilot/get-started/cli-quickstart)\n\n  快速了解如何使用 GitHub Copilot CLI。\n\n* [GitHub Copilot 应用入门](/zh/enterprise-cloud@latest/copilot/get-started/quickstart-copilot-app)\n\n  登录GitHub Copilot app，连接存储库或本地文件夹，并创建你的第一个代理会话以进行代码更改。\n\n* [什么是GitHub Copilot？](/zh/enterprise-cloud@latest/copilot/get-started/what-is-github-copilot)\n\n  了解 Copilot 是什么以及您可以用它做什么。\n\n* [GitHub Copilot计划](/zh/enterprise-cloud@latest/copilot/get-started/plans)\n\n  了解适用于 Copilot 的可用方案。\n\n* [GitHub Copilot功能](/zh/enterprise-cloud@latest/copilot/get-started/features)\n\n  GitHub Copilot 为用户和管理员提供一套功能。\n\n* [使用 GitHub Copilot 的最佳做法](/zh/enterprise-cloud@latest/copilot/get-started/best-practices)\n\n  了解如何充分利用 Copilot。\n\n* [在企业中采用GitHub Copilot](/zh/enterprise-cloud@latest/copilot/get-started/enterprise-ai-governance)\n\n  在不损害控制和治理的情况下采用最新 GitHub Copilot 功能。\n\n* [IDE 中的 GitHub Copilot 代码建议](/zh/enterprise-cloud@latest/copilot/concepts/completions/code-suggestions)\n\n  了解 Copilot 不同 IDE 中的代码建议。\n\n* [GitHub Copilot代码引用](/zh/enterprise-cloud@latest/copilot/concepts/completions/code-referencing)\n\n  GitHub Copilot 检查与公开可用的代码匹配的建议。 任何匹配项都将被丢弃或建议使用代码引用。\n\n* [关于 GitHub Copilot 聊天功能](/zh/enterprise-cloud@latest/copilot/concepts/chat)\n\n  了解如何用于 GitHub Copilot Chat 增强编码体验。\n\n* [关于 GitHub Copilot 云代理](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/about-cloud-agent)\n\n  Copilot 可以研究存储库、创建实现计划，并在分支上更改代码。 你可以查看差异、迭代，并在准备好时创建拉取请求。\n\n* [关于代理管理](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/agent-management)\n\n  使用一个集中式控制页在代理会话之间跳转、检查进度并保持控制状态，而不会丢失位置。\n\n* [关于自定义代理](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/about-custom-agents)\n\n  Custom agents 通过量身定制的协助增强 Copilot。\n\n* [关于 Copilot 自动化](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/about-automations)\n\n  Automations 允许按计划或响应存储库中的事件自动运行 Copilot cloud agent 。\n\n* [关于问题的理由、信心和审批](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/about-automation-rationale-and-approvals)\n\n  会审问题时 automations ，它会解释每个更改，对置信度进行评分，并保留对评审的置信度较低的更改。\n\n* [管理对 GitHub Copilot 云代理的访问权限](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/access-management)\n\n  了解适用于 Copilot cloud agent 和 GitHub Copilot Enterprise 的 GitHub Copilot Business 策略，以及禁用特定存储库的代理。\n\n* [模型上下文协议（MCP）和GitHub Copilot云代理](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/mcp-and-cloud-agent)\n\n  了解有关模型上下文协议(MCP)与Copilot cloud agent的使用。\n\n* [GitHub Copilot云代理的风险和缓解措施](/zh/enterprise-cloud@latest/copilot/concepts/agents/cloud-agent/risks-and-mitigations)\n\n  内置的安全保护措施如何缓解Copilot cloud agent已知风险？\n\n* [关于 GitHub Copilot CLI](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/about-copilot-cli)\n\n  了解如何从命令行使用 Copilot 。\n\n* [比较 GitHub Copilot CLI 自定义功能](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/comparing-cli-features)\n\n  了解可以自定义 Copilot的各种方法：它们执行的操作，以及何时使用它们。\n\n* [取消 GitHub Copilot CLI 操作并回滚更改](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/cancel-and-roll-back)\n\n  了解取消活动 Copilot 操作的不同方法，以及如果结果不符合预期如何回滚会话期间所做的更改。\n\n* [在 GitHub Copilot CLI 中管理上下文](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/context-management)\n\n  Copilot了解如何管理对话上下文、长时间会话期间发生的情况，以及如何保持对上下文窗口的控制。\n\n* [GitHub Copilot CLI 会话的远程控制](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/about-remote-control)\n\n  远程控制允许你从Copilot CLI或GitHub.com监视和引导GitHub Mobile会话，即使你已经离开计算机。\n\n* [关于自定义代理](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/about-custom-agents)\n\n  Custom agents 通过量身定制的协助增强 Copilot。\n\n* [允许 GitHub Copilot CLI 自主工作](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/autopilot)\n\n  CLI 的 Autopilot 模式允许 Copilot CLI 在任务上自主工作，执行多个步骤，直到任务完成。\n\n* [使用 `/fleet` 命令并行运行任务](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/fleet)\n\n  `/fleet`斜杠命令允许Copilot CLI将复杂的请求分解为较小的任务，并并行运行它们，从而最大限度地提高效率和吞吐量。\n\n* [使用GitHub Copilot CLI进行研究](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/research)\n\n  `/research`斜杠命令将Copilot变为你的研究助理，帮助收集有关某个主题的深入信息和洞察。\n\n* [关于 GitHub Copilot CLI 会话数据](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/chronicle)\n\n  你的 Copilot CLI 会话会形成一份可搜索的历史记录，记录你处理过的所有内容。 查询过往会话（使用自然语言）、生成站会报告、获取个性化提示并恢复之前的工作。\n\n* [关于橡皮鸭智能体](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/rubber-duck)\n\n  橡皮鸭智能体是一个内置的批评者，使用与会话驱动模型不同的 AI 模型，针对 Copilot 的计划、代码及测试内容给出具备建设性的补充意见。\n\n* [在 GitHub Copilot CLI 中使用 LSP 服务器](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/lsp-servers)\n\n  LSP 服务器提供 Copilot CLI 精确的代码智能，使它可以在项目中准确导航定义、查找引用和重命名符号。\n\n* [关于 GitHub Copilot CLI 的扩展](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/about-cli-extensions)\n\n  扩展允许你将自己的工具和斜杠命令添加到 GitHub Copilot CLI其中，仅使用 CLI 附带的 SDK。\n\n* [通过工具搜索按需加载工具](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/tool-search)\n\n  工具搜索仅当任务需要外部工具时才允许 Copilot CLI 加载外部工具，从而保持上下文较小。\n\n* [了解本地沙盒的文件系统策略 GitHub Copilot CLI](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-cli/understanding-local-sandboxing)\n\n  启用本地沙盒后，在 Copilot CLI 文件系统策略下运行每个沙盒进程或操作，以控制它可以读取和写入的文件和目录。 了解该策略的生成方式以及如何检查它授予的访问权限。\n\n* [关于 GitHub Copilot 应用](/zh/enterprise-cloud@latest/copilot/concepts/agents/github-copilot-app)\n\n  GitHub Copilot app这是一个桌面应用程序，用于代理驱动的开发，将并行工作流、GitHub集成和 PR 生命周期管理引入一个位置。\n\n* [在 JetBrains IDE 中使用GitHub Copilot](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-in-jetbrains)\n\n  了解在GitHub Copilot中使用JetBrains IDEs的不同方式，包括GitHub Copilot插件、JetBrains AI 助手和Copilot CLI。\n\n* [关于GitHub Copilot 代码评审](/zh/enterprise-cloud@latest/copilot/concepts/agents/code-review)\n\n  Copilot 审查你的拉取请求、识别问题，并建议可通过点击几下即可应用的修复方案。\n\n* [关于GitHub代理工作流](/zh/enterprise-cloud@latest/copilot/concepts/agents/about-github-agentic-workflows)\n\n  在 GitHub Actions 中，使用由 AI 编码代理执行的自然语言指令，自动处理代码仓库中的重复性工作。\n\n* [关于GitHub Copilot内存](/zh/enterprise-cloud@latest/copilot/concepts/agents/copilot-memory)\n\n  Copilot Memory 通过记住有关存储库和个人编码首选项的事实，帮助 Copilot 随着时间的推移变得更加有效。\n\n* [关于钩子 GitHub Copilot](/zh/enterprise-cloud@latest/copilot/concepts/agents/hooks)\n\n  通过在代理执行过程中在关键点执行自定义 shell 命令来扩展和自定义 GitHub Copilot 代理行为。\n\n* [关于 GitHub Copilot 插件](/zh/enterprise-cloud@latest/copilot/concepts/agents/about-plugins)\n\n  插件是可安裝的包，可通过重用代理、技能、钩子和集成来扩展Copilot。\n\n* [关于企业管理的插件标准](/zh/enterprise-cloud@latest/copilot/concepts/agents/about-enterprise-plugin-standards)\n\n  企业管理员可以集中定义用户的插件策略，确保插件可用性一致。\n\n* [关于第三方编码代理](/zh/enterprise-cloud@latest/copilot/concepts/agents/about-third-party-coding-agents)\n\n  你可以结合 Copilot cloud agent 使用第三方编码代理，在 GitHub 上异步处理你的开发任务。\n\n* [关于代理应用](/zh/enterprise-cloud@latest/copilot/concepts/agents/agent-apps)\n\n  Agent apps让您能够直接在GitHub上的工作流中使用合作伙伴构建的代理，并由您的Copilot订阅提供支持。\n\n* [OpenAI Codex](/zh/enterprise-cloud@latest/copilot/concepts/agents/openai-codex)\n\n  使用由 OpenAI Codex 提供支持的 Copilot 编码智能体和 Visual Studio Code 扩展。\n\n* [人类克劳德](/zh/enterprise-cloud@latest/copilot/concepts/agents/anthropic-claude)\n\n  使用 Anthropic Claude 提供支持的 Copilot 编码智能体。\n\n* [关于代理技能](/zh/enterprise-cloud@latest/copilot/concepts/agents/about-agent-skills)\n\n  技能允许 Copilot 执行专用任务。\n\n* [企业代理管理](/zh/enterprise-cloud@latest/copilot/concepts/agents/enterprise-management)\n\n  使用 AI 控件管理代理，维护企业的安全性和合规性标准，并增强开发人员。\n\n* [用于代理监控的 OpenTelemetry](/zh/enterprise-cloud@latest/copilot/concepts/agents/opentelemetry)\n\n  了解 Copilot 代理的表现，以及它们如何与模型和工具交互。\n\n* [关于云和本地沙盒 GitHub Copilot](/zh/enterprise-cloud@latest/copilot/concepts/about-cloud-and-local-sandboxes)\n\n  云和本地沙盒提供独立的执行环境，可在 Copilot 本地计算机或完全隔离的云环境中安全地与代码、工具、文件系统和网络资源进行交互。\n\n* [GitHub Copilot使用情况指标](/zh/enterprise-cloud@latest/copilot/concepts/copilot-usage-metrics/copilot-metrics)\n\n  Copilot 的使用指标可以提供组织中 Copilot 的采用和使用情况的可见性，包括参与度、活动量、代码生成，以及拉取请求生命周期趋势。\n\n* [GitHub Copilot 对话助手的提示设计](/zh/enterprise-cloud@latest/copilot/concepts/prompting/prompt-engineering)\n\n  采用这些策略来改善您的 Copilot 结果。\n\n* [关于自定义GitHub Copilot 响应](/zh/enterprise-cloud@latest/copilot/concepts/prompting/response-customization)\n\n  了解如何自定义 GitHub Copilot 的行为以符合您的偏好和要求。\n\n* [关于模型上下文协议 (MCP)](/zh/enterprise-cloud@latest/copilot/concepts/context/mcp)\n\n  模型上下文协议（MCP）是一种协议，允许通过将其与其他系统集成来扩展其功能 GitHub Copilot 。\n\n* [关于GitHub Copilot Spaces](/zh/enterprise-cloud@latest/copilot/concepts/context/spaces)\n\n  了解如何使用 Copilot Spaces 组织和共享上下文，从而提升 Copilot Chat in GitHub 的效果并帮助协作者。\n\n* [为GitHub Copilot编制存储库索引](/zh/enterprise-cloud@latest/copilot/concepts/context/repository-indexing)\n\n  Copilot 通过为存储库编制索引来提高响应。\n\n* [GitHub Copilot 的内容排除功能](/zh/enterprise-cloud@latest/copilot/concepts/context/content-exclusion)\n\n  可以阻止 Copilot 访问某些文件。\n\n* [关于 Copilot 集成](/zh/enterprise-cloud@latest/copilot/concepts/tools/about-copilot-integrations)\n\n  将Copilot与其他工具和平台集成，以简化工作流。\n\n* [关于Copilot模型的默认可用性](/zh/enterprise-cloud@latest/copilot/concepts/models/default-availability)\n\n  一项策略控制未配置的模型是默认启用还是默认禁用。\n\n* [GitHub Copilot 使用您自己的密钥](/zh/enterprise-cloud@latest/copilot/concepts/models/bring-your-own-key)\n\n  使用您现有的 LLM 提供商与 GitHub Copilot 配合，以降低成本或合并计费。\n\n* [实用工具模型](/zh/enterprise-cloud@latest/copilot/concepts/models/utility-models)\n\n  实用模型为后台 Copilot 功能提供支持。\n\n* [关于 Copilotauto model selection](/zh/enterprise-cloud@latest/copilot/concepts/models/auto-model-selection)\n\n  自动为每个任务选择最佳模型。\n\n* [适用于 GitHub Copilot 的 FedRAMP 兼容模型](/zh/enterprise-cloud@latest/copilot/concepts/models/fedramp-models)\n\n  将用户限制为具有 FedRAMP Moderate 认证的模型。\n\n* [基础和长期支持 （LTS） 模型](/zh/enterprise-cloud@latest/copilot/concepts/models/fallback-and-lts-models)\n\n  了解基础模型、长期支持（LTS）模型，以及它们如何影响企业使用的 GitHub Copilot模型可用性。\n\n* [GitHub Copilot 的使用限制](/zh/enterprise-cloud@latest/copilot/concepts/usage-limits)\n\n  了解 GitHub Copilot 使用限制以及达到限制时该怎么办。\n\n* [个人基于使用情况的计费](/zh/enterprise-cloud@latest/copilot/concepts/billing/usage-based-billing-for-individuals)\n\n  你的 Copilot 计划包含 GitHub AI Credits 的月度配额。 如果你用尽了 AI credits，则可以支付额外的费用来继续工作。\n\n* [About billing for GitHub Copilot in organizations and enterprises](/zh/enterprise-cloud@latest/copilot/concepts/billing/organizations-and-enterprises/fundamentals)\n\n  Learn about pricing and billing cycles for Copilot.\n\n* [Usage-based billing for organizations and enterprises](/zh/enterprise-cloud@latest/copilot/concepts/billing/organizations-and-enterprises/usage-based-billing)\n\n  Under usage-based billing, Copilot usage in organizations and enterprises is measured in AI credits.\n\n* [基于使用情况的计费预算](/zh/enterprise-cloud@latest/copilot/concepts/billing/budgets-for-usage-based-billing)\n\n  在按使用量计费模式下，用户、组织、成本中心和企业层级的预算控制决定如何对 Copilot 使用量提供服务、进行计量计费或加以阻止。\n\n* [关于 Copilot Business 的企业帐户](/zh/enterprise-cloud@latest/copilot/concepts/about-enterprise-accounts-for-copilot-business)\n\n  企业账户使你只能管理 Copilot Business 许可证，而不占用 GitHub Enterprise Cloud 许可证。\n\n* [针对企业和组织的 GitHub Copilot 策略](/zh/enterprise-cloud@latest/copilot/concepts/policies)\n\n  控制面向您的用户提供的 GitHub Copilot 功能和模型的可用性。\n\n* [公司中的 MCP 服务器使用情况](/zh/enterprise-cloud@latest/copilot/concepts/mcp-management)\n\n  你可以管理 MCP 服务器使用情况，为开发人员提供有价值的工具，同时保持安全性和合规性。\n\n* [GitHub Copilot 的网络设置](/zh/enterprise-cloud@latest/copilot/concepts/network-settings)\n\n  可以通过 HTTP 代理连接到 GitHub Copilot 并使用自定义证书。\n\n* [了解新功能和模型](/zh/enterprise-cloud@latest/copilot/concepts/learning-about-new-features-and-models)\n\n  随时了解 GitHub Copilot 功能和模型，并就为企业启用这些功能做出自信的决定。\n\n* [为自己设置GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/set-up-copilot/enable-copilot/set-up-for-self)\n\n  开始使用GitHub Copilot在GitHub上更快地编写代码。\n\n* [为您的组织设置 GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/set-up-copilot/enable-copilot/set-up-for-organization)\n\n  为组织启用 GitHub Copilot ，以便成员可以更快地编写代码。\n\n* [为你的企业设置 GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/set-up-copilot/enable-copilot/set-up-for-enterprise)\n\n  在整个企业中启用 GitHub Copilot ，以便开发人员可以更快地编写代码。\n\n* [仅为 GitHub Copilot Business 设置企业](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/set-up-copilot/enable-copilot/set-up-a-dedicated-enterprise-for-copilot-business)\n\n  使用企业帐户管理 Copilot Business 许可证，而无需使用 GitHub Enterprise Cloud 许可证。\n\n* [以学生身份免费访问GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/set-up-copilot/enable-copilot/set-up-for-students)\n\n  以已验证的学生身份免费访问 Copilot高级功能。\n\n* [作为教师或开源维护者免费访问Copilot Pro](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/set-up-copilot/enable-copilot/set-up-for-teachers-and-os-maintainers)\n\n  作为认证的教师或开源维护者，获取免费访问权限 Copilot Pro 。\n\n* [在 GitHub Copilot 中配置对 AI 模型的访问](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/set-up-copilot/configure-access-to-ai-models)\n\n  控制你的组织或企业可以通过 Copilot 使用哪些 AI 模型。\n\n* [Configuring code review by GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review)\n\n  Set up Copilot to review pull requests.\n\n* [为 GitHub Copilot 代码评审配置运行器](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/set-up-copilot/configure-runners)\n\n  为 GitHub 使用自托管运行器或更大规模的 Copilot code review 托管运行器。\n\n* [Copilot Chat上开始使用提示GitHub](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/chat-with-copilot/get-started-with-chat)\n\n  浏览示例提示，询问 Copilot Chat 代码、存储库、拉取请求等。\n\n* [在GitHub中询问有关GitHub Copilot的问题](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/chat-with-copilot/chat-in-github)\n\n  直接从 GitHub 获取有关代码、存储库和开发问题的即时解答。\n\n* [在 GitHub Mobile 中提出GitHub Copilot问题](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/chat-with-copilot/chat-in-mobile)\n\n  在GitHub Mobile中询问编码问题、浏览存储库，并获得有关合并请求的帮助。\n\n* [为你的项目自定义 Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview)\n\n  在GitHub上设置自定义设置、创建专用代理，并整理项目上下文。\n\n* [为 GitHub Copilot 添加个人自定义说明](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-personal-instructions)\n\n  自定义 GitHub Copilot Chat 响应以匹配个人首选项。\n\n* [为GitHub Copilot添加存储库自定义说明](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions)\n\n  创建存储库自定义说明文件，以提供有关 Copilot 如何了解项目以及如何生成、测试和验证其更改的其他上下文。\n\n* [为 GitHub Copilot 添加组织自定义指令](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-organization-instructions)\n\n  为你的组织成员自定义 Copilot 响应。\n\n* [为Copilot cloud agent创建自定义代理](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/create-custom-agents)\n\n  可以为特定开发任务创建具有定制专业知识的专用代理。\n\n* [为 GitHub Copilot 添加代理技能](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/add-skills)\n\n  可以在处理特定任务时修改 Copilot其行为和能力。\n\n* [使用挂钩自定义代理工作流](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/use-hooks)\n\n  在智能体执行期间的关键节点运行自动化检查（如代码检查、格式化或安全扫描），以强制执行质量标准。\n\n* [配置开发环境](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment)\n\n  预安装工具和依赖项，以便 Copilot cloud agent 可以可靠地生成、测试和验证更改。\n\n* [为 Copilot 云代理配置机密和变量](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/configure-secrets-and-variables)\n\n  安全地传递机密和变量， Copilot cloud agent 以便它可以访问专用资源并配置 MCP 服务器。\n\n* [在您的组织或企业中测试和发布custom agents](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/test-custom-agents)\n\n  在向公司发布前，确保 custom agents 性能良好且合规。\n\n* [自定义或禁用GitHub Copilot的防火墙](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/customize-the-firewall)\n\n  了解如何控制 Copilot cloud agent 和 Copilot code review 可访问的域和 URL。\n\n* [为存储库配置 MCP 服务器](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers)\n\n  为你的存储库配置模型上下文协议 (MCP) 服务器，使 Copilot cloud agent 和 Copilot code review 能够访问外部工具和数据源。\n\n* [创建 GitHub Copilot Spaces](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/copilot-spaces/create-copilot-spaces)\n\n  创建工作区，以组织和集中相关内容，从而为特定任务提供正确的上下文，为 Copilot 的响应建立事实依据。\n\n* [使用 GitHub Copilot Spaces 与他人协作](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/customize-copilot/copilot-spaces/collaborate-with-others)\n\n  共享 Copilot Spaces 以支持协作和知识共享。\n\n* [使用GitHub Copilot创建或更新问题](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/copilot-for-github-tasks/use-copilot-to-create-or-update-issues)\n\n  用于 Copilot 从自然语言或图像快速生成结构化、高质量的问题，而无需手动填写每个字段。\n\n* [使用 GitHub Copilot 创建拉取请求摘要](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/copilot-for-github-tasks/create-a-pr-summary)\n\n  生成 PR 更改的 AI 驱动摘要，帮助审查者快速理解你做了什么以及为什么这样做。\n\n* [通过 Copilot 对话助手 使用 GitHub MCP 服务器](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/copilot-for-github-tasks/using-the-github-mcp-server-from-copilot-chat)\n\n  从GitHub直接执行Copilot Chat in GitHub任务，例如创建分支、合并拉取请求和搜索用户，而无需设置。\n\n* [开始使用 Copilot 上的 GitHub 智能体](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/use-copilot-agents/overview)\n\n  试试 Copilot cloud agent 的端到端过程，大约用时十分钟。\n\n* [启动由 Copilot 代理执行的任务在 GitHub](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/use-copilot-agents/kick-off-a-task)\n\n  确定是立即由 Copilot cloud agent 创建拉取请求，还是先在分支上工作以供查看和迭代。\n\n* [使用 Copilot cloud agent 进行代码更改的研究、计划和迭代](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/use-copilot-agents/research-plan-iterate)\n\n  对存储库执行深入研究，创建实现计划，并在分支上进行迭代代码更改，然后在准备就绪时创建拉取请求。\n\n* [管理智能体会话](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/use-copilot-agents/manage-and-track-agents)\n\n  实时监视代理的进度，使用后续提示对其进行引导，并停止或存档会话。\n\n* [使用 GitHub Copilot code review 于 GitHub](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/use-copilot-agents/copilot-code-review)\n\n  GitHub Copilot 会评审你的拉取请求并建议可随时应用的更改，以便快速获得有关每项提交的可操作反馈。\n\n* [查看来自 Copilot 的输出](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-on-github/use-copilot-agents/review-copilot-output)\n\n  Copilot 拉取请求应得到与任何贡献相同的彻底审查。\n\n* [为自己设置GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/set-up/set-up-for-self)\n\n  请按照以下步骤开始使用Copilot。\n\n* [在环境中安装 GitHub Copilot 扩展](/zh/enterprise-cloud@latest/copilot/how-tos/set-up/install-copilot-extension)\n\n  若要在首选编码环境中使用 Copilot ，请遵循所选 IDE 的步骤。\n\n* [使用 GitHub Copilot 在 IDE 中获取代码建议](/zh/enterprise-cloud@latest/copilot/how-tos/get-code-suggestions/get-ide-code-suggestions)\n\n  使用 GitHub Copilot 在编辑器中获取代码建议。\n\n* [查找与 GitHub Copilot 建议匹配的公共代码](/zh/enterprise-cloud@latest/copilot/how-tos/get-code-suggestions/find-matching-code)\n\n  了解如何在GitHub Copilot 提供与公开代码匹配的建议时查看代码引用。\n\n* [在 IDE 中使用 GitHub Copilot 聊天提示语入门](/zh/enterprise-cloud@latest/copilot/how-tos/chat-with-copilot/get-started-with-chat-in-your-ide)\n\n  大致了解在 IDE 中使用的 Copilot Chat 方法。\n\n* [在 IDE 中向 GitHub Copilot 提问问题](/zh/enterprise-cloud@latest/copilot/how-tos/chat-with-copilot/chat-in-ide)\n\n  在 Copilot Chat 编辑器中使用，提供代码建议、说明代码、生成单元测试和建议代码修复。\n\n* [在Windows 终端中向GitHub Copilot提问的问题](/zh/enterprise-cloud@latest/copilot/how-tos/chat-with-copilot/chat-in-windows-terminal)\n\n  你可以在 Copilot 中使用 Windows Terminal 来获取命令行的建议和解释。\n\n* [GitHub Copilot CLI 的最佳做法](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/cli-best-practices)\n\n  了解如何充分利用 GitHub Copilot CLI。\n\n* [安装 GitHub Copilot CLI](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli)\n\n  了解如何安装 Copilot CLI ，以便直接从命令行使用 Copilot 。\n\n* [配置 GitHub Copilot CLI](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli)\n\n  为 Copilot CLI 配置受信任的目录、工具访问以及路径和 URL 权限\n\n* [为 GitHub Copilot CLI 添加 LSP 服务器](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers)\n\n  可以添加 LSP 服务器来提供 Copilot CLI 精确的代码智能，提高其导航定义、查找引用和重命名符号的能力。\n\n* [使用 GitHub Copilot CLI](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/overview)\n\n  了解如何从命令行使用 GitHub Copilot 。\n\n* [允许和拒绝工具使用](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools)\n\n  控制可以使用哪些工具 Copilot CLI 以避免意外更改。\n\n* [通过 Copilot CLI 使用语音输入](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/voice-input)\n\n  使用 CLI 的语音转文本功能，向 GitHub Copilot CLI说出你的提示词，而不必键入它们。\n\n* [连接GitHub Copilot CLI到VS Code](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/connecting-vs-code)\n\n  连接Copilot CLI和VS Code以共享上下文、信任设置和输出。\n\n* [浏览来自 GitHub Copilot CLI 的问题、拉取请求和代码片段](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/browse-issues-prs-gists)\n\n  使用交互式 Copilot CLI 会话中的选项卡浏览问题、拉取请求和 Gist，而无需离开终端。\n\n* [回退 GitHub Copilot CLI 会话期间所做的更改](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/roll-back-changes)\n\n  将 Copilot CLI 会话倒退到以前的提示，以撤消会话历史记录中的更改，并选择性地还原文件。\n\n* [Working with multiple GitHub Copilot CLI sessions](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/work-with-multiple-sessions)\n\n  Run several Copilot CLI sessions at once and use the sidebar to quickly move between them.\n\n* [通过其他设备控制 GitHub Copilot CLI 会话](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/steer-remotely)\n\n  为 Copilot CLI 会话启用远程控制，以便你可以监视进度、响应提示以及继续从 GitHub.com 或 GitHub Mobile继续工作。\n\n* [使用 /pr 命令管理拉取请求](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/manage-pull-requests)\n\n  使用`/pr`斜杠命令直接从Copilot CLI查看、创建和修复拉取请求。\n\n* [使用 `/fleet` 命令加快任务完成速度](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/speed-up-task-completion)\n\n  了解如何使用 `/fleet` 斜杠命令加快完成多步骤实现计划的速度。\n\n* [使用 GitHub Copilot CLI 会话数据](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli/chronicle)\n\n  恢复以前的 Copilot CLI 会话，使用 `/chronicle` 斜杠命令从会话历史记录中获取见解，并询问 Copilot 有关 CLI 使用情况的问题。\n\n* [快速入门：利用GitHub Copilot CLI实现自动化](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/automate-copilot-cli/quickstart)\n\n  使用 Copilot CLI 在几分钟内创建自动化程序。\n\n* [以编程方式运行GitHub Copilot CLI](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/automate-copilot-cli/run-cli-programmatically)\n\n  Copilot CLI在终端、脚本或 Actions 工作流中使用。\n\n* [在 GitHub Copilot CLI 中安排提示](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/automate-copilot-cli/schedule-prompts)\n\n  使用 `/every` 和 `/after` 斜杠命令，按定期计划或在指定延迟后向 Copilot 提交提示。\n\n* [使用 Copilot CLI 和 GitHub Actions 自动执行任务](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/automate-copilot-cli/automate-with-actions)\n\n  GitHub Copilot CLI 集成到 GitHub Actions 的工作流中。\n\n* [关于自定义的概述 GitHub Copilot CLI](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/overview)\n\n  Copilot CLI 针对特定项目和工作流进行自定义时，效果最佳。\n\n* [为 GitHub Copilot CLI 添加自定义说明](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/add-custom-instructions)\n\n  提供 Copilot 有关如何理解你的项目以及如何构建、测试和验证其更改的额外背景信息。\n\n* [使用 `/settings` 命令更改设置](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/change-settings)\n\n  使用GitHub Copilot CLI斜杠命令查看和更改`/settings`的个人设置。\n\n* [与 GitHub Copilot CLI 一起使用挂钩](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/use-hooks)\n\n  在代理执行期间，在关键点使用自定义 shell 命令扩展 GitHub Copilot 代理行为。\n\n* [为 GitHub Copilot CLI 添加代理技能](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/add-skills)\n\n  修改 Copilot 在执行特定任务时的行为和能力。\n\n* [为 GitHub Copilot CLI 添加 MCP 服务器](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers)\n\n  通过连接模型上下文协议 （MCP） 服务器来扩展 Copilot功能，以提供其他工具和上下文。\n\n* [为 GitHub Copilot CLI 创建和使用自定义智能体](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli)\n\n  为特定开发任务创建具有定制专业知识的专用代理。\n\n* [在 GitHub Copilot CLI 中使用自己的 LLM 模型](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/use-byok-models)\n\n  您可以通过提供自己的 API 密钥，在 Copilot 中使用您选择的外部提供商的模型。\n\n* [查找并安装插件适用于GitHub Copilot CLI](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/plugins-finding-installing)\n\n  通过安装社区或团队创建的插件来扩展 Copilot功能。\n\n* [为 GitHub Copilot CLI 创建插件](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/plugins-creating)\n\n  创建插件以在易于安装的包中共享自定义项。\n\n* [为 GitHub Copilot CLI 创建插件市场](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/customize-copilot/plugins-marketplace)\n\n  您可以通过将您创建的 CLI 插件添加到市场，使其更容易安装。\n\n* [为企业管理 Copilot CLI](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/administer-copilot-cli-for-your-enterprise)\n\n  控制 Copilot CLI 在企业内部的使用。\n\n* [在 GitHub Actions 中使用 GITHUB\\_TOKEN 运行 Copilot CLI](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-cli/use-copilot-cli-in-actions)\n\n  在Copilot CLI工作流中使用内置的GitHub Actions运行`GITHUB_TOKEN`，无需personal access token。\n\n* [使用本地沙盒](/zh/enterprise-cloud@latest/copilot/how-tos/cloud-and-local-sandboxes/using-local-sandboxing)\n\n  启用本地沙盒，以便在 Copilot CLI 操作系统沙盒中代表你运行命令和工具。\n\n* [配置本地沙盒设置](/zh/enterprise-cloud@latest/copilot/how-tos/cloud-and-local-sandboxes/configuring-local-sandbox-settings)\n\n  在 `/sandbox` 中使用 Copilot CLI 斜杠命令，以控制本地沙盒对文件系统访问、网络连接能力和系统能力的限制方式。\n\n* [自定义 GitHub Copilot 应用](/zh/enterprise-cloud@latest/copilot/how-tos/github-copilot-app/customize-github-copilot-app)\n\n  自定义 GitHub Copilot app，使其适应您和您的团队的工作方式。\n\n* [在 GitHub Copilot 应用中使用代理会话](/zh/enterprise-cloud@latest/copilot/how-tos/github-copilot-app/agent-sessions)\n\n  同时运行多个独立代理会话，每个会话都有其自己的分支，并使用不同的会话模式、模型和工具引导它们。\n\n* [在 GitHub Copilot 应用中使用画布扩展](/zh/enterprise-cloud@latest/copilot/how-tos/github-copilot-app/working-with-canvas-extensions)\n\n  使用 GitHub Copilot app 中的画布来构建共享的、由代理驱动的成果和界面，以支持人与代理协作。\n\n* [使用 GitHub Copilot 应用管理问题和拉取请求](/zh/enterprise-cloud@latest/copilot/how-tos/github-copilot-app/managing-issues-and-pull-requests)\n\n  接手一个问题，指示智能体实施更改，并提交拉取请求，所有这些操作都可以在 GitHub Copilot app 中完成。\n\n* [在 GitHub Copilot 应用中使用自动化](/zh/enterprise-cloud@latest/copilot/how-tos/github-copilot-app/using-automations)\n\n  自动执行定期代理任务，使其按计划或按需运行，而无需手动干预。\n\n* [在 GitHub Copilot 应用中使用自己的 LLM 模型](/zh/enterprise-cloud@latest/copilot/how-tos/github-copilot-app/use-byok-models)\n\n  通过提供您自己的 API 密钥，接入您选择的外部提供商的模型，然后在智能体会话中使用该模型。\n\n* [使用深层链接打开 GitHub Copilot 应用](/zh/enterprise-cloud@latest/copilot/how-tos/github-copilot-app/open-with-deep-links)\n\n  使用深层链接从终端、票证和内部工具启动 GitHub Copilot app ，以便用户可以直接跳入正确的存储库、拉取请求、自动化或会话。\n\n* [构建你的第一个由 Copilot 提供支持的应用](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/getting-started)\n\n  在本教程中，你将使用 Copilot SDK 生成命令行助手。 你将先从基础内容开始，加入流式响应，然后再添加自定义工具——让 Copilot 能够调用你的代码。\n\n* [Authentication](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/auth/authenticate)\n\n  GitHub Copilot SDK 支持多种身份验证方法以适应不同的用例。 选择最适合部署方案的方法。\n\n* [BYOK （自带密钥）](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/auth/byok)\n\n  BYOK 允许你通过模型提供程序将 Copilot SDK 与自己的 API 密钥一起使用，从而绕过GitHub Copilot身份验证。 这对于企业部署、自定义模型托管或需要与模型提供商直接计费时非常有用。\n\n* [服务器到服务器身份验证](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/auth/server-to-server-tokens)\n\n  当服务需要在没有用户凭据的情况下代表组织发起 Copilot 请求时，请使用短期有效的安装访问令牌。 在GitHub Actions中，改用内置`GITHUB_TOKEN`。\n\n* [代理循环](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/agent-loop)\n\n  Copilot CLI 如何端到端处理用户消息：从提示到 `session.idle`。\n\n* [引文](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/citations)\n\n  引文将助手响应的跨度链接回支持它们的源。 创建或恢复会话时打开 `enableCitations` ，然后读取 `citations` 事件上的 `assistant.message` 有效负载，以呈现脚注、源列表或内联链接。\n\n* [云会话](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/cloud-sessions)\n\n  云会话通过 Mission Control 在 GitHub 托管的计算上运行 Copilot 任务。 当应用应创建远程执行的会话，而不是在用户的计算机或服务器上启动本地 Copilot CLI 会话时，请使用它们。\n\n* [上下文清除和终端工具](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/context-management)\n\n  当主机需要替换当前会话上下文而不替换会话时使用 `session.history.clearContext` 。 典型用途包括移交和主机管理的上下文生命周期策略。\n\n* [自定义代理和子代理编排](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/custom-agents)\n\n  使用限定范围的工具和提示来定义专用代理，然后让 Copilot 在单个会话中将它们编排为子代理。 有关并行调度多个子代理，请参阅 机队模式。\n\n* [机队模式](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/fleet-mode)\n\n  机群模式是 Copilot 的一种并行编排模式，适用于可拆分为由独立子代理分别处理的工作。 在运行时研究笔记中，机群模式被描述为“运行时内置的模式，通过 `task` 工具并行调度多个子智能体，并以 SQL 待办事项作为共享的协调状态”。 当一个父会话需要协调多个辅助角色、收集其结果，并使用合并后的上下文继续对话时，请使用此模式。\n\n* [使用挂钩](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/hooks)\n\n  挂钩使你能够将自定义逻辑插入到Copilot会话的每个阶段，从启动的那一刻起，到每次用户提示和工具调用，到它结束的那一刻。 本指南将演练实际用例，以便在不修改核心代理行为的情况下交付权限、审核、通知等。\n\n* [图像输入](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/image-input)\n\n  将图像作为附件发送到Copilot会话。 可通过两种方法附加图像：\n\n* [将 MCP 服务器与 GitHub Copilot SDK 配合使用](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/mcp)\n\n  Copilot SDK 可以与 **MCP 服务器**（模型上下文协议）集成，以使用外部工具扩展助手的功能。 MCP 服务器作为单独的进程运行，并公开Copilot可在会话期间调用的工具（函数）。\n\n* [插件目录](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/plugin-directories)\n\n  **插件**是一个目录，它在单个清单后面捆绑了 SDK 扩展 — 技能、钩子、MCP 服务器、自定义智能体和 LSP 配置。 将 SDK 指向插件目录会加载插件提供的所有内容，因此你可以在每个主机应用程序中交付可重用的功能包，而无需在每个主机应用程序中编写每扩展连接。\n\n* [远程会话](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/remote-sessions)\n\n  远程会话允许用户通过 [Mission Control](https://github.com) 从 GitHub Web 和移动设备访问其Copilot会话。 启用后，SDK 会将每个会话连接到任务控制，生成一个 URL，可以作为链接或 QR 码共享。\n\n* [会话限制](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/session-limits)\n\n  会话限制允许应用程序为Copilot会话设置 AI 信用额度预算。 在创建或恢复会话时使用 `sessionLimits` ，为当前会计窗口设置软上限。\n\n* [会话恢复和持久性](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/session-persistence)\n\n  本指南将指导你完成 SDK 的会话持久性功能 -- 如何暂停工作、稍后恢复工作和管理生产环境中的会话。\n\n* [自定义技能](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/skills)\n\n  技能是用于扩展 Copilot 功能的可复用提示模块。 从目录中加载技能，为特定域或工作流提供Copilot专用功能。\n\n* [引导和排队](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/steering-and-queueing)\n\n  两种交互模式允许用户在代理已在工作时发送消息：**引导**会在当前轮次进行中重定向代理，而**排队**会先缓冲消息，待当前轮次完成后再按顺序处理。\n\n* [流式处理会话事件](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/streaming-events)\n\n  Copilot 代理执行的每个操作——思考、编写代码、运行工具——都会以 **session 事件** 的形式发出，供你订阅。 本指南是每个事件类型的字段级参考，因此你确切地知道在未读取 SDK 源的情况下预期的数据。\n\n* [使用情况和计费指标](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/features/usage-and-billing)\n\n  本指南演示如何从 Copilot SDK 应用程序读取令牌计数、上下文窗口利用率、AI 信用额度和帐户配额。 TypeScript、Python、Go、.NET、Java 和 Rust 都显示了示例。\n\n* [错误处理挂钩](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/hooks/error-handling)\n\n  当会话执行期间发生错误时调用 `onErrorOccurred` 钩子函数。 使用它可执行以下操作：\n\n* [会话挂钩](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/hooks/hooks-overview)\n\n  钩子允许你在对话生命周期的关键节点拦截并自定义 Copilot 会话的行为。 使用挂钩可以：\n\n* [工具使用后挂钩](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/hooks/post-tool-use)\n\n  `onPostToolUse` 钩子会在工具**成功**执行**后**被调用。 使用它可执行以下操作：\n\n* [工具使用前挂钩](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/hooks/pre-tool-use)\n\n  在 `onPreToolUse` 工具执行 **之前** 调用挂钩。 使用它可执行以下操作：\n\n* [会话生命周期挂钩](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/hooks/session-lifecycle)\n\n  会话生命周期挂钩使你能够响应会话开始和结束事件。 使用它们来：\n\n* [用户提示提交挂钩](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/hooks/user-prompt-submitted)\n\n  用户提交消息时将调用`onUserPromptSubmitted`钩子。 使用它可执行以下操作：\n\n* [用户提示转换钩子](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/hooks/user-prompt-transformed)\n\n  `userPromptTransformed` 钩子会在运行时将生成的上下文添加到已提交的提示后运行，但会在生成的内容保存到会话历史记录中或发送给模型之前运行。\n\n* [Microsoft代理框架集成](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/integrations/microsoft-agent-framework)\n\n  在 [Microsoft Agent Framework](https://devblogs.microsoft.com/semantic-kernel/build-ai-agents-with-github-copilot-sdk-and-microsoft-agent-framework/)（MAF）中将 Copilot SDK 用作代理提供程序，并结合 Azure OpenAI、Anthropic 和其他提供程序来构建多代理工作流。\n\n* [Copilot SDK 的 OpenTelemetry 检测](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/observability/opentelemetry)\n\n  本指南演示如何将 OpenTelemetry 跟踪添加到 Copilot SDK 应用程序。\n\n* [支持 BYOK（自带密钥）的 Azure 托管标识](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/setup/azure-managed-identity)\n\n  GitHub Copilot SDK 的 BYOK （自带密钥） 支持静态 API 密钥，但Azure部署通常使用托管标识（Microsoft Entra ID），而不是长期密钥。 GitHub Copilot SDK 旨在使用Azure标识 SDK 进行组合，以实现最大的灵活性。 提供一个 Bearer 令牌提供程序回调，以便使用 Azure 标识 SDK API 在需要时获取新的令牌。\n\n* [后端服务设置](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/setup/backend-services)\n\n  在服务器端应用程序中运行Copilot SDK-API、Web 后端、微服务和后台辅助角色。 CLI 作为一个无头服务器运行，你的后端代码通过网络连接到它。\n\n* [默认设置（随附的 CLI）](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/setup/bundled-cli)\n\n  Node.js 和.NET SDK 包括 Copilot CLI 作为依赖项 ， 你的应用附带了它所需的一切，无需额外的安装或配置。\n\n* [安装指南](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/setup/choosing-a-setup-path)\n\n  这些指南将指导你配置特定用例的 Copilot SDK，从个人端项目到为数千个用户提供服务的生产平台。\n\n* [GitHub OAuth 设置](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/setup/github-oauth)\n\n  让用户使用其GitHub帐户进行身份验证，以便通过应用程序使用Copilot。 这支持个人帐户、组织成员身份和企业标识。\n\n* [本地 CLI 设置](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/setup/local-cli)\n\n  使用特定的 CLI 二进制文件，而不是 SDK 的自动 CLI 管理。 这是一个高级选项-你显式提供 CLI 路径，你负责确保与 SDK 的版本兼容性。\n\n* [多租户与服务器部署](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/setup/multi-tenancy)\n\n  多用户服务器模式是指在为多个用户、租户、工作区或集成账户提供服务的后端代码中运行 Copilot SDK。 在此设置中，应用程序拥有请求路由和授权，而 SDK 和运行时提供每会话状态、每会话身份验证和显式工具注册，因此一个用户的会话不会继承其他用户的工具或标识。\n\n* [缩放和多租户](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/setup/scaling)\n\n  将 Copilot SDK 部署设计为可为多个用户提供服务、处理并发会话，并可在整个基础设施中实现横向扩展。 本指南介绍会话隔离模式、缩放拓扑和生产最佳做法。\n\n* [SDK 和 CLI 兼容性](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/troubleshooting/compatibility)\n\n  本文档概述了通过 SDK 提供哪些Copilot CLI 功能，以及哪些功能仅限 CLI。\n\n* [调试指南](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/troubleshooting/debugging)\n\n  本指南介绍所有受支持的语言中Copilot SDK 的常见问题和调试技术。\n\n* [MCP 服务器调试指南](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-sdk/troubleshooting/mcp-debugging)\n\n  本指南介绍在使用 Copilot SDK 时特定于 MCP（模型上下文协议）服务器的调试技术。\n\n* [启动GitHub Copilot会话](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/start-copilot-sessions)\n\n  选择启动 Copilot cloud agent 会话的首选方法。\n\n* [使用 Copilot 云代理创建自动化](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/create-automations)\n\n  创建和管理 automations 以按计划运行 Copilot cloud agent 或响应事件。\n\n* [管理问题的依据、置信度和审批](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/manage-rationale-confidence-approvals)\n\n  为由 automation 处理的问题设置和管理处理依据、置信度和批准。\n\n* [更改 GitHub Copilot 云代理的 AI 模型](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/changing-the-ai-model)\n\n  在支持的入口点中，在启动任务 Copilot cloud agent时，可以选择所使用的模型，对于支持的模型，推理级别。\n\n* [配置 GitHub Copilot 云代理的设置](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/configuring-agent-settings)\n\n  了解如何配置 Copilot cloud agent 的设置\n\n* [在 IDE 中创建自定义 Copilot cloud agent 代理](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/create-custom-agents-in-your-ide)\n\n  可以为特定开发任务创建具有定制专业知识的专用代理。\n\n* [在 GitHub 上使用 Copilot 云代理](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/use-cloud-agent-on-github)\n\n  直接在 Copilot cloud agent 上启动 GitHub 会话，然后根据结果不断迭代，全程无需离开浏览器。\n\n* [Using Copilot cloud agent on GitHub Mobile](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/use-cloud-agent-on-mobile)\n\n  Start and track Copilot cloud agent sessions from the GitHub Mobile app.\n\n* [使用代理应用](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/use-agent-apps)\n\n  可从议题、拉取请求评论或 GitHub 上的 Agents UI 中启动合作伙伴构建的代理。\n\n* [在 IDE 中使用Copilot云代理](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/use-cloud-agent-in-your-ide)\n\n  从 Copilot cloud agent、JetBrains IDE、Eclipse 和 Visual Studio Code 启动并跟踪 Visual Studio 会话。\n\n* [通过 API 使用 Copilot 云代理](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/use-cloud-agent-via-the-api)\n\n  可以使用 REST API 直接启动和管理 Copilot cloud agent 任务，并使用 REST 和 GraphQL API 将问题分配给Copilot。\n\n* [从 GitHub CLI 使用 Copilot 云代理](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/use-cloud-agent-from-cli)\n\n  从Copilot cloud agent启动并跟踪GitHub CLI会话。\n\n* [通过 GitHub MCP 服务器使用 Copilot 云代理](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/use-cloud-agent-with-mcp)\n\n  从支持模型上下文协议（MCP）的任何 IDE 或代理工具启动 Copilot cloud agent 会话。\n\n* [在 Raycast 中使用 Copilot 云代理](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/use-cloud-agent-from-raycast)\n\n  从 Raycast 启动器启动和跟踪 Copilot cloud agent 会话。\n\n* [GitHub Copilot云代理故障排除](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/cloud-agent/troubleshoot-cloud-agent)\n\n  了解如何解决将任务分配到Copilot时可能出现的问题。\n\n* [使用 GitHub Copilot 代码审查](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review)\n\n  了解如何向 GitHub Copilot请求代码评审。\n\n* [管理个人帐户的 Copilot 内存](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/copilot-memory/manage-for-yourself)\n\n  查看和管理 Copilot 已从你与其的互动中存储的编码约定、偏好设置及其他信息。\n\n* [管理组织或企业的 Copilot 内存](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/copilot-memory/manage-as-administrator)\n\n  管理组织或企业的 Copilot Memory 设置和存储内存。\n\n* [将 Copilot 云代理与 Slack 集成](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-integrations/integrate-cloud-agent-with-slack)\n\n  在 Slack 工作区内，向 Copilot 云智能体提供上下文并打开拉取请求。\n\n* [将 Copilot 云代理与 Teams 集成](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-integrations/integrate-cloud-agent-with-teams)\n\n  你可以在 Teams 中使用 GitHub 集成，以便在 Team 频道内提供上下文并打开拉取请求。\n\n* [将 Copilot 云代理与 Jira 集成](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-integrations/integrate-cloud-agent-with-jira)\n\n  你可以在 Jira 中使用 GitHub 集成，以便在 Jira 工作区内提供上下文并打开拉取请求。\n\n* [将 Copilot 云代理与 Linear 集成](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-integrations/integrate-cloud-agent-with-linear)\n\n  使用 Linear 中的 Copilot 集成，可在 Linear 工作区内直接提供上下文、自定义智能体运行方式以及打开拉取请求。\n\n* [将 Copilot 云代理与 Azure Boards 集成](/zh/enterprise-cloud@latest/copilot/how-tos/copilot-integrations/integrate-cloud-agent-with-azure-boards)\n\n  使用 Azure Boards 中的 Copilot 集成将工作项直接发送到 Copilot cloud agent 并生成拉取请求，全部来自您的 Azure DevOps 工作区。\n\n* [更改 GitHub Copilot 对话助手 的 AI 模型](/zh/enterprise-cloud@latest/copilot/how-tos/use-ai-models/change-the-chat-model)\n\n  了解如何为 Copilot Chat 在不同模型之间切换。\n\n* [更改适用于 GitHub Copilot 内联建议的 AI 模型](/zh/enterprise-cloud@latest/copilot/how-tos/use-ai-models/change-the-completion-model)\n\n  了解如何将 Copilot 内联建议的默认 LLM 更改为其他模型。\n\n* [使用GitHub Copilot Spaces](/zh/enterprise-cloud@latest/copilot/how-tos/provide-context/use-copilot-spaces/use-copilot-spaces)\n\n  使用空格让 Copilot 的响应贴合特定任务的正确上下文。\n\n* [使用 MCP（模型上下文协议）服务器扩展 GitHub Copilot 对话助手](/zh/enterprise-cloud@latest/copilot/how-tos/provide-context/use-mcp-in-your-ide/extend-copilot-chat-with-mcp)\n\n  将 MCP 服务器连接到 Copilot Chat 共享来自其他应用程序的上下文。\n\n* [设置 GitHub MCP 服务器](/zh/enterprise-cloud@latest/copilot/how-tos/provide-context/use-mcp-in-your-ide/set-up-the-github-mcp-server)\n\n  了解如何配置GitHub模型上下文协议 （MCP） 服务器。\n\n* [为 GitHub Enterprise 配置 GitHub MCP 服务器](/zh/enterprise-cloud@latest/copilot/how-tos/provide-context/use-mcp-in-your-ide/enterprise-configuration)\n\n  了解如何将 GitHub Model Context Protocol (MCP) 服务器配置为与 GitHub Enterprise Server 或 带有数据驻留权的 GitHub Enterprise Cloud 一起使用。\n\n* [为 GitHub MCP 服务器配置工具集](/zh/enterprise-cloud@latest/copilot/how-tos/provide-context/use-mcp-in-your-ide/configure-toolsets)\n\n  了解如何为 GitHub MCP 服务器配置工具集和工具，实现精细控制和优化性能。\n\n* [在 IDE 中使用 GitHub MCP 服务器](/zh/enterprise-cloud@latest/copilot/how-tos/provide-context/use-mcp-in-your-ide/use-the-github-mcp-server)\n\n  了解如何使用 GitHub 模型上下文协议 （MCP） 服务器直接从 IDE 中的 Copilot Chat 与存储库、问题、拉取请求和其他GitHub功能进行交互。\n\n* [在 IDE 中更改 MCP 注册表](/zh/enterprise-cloud@latest/copilot/how-tos/provide-context/use-mcp-in-your-ide/change-mcp-registry)\n\n  自定义可用于 Copilot Chat 的 MCP 注册表。\n\n* [在 IDE 中添加 GitHub Copilot 的存储库自定义说明](/zh/enterprise-cloud@latest/copilot/how-tos/configure-custom-instructions-in-your-ide/add-repository-instructions-in-your-ide)\n\n  创建存储库自定义说明文件，以提供有关 Copilot 如何了解项目以及如何生成、测试和验证其更改的其他上下文。\n\n* [从GitHub Copilot中排除内容](/zh/enterprise-cloud@latest/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot)\n\n  了解如何防止 Copilot 访问某些内容。\n\n* [检查对 GitHub Copilot 的内容排除项的更改](/zh/enterprise-cloud@latest/copilot/how-tos/configure-content-exclusion/review-changes)\n\n  可以跟踪存储库和组织中内容排除的更改。\n\n* [使用 GitHub CLI Copilot 扩展](/zh/enterprise-cloud@latest/copilot/how-tos/use-copilot-for-common-tasks/use-copilot-in-the-cli)\n\n  本文提供了有关用于替代 Copilot 的 GitHub CLI 扩展的详细信息。\n\n* [为 GitHub Copilot 配置网络设置](/zh/enterprise-cloud@latest/copilot/how-tos/configure-personal-settings/configure-network-settings)\n\n  可以通过 HTTP 代理连接到 GitHub Copilot 并使用自定义证书。\n\n* [在环境中配置 GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/configure-personal-settings/configure-in-ide)\n\n  可以在受支持的 IDE 中启用、配置或禁用 GitHub Copilot 。\n\n* [在 GHE.com 上将 GitHub Copilot 与帐户配合使用](/zh/enterprise-cloud@latest/copilot/how-tos/configure-personal-settings/authenticate-to-ghecom)\n\n  更新你的开发环境，以访问 Copilot 数据驻留站点帐户上的 GHE.com 套餐。\n\n* [监控您的GitHub AI Credits使用情况](/zh/enterprise-cloud@latest/copilot/how-tos/manage-and-track-spending/monitor-ai-usage)\n\n  了解如何在使用 AI credits 时监控您所使用的 Copilot。\n\n* [管理公司对 GitHub Copilot 的支出](/zh/enterprise-cloud@latest/copilot/how-tos/manage-and-track-spending/manage-company-spending)\n\n  了解如何跟踪支出、查看使用情况和优化许可证分发。\n\n* [开始使用GitHub Copilot计划](/zh/enterprise-cloud@latest/copilot/how-tos/manage-your-account/get-started-with-a-copilot-plan)\n\n  可以免费使用 Copilot ，或选择付费计划来解锁其他功能、模型和限制。\n\n* [查看和更改GitHub Copilot 计划](/zh/enterprise-cloud@latest/copilot/how-tos/manage-your-account/view-and-change-your-copilot-plan)\n\n  了解如何查看、取消或更新计划 Copilot 。\n\n* [禁用 GitHub Copilot 免费版](/zh/enterprise-cloud@latest/copilot/how-tos/manage-your-account/disable-copilot-free)\n\n  了解如何在 IDE 或 Copilot Free 中禁用 GitHub.com。\n\n* [以个人订阅者身份管理 GitHub Copilot 策略](/zh/enterprise-cloud@latest/copilot/how-tos/manage-your-account/manage-policies)\n\n  了解如何在 GitHub 更改个人设置来配置 GitHub Copilot 的行为。\n\n* [Subscribing to GitHub Copilot for your organization](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/manage-plan/subscribe)\n\n  Organization owners can set up a Copilot Business plan for their organization.\n\n* [为组织取消 GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/manage-plan/cancel)\n\n  移除组织中所有已分配的 GitHub Copilot 席位将会取消组织的 Copilot 计划。\n\n* [为组织成员授予对GitHub Copilot的访问权限](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/manage-access/grant-access)\n\n  向您组织中的部分或全部成员授予对 GitHub Copilot 的访问权限。\n\n* [在组织中管理 GitHub Copilot Business 的申请](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/manage-access/manage-requests-for-access)\n\n  对组织中的Copilot访问请求批准或拒绝。\n\n* [撤销组织中成员对GitHub Copilot的访问权限](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/manage-access/revoke-access)\n\n  删除对 GitHub Copilot 组织部分或所有成员的访问权限。\n\n* [管理 GitHub Copilot 访问权限至组织的网络](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/manage-access/manage-network-access)\n\n  了解如何使用订阅制网络路由来控制 Copilot 对网络的访问。\n\n* [管理组织中GitHub Copilot的策略和功能](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies)\n\n  控制组织授予许可证的用户的 GitHub Copilot 功能和模型的可用性。\n\n* [将GitHub Copilot云代理添加到组织](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent)\n\n  为成员启用 Copilot cloud agent 并控制其可用的存储库。\n\n* [在组织中为 GitHub Copilot 云智能体配置运行器](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/configure-runner-for-coding-agent)\n\n  配置GitHub Actions中Copilot cloud agent使用的运行程序，并控制存储库是否可以自定义运行程序类型。\n\n* [准备在组织中使用自定义代理](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/prepare-for-custom-agents)\n\n  配置供您的组织用于存储custom agents的存储库。\n\n* [管理组织中模型的可用性](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/manage-default-models)\n\n  配置可供组织成员使用的默认 Copilot 模型。\n\n* [查看组织中GitHub Copilot 的用户活动数据](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/review-activity/review-user-activity-data)\n\n  查看 GitHub Copilot 组织中的使用情况，以做出有关席位分配的明智决策。\n\n* [在你的组织中为 GitHub Copilot 启用自定义模型](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-organization/enable-custom-models)\n\n  使用自己的 LLM API 密钥将首选的自定义模型与 GitHub Copilot 集成，并使其可供组织成员使用。\n\n* [为您的企业订阅GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-plan/subscribe)\n\n  企业所有者可以为其企业设置 Copilot Enterprise 或 Copilot Business 计划。\n\n* [为企业取消 GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-plan/cancel-plan)\n\n  为企业中的所有组织禁用 GitHub Copilot 将取消企业的 Copilot 计划。\n\n* [为企业升级 GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-plan/upgrade-plan)\n\n  将组织的计划从 Copilot Business 中更改为 Copilot Enterprise。\n\n* [为企业降级 GitHub Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-plan/downgrade-subscription)\n\n  可以将企业中的组织从 Copilot Enterprise 降级为 Copilot Business。\n\n* [授予用户访问企业中的 GitHub Copilot 权限](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/grant-access)\n\n  为整个组织启用 Copilot 或直接向特定用户授予访问权限。\n\n* [为企业中的组织禁用 Copilot](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/disable-for-organizations)\n\n  对企业中的部分或所有组织禁用 GitHub Copilot 。\n\n* [查看企业中的 Copilot 许可证使用情况](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/view-license-usage)\n\n  查看企业中有权访问 GitHub Copilot 的用户数量。\n\n* [管理 GitHub Copilot 对企业网络的访问](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-access/manage-network-access)\n\n  了解如何使用订阅制网络路由来控制 Copilot 对网络的访问。\n\n* [管理企业中 GitHub Copilot 的策略和功能](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-enterprise-policies)\n\n  使用策略控制您企业中GitHub Copilot功能的可用性。\n\n* [准备在企业中使用自定义代理](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/prepare-for-custom-agents)\n\n  通过配置源组织和存储库、可用性和管理权限，为 custom agents 设置你的企业。\n\n* [创建 `.github-private` 存储库](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/create-github-private-repo)\n\n  `.github-private`存储库可以作为整个企业中的代理和插件的指定治理设置源。\n\n* [配置企业管理设置](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/configure-enterprise-managed-settings)\n\n  配置企业托管设置，以通过服务器管理、MDM 管理或基于文件的部署方式，在整个企业范围内集中控制 Copilot 客户端的行为。\n\n* [监视企业中的代理人活动](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/monitor-agentic-activity)\n\n  跟踪企业中的主体性活动，以确保持续合规。\n\n* [在企业中启用GitHub Copilot云代理](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/enable-copilot-cloud-agent)\n\n  选择哪些组织可以使用 Copilot cloud agent 并将其连接到 MCP 服务器。\n\n* [在您的企业中阻止智能体功能](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/block-agentic-features)\n\n  禁用所有用户和存储库的功能。\n\n* [为你的企业启用 GitHub Copilot 代码审查](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/enable-copilot-code-review)\n\n  通过让 Copilot 评审每个拉取请求来确保采用统一的标准。\n\n* [管理企业中模型的可用性](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-availability-of-default-models)\n\n  控制哪些 Copilot 模型可供用户使用。\n\n* [在企业中为 GitHub Copilot 启用自定义模型](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/enable-custom-models)\n\n  使用自己的 LLM API 密钥将首选自定义模型与 GitHub Copilot 集成，并将其提供给企业帐户中的组织。\n\n* [查看 GitHub Copilot 的审核日志](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/review-audit-logs)\n\n  检查你的 Copilot 计划中的设置或许可证的更改。\n\n* [为企业配置 MCP 服务器允许列表](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-mcp-usage/configure-enterprise-allowlist)\n\n  定义用户无需专用注册表即可使用且无法使用的 MCP 服务器。\n\n* [为组织或企业配置 MCP 注册表](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-mcp-usage/configure-mcp-registry)\n\n  创建和托管开发人员可以access的 MCP 服务器列表。\n\n* [限制 MCP 服务器对自定义注册表的访问](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-mcp-usage/restrict-based-on-registry)\n\n  可以配置 MCP 注册表 URL 和访问控制策略，以确定哪些 MCP 服务器开发人员可以在受支持的 IDE Copilot CLI中发现和使用。\n\n* [为组织或企业下载GitHub Copilot 活动报告](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/download-activity-report)\n\n  使用详细的报告监视 Copilot 许可证使用情况。\n\n* [查看 Copilot 使用情况指标仪表板](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/view-usage-and-adoption)\n\n  监控采用趋势和 Copilot 的使用情况，以支持长期赋能。\n\n* [查看代码生成仪表板](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/view-code-generation)\n\n  代码生成仪表板展示了 Copilot 如何在您的整个企业范围内生成代码，包括来自用户和代理的活动情况。\n\n* [查看 Copilot 影响力仪表板](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/view-impact-dashboard)\n\n  影响力仪表板显示贵组织对 Copilot 的采用程度，以及这种采用情况与拉取请求产出之间的关联。\n\n* [排除GitHub Copilot的常见故障问题](/zh/enterprise-cloud@latest/copilot/how-tos/troubleshoot-copilot/troubleshoot-common-issues)\n\n  本指南介绍与 GitHub Copilot 相关的常见问题及其解决方法。\n\n* [查看环境中GitHub Copilot 的日志](/zh/enterprise-cloud@latest/copilot/how-tos/troubleshoot-copilot/view-logs)\n\n  查看日志，以便在 IDE 中排查与 GitHub Copilot 相关的错误。\n\n* [GitHub Copilot 防火墙设置故障排除](/zh/enterprise-cloud@latest/copilot/how-tos/troubleshoot-copilot/troubleshoot-firewall-settings)\n\n  与防火墙相关的错误排查帮助。\n\n* [排查 GitHub Copilot 的网络错误](/zh/enterprise-cloud@latest/copilot/how-tos/troubleshoot-copilot/troubleshoot-network-errors)\n\n  解决与代理和自定义证书相关的常见错误。\n\n* [排查来自GitHub Copilot的响应速度缓慢的问题](/zh/enterprise-cloud@latest/copilot/how-tos/troubleshoot-copilot/troubleshoot-copilot-slowness)\n\n  排查 GitHub Copilot 响应缓慢的问题。\n\n* [GitHub Copilot 对话助手 速查表](/zh/enterprise-cloud@latest/copilot/reference/chat-cheat-sheet)\n\n  使用此备忘单可快速查阅使用 GitHub Copilot Chat 时最常见的命令和选项。\n\n* [Copilot自定义备忘单](/zh/enterprise-cloud@latest/copilot/reference/customization-cheat-sheet)\n\n  比较 GitHub Copilot 的不同自定义选项。\n\n* [GitHub Copilot中支持的 AI 模型](/zh/enterprise-cloud@latest/copilot/reference/ai-models/supported-models)\n\n  了解GitHub Copilot中支持的 AI 模型。\n\n* [AI 模型比较](/zh/enterprise-cloud@latest/copilot/reference/ai-models/model-comparison)\n\n  在 Copilot Chat 中比较可用的 AI 模型，并为你的任务选择最佳模型。\n\n* [GitHub Copilot 的模型托管](/zh/enterprise-cloud@latest/copilot/reference/ai-models/model-hosting)\n\n  了解如何为 GitHub Copilot 托管不同的 AI 模型。\n\n* [Copilot特征矩阵](/zh/enterprise-cloud@latest/copilot/reference/copilot-feature-matrix)\n\n  确定哪些 IDE 支持哪些 GitHub Copilot 功能。\n\n* [IDE 中GitHub Copilot 的键盘快捷方式](/zh/enterprise-cloud@latest/copilot/reference/keyboard-shortcuts)\n\n  查找在支持的 IDE 中 GitHub Copilot 的键盘快捷方式列表。\n\n* [GitHub Copilot CLI 命令参考](/zh/enterprise-cloud@latest/copilot/reference/copilot-cli-reference/cli-command-reference)\n\n  查找有助于有效使用的 Copilot CLI 命令和键盘快捷方式。\n\n* [GitHub Copilot CLI 插件参考](/zh/enterprise-cloud@latest/copilot/reference/copilot-cli-reference/cli-plugin-reference)\n\n  查找 CLI 插件的命令和配置详细信息。\n\n* [GitHub Copilot 命令行界面编程参考](/zh/enterprise-cloud@latest/copilot/reference/copilot-cli-reference/cli-programmatic-reference)\n\n  查找用于以编程方式运行 Copilot CLI 的选项。\n\n* [Copilot CLI ACP 服务器](/zh/enterprise-cloud@latest/copilot/reference/copilot-cli-reference/acp-server)\n\n  了解 GitHub Copilot CLI 的代理客户端协议服务器。\n\n* [GitHub Copilot CLI 配置目录](/zh/enterprise-cloud@latest/copilot/reference/copilot-cli-reference/cli-config-dir-reference)\n\n  查找有关 `~/.copilot` 目录的信息，其中 Copilot CLI 存储配置、会话数据和自定义项。\n\n* [GitHub Copilot 应用的存储库配置](/zh/enterprise-cloud@latest/copilot/reference/github-copilot-app-reference/repository-configuration)\n\n  定义 GitHub Copilot app特定于存储库的说明、脚本和自动化行为。\n\n* [GitHub Copilot 应用的斜杠命令](/zh/enterprise-cloud@latest/copilot/reference/github-copilot-app-reference/slash-commands)\n\n  在切换模式、运行常见工作流和管理会话时使用斜杠命令 GitHub Copilot app ，而无需编写较长的提示。\n\n* [GitHub Copilot 应用的内置技能](/zh/enterprise-cloud@latest/copilot/reference/github-copilot-app-reference/built-in-skills)\n\n  使用此引用可查找内置代理技能。GitHub Copilot app\n\n* [自定义代理配置](/zh/enterprise-cloud@latest/copilot/reference/custom-agents-configuration)\n\n  custom agents 配置参考。\n\n* [支持不同类型的自定义说明](/zh/enterprise-cloud@latest/copilot/reference/custom-instructions-support)\n\n  了解哪些环境支持哪种类型的自定义指令。\n\n* [GitHub Copilot 挂钩参考](/zh/enterprise-cloud@latest/copilot/reference/hooks-reference)\n\n  在 Copilot CLI 和 Copilot cloud agent 中查找挂钩事件、配置格式以及挂钩的输入有效载荷。\n\n* [支持 GitHub Copilot 策略的界面](/zh/enterprise-cloud@latest/copilot/reference/supported-surfaces-for-policies)\n\n  哪些策略会影响哪些 Copilot 功能和图面？\n\n* [Copilot 允许列表参考](/zh/enterprise-cloud@latest/copilot/reference/copilot-allowlist-reference)\n\n  了解如何允许某些流量通过防火墙或代理服务器，以确保 Copilot 在您的组织中按预期工作。\n\n* [GitHub Copilot的指标数据属性](/zh/enterprise-cloud@latest/copilot/reference/metrics-data)\n\n  了解GitHub如何从 API 和报表计算属性。\n\n* [GitHub Copilot 的模型和定价](/zh/enterprise-cloud@latest/copilot/reference/copilot-billing/models-and-pricing)\n\n  查看 GitHub Copilot 中可用模型的按词元定价方式以及各种计划的超额用量的参考价格。\n\n* [GitHub Copilot 计费周期](/zh/enterprise-cloud@latest/copilot/reference/copilot-billing/billing-cycle)\n\n  了解组织和企业中 GitHub Copilot 的计费周期。\n\n* [GitHub Copilot 席位分配](/zh/enterprise-cloud@latest/copilot/reference/copilot-billing/seat-assignment)\n\n  了解组织和企业中GitHub Copilot席位分配如何运作，包括计费、用户资格和分配管理。\n\n* [对 GitHub Copilot 许可证进行更改](/zh/enterprise-cloud@latest/copilot/reference/copilot-billing/license-changes)\n\n  了解对许可证的 GitHub Copilot 更改如何影响组织、企业和个人帐户的计费和用户访问。\n\n* [通过 Azure 平台进行 GitHub Copilot 计费](/zh/enterprise-cloud@latest/copilot/reference/copilot-billing/azure-billing)\n\n  了解连接到 Azure 订阅后，GitHub Copilot 的按使用量计费如何运作，包括计费周期、开票和使用情况跟踪。\n\n* [Copilot 计费（旧版）有哪些变化](/zh/enterprise-cloud@latest/copilot/reference/copilot-billing/request-based-billing-legacy/what-changed-with-billing)\n\n  了解作为采用旧版计费模式的 Copilot Pro 和 Copilot Pro+ 年度计划订阅者，计费方式有哪些变化以及你有哪些选择。\n\n* [GitHub Copilot中的请求（旧版）](/zh/enterprise-cloud@latest/copilot/reference/copilot-billing/request-based-billing-legacy/copilot-requests)\n\n  了解 Copilot 中的请求，包括高级请求、它们的工作方式以及如何有效管理您的使用情况。\n\n* [监控 GitHub Copilot 的使用情况和权益（旧版）](/zh/enterprise-cloud@latest/copilot/reference/copilot-billing/request-based-billing-legacy/monitor-premium-requests)\n\n  了解如何监控您每月的Copilot使用情况，并充分利用您的Copilot计划。\n\n* [按请求计费的年度套餐模型乘数（旧版）](/zh/enterprise-cloud@latest/copilot/reference/copilot-billing/request-based-billing-legacy/model-multipliers-for-annual-plans)\n\n  基于请求计费模式下，继续采用 Copilot Pro 和 Copilot Pro+ 年度计划的订阅者对应的模型乘数。\n\n* [被排除在 GitHub Copilot code review 的文件](/zh/enterprise-cloud@latest/copilot/reference/review-excluded-files)\n\n  了解在 Copilot 评审中被排除的文件类型。\n\n* [Copilot使用情况指标中提供的数据](/zh/enterprise-cloud@latest/copilot/reference/copilot-usage-metrics/copilot-usage-metrics)\n\n  Copilot 使用情况指标数据可通过仪表板和 API 使用一组一致的字段来表示采用、使用情况和代码生成活动。\n\n* [解释 GitHub Copilot 的使用情况和采用指标](/zh/enterprise-cloud@latest/copilot/reference/copilot-usage-metrics/interpret-copilot-metrics)\n\n  Copilot 使用与采纳指标揭示了整个企业中开发人员使用 Copilot 的方式和规律。\n\n* [跨仪表板、API 和报表协调 Copilot 使用情况指标](/zh/enterprise-cloud@latest/copilot/reference/copilot-usage-metrics/reconciling-usage-metrics)\n\n  Copilot 使用情况指标派生自相同的基础遥测，但在仪表板、API 和导出的报表之间聚合和呈现方式不同。\n\n* [代码行指标](/zh/enterprise-cloud@latest/copilot/reference/copilot-usage-metrics/lines-of-code-metrics)\n\n  代码行数指标通过量化在补全、聊天和代理功能中建议、添加或删除的代码行数，为 Copilot 输出提供一个方向性的衡量指标。\n\n* [团队级Copilot使用情况指标](/zh/enterprise-cloud@latest/copilot/reference/copilot-usage-metrics/team-level-metrics)\n\n  通过将每日用户团队报表与每日每个用户使用情况指标报告联接，构建团队级 GitHub Copilot 使用情况指标。\n\n* [Copilot使用情况指标的示例架构](/zh/enterprise-cloud@latest/copilot/reference/copilot-usage-metrics/example-schema)\n\n  请参阅使用指标 API 返回的数据示例架构 Copilot。\n\n* [代理会话的可用筛选器](/zh/enterprise-cloud@latest/copilot/reference/enterprise-administrators/agent-session-filters)\n\n  在企业中使用代理会话筛选器搜索代理活动。\n\n* [代理的审计日志事件](/zh/enterprise-cloud@latest/copilot/reference/enterprise-administrators/agentic-audit-log-events)\n\n  了解企业中代理的审核日志事件结构。\n\n* [企业管理设置](/zh/enterprise-cloud@latest/copilot/reference/enterprise-administrators/enterprise-managed-settings)\n\n  了解 Copilot 客户端使用的企业管理设置架构。\n\n* [MCP 专用注册表强制实施](/zh/enterprise-cloud@latest/copilot/reference/enterprise-administrators/mcp-private-registry-enforcement)\n\n  了解使用专用注册表服务器执行 MCP 专用注册表的逻辑和限制。\n\n* [当组织中的GitHub Copilot策略出现冲突时的功能可用性](/zh/enterprise-cloud@latest/copilot/reference/enterprise-administrators/policy-conflicts)\n\n  将 Copilot 策略决策委派给组织会影响具有不同策略的组织授予许可证的用户。\n\n* [创建模板](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/communicate-effectively/creating-templates)\n\n  Copilot Chat 可帮助你创建模板，以简化工作流并确保项目中的一致性。\n\n* [分类整理并汇总存储库活动](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/communicate-effectively/summarize-repository-activity)\n\n  Copilot 可以从你关注的存储库中提取关键信息，帮助你及时了解最近的活动。\n\n* [合成研究](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/communicate-effectively/synthesizing-research)\n\n  Copilot 对话助手可帮助你将来自多个来源的研究结果和见解合成为一份连贯的摘要。\n\n* [创建关系图](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/communicate-effectively/creating-diagrams)\n\n  GitHub Copilot 对话助手 可以帮助你创建图表，以便更好地了解数据并传达见解。\n\n* [表格生成](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/communicate-effectively/generating-tables)\n\n  Copilot Chat 可帮助你创建表来组织信息并清楚地显示它。\n\n* [调试无效的 JSON](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/debug-errors/debug-invalid-json)\n\n  Copilot Chat 可以识别和解决 JSON 数据中的语法错误或结构问题。\n\n* [处理 API 速率限制](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/debug-errors/handle-api-rate-limits)\n\n  Copilot Chat 通过建议检测 API 速率限制并实现重试逻辑的代码，可以帮助处理 API 速率限制。\n\n* [诊断 CI 测试失败](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/debug-errors/diagnose-ci-test-failures)\n\n  用于 Copilot CLI 拉取 CI 日志、将故障关联到本地代码，并在不离开终端的情况下修复问题。\n\n* [探索潜在的功能实现](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/analyze-functionality/explore-implementations)\n\n  Copilot Chat 可以帮助探索实现单个功能的不同方法。\n\n* [分析和采纳用户反馈](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/analyze-functionality/analyze-feedback)\n\n  Copilot Chat 可以增强将用户反馈合并到项目中的过程。\n\n* [从GitHub问题实现功能](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/generate-code/implement-a-feature)\n\n  向GitHub提出一个问题GitHub Copilot CLI，然后引导对话朝着实现该功能的方向进行。\n\n* [提高代码可读性和可维护性](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/improve-code-readability)\n\n  Copilot Chat 可以建议使代码更易于理解和维护的方法。\n\n* [修复 lint 错误](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/fix-lint-errors)\n\n  Copilot Chat 可以为修复代码检查器识别出的问题提供建议。\n\n* [为性能优化而重构](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/refactor-for-optimization)\n\n  Copilot Chat 可以建议加快运行速度缓慢的代码的方法。\n\n* [为环境可持续性进行重构](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/refactor-for-sustainability)\n\n  Copilot Chat 可以建议使代码更加环保的方法。\n\n* [重构以实现设计模式](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/refactor-design-patterns)\n\n  Copilot Chat 可以建议可用于改进代码的设计模式。\n\n* [重构数据访问层](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/refactor-data-access-layers)\n\n  Copilot Chat 可以建议将数据访问代码与业务逻辑分离的方法，使应用程序更易于维护和缩放。\n\n* [将业务逻辑从 UI 组件中分离出来](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/decouple-business-logic)\n\n  Copilot Chat 可以帮助你将业务逻辑与用户界面代码分开，从而更轻松地维护和缩放应用程序。\n\n* [处理横切关注点](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/handle-cross-cutting)\n\n  Copilot Chat 可帮助你避免编写与代码所在方法或函数的核心关注点无关的代码。\n\n* [简化复杂的继承层次结构](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/simplify-inheritance-hierarchies)\n\n  Copilot Chat 可帮助你重构代码以避免具有多层继承的类。\n\n* [修复数据库死锁或数据一致性问题](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/fix-database-deadlocks)\n\n  Copilot Chat 可帮助你避免导致数据库操作缓慢或阻塞的代码，或者缺少或不正确的数据表。\n\n* [将代码转换为其他编程语言](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/refactor-code/translate-code)\n\n  Copilot Chat 可帮助你重写代码以执行相同的操作，但使用不同的编程语言。\n\n* [在不中断工作流程的情况下提交问题](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/document-code/filing-issues-without-breaking-your-flow)\n\n  当你在处理任务时注意到某个问题，可以使用 Copilot CLI 创建一个包含代码上下文、关联 PR 和标签的 GitHub issue，然后继续手头的工作。\n\n* [为旧代码编写文档](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/document-code/document-legacy-code)\n\n  Copilot Chat 有助于记录旧代码。\n\n* [解释旧代码](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/document-code/explain-legacy-code)\n\n  Copilot Chat 可以帮助解释不熟悉的代码。\n\n* [解释复杂算法或逻辑](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/document-code/explain-complex-logic)\n\n  Copilot Chat 可以帮助添加有关复杂算法或逻辑的清晰简洁文档。\n\n* [同步文档以适应代码更改](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/document-code/sync-documentation)\n\n  Copilot Chat 可以帮助保持代码文档为最新状态。\n\n* [撰写讨论或博客文章](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/document-code/write-discussions-or-blog-posts)\n\n  Copilot Chat 可以帮助你生成想法、大纲或草稿讨论或博客文章。\n\n* [生成单元测试](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/testing-code/generate-unit-tests)\n\n  Copilot Chat 可以帮助生成函数的单元测试。\n\n* [创建模拟对象来使层抽象化](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/testing-code/create-mock-objects)\n\n  Copilot Chat 有助于创建可用于单元测试的模拟对象。\n\n* [为网页创建端到端测试](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/testing-code/create-end-to-end-tests)\n\n  Copilot Chat 有助于生成端到端测试。\n\n* [更新单元测试以匹配代码更改](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/testing-code/update-unit-tests)\n\n  Copilot Chat 可以帮助你更新测试用例。\n\n* [保护您的仓库](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/analyze-security/secure-your-repository)\n\n  Copilot Chat 可以帮助你保护存储库和代码。\n\n* [管理依赖项更新](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/analyze-security/manage-dependency-updates)\n\n  Copilot Chat 可以帮助你设置 Dependabot，以简化依赖项更新流程。\n\n* [在代码中查找现有漏洞](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cookbook/analyze-security/find-vulnerabilities)\n\n  Copilot 对话助手 可以帮助查找代码中的常见漏洞并提供修复建议。\n\n* [首条自定义说明](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-instructions/your-first-custom-instructions)\n\n  使用这个简单的示例创建并测试你的首条自定义说明。\n\n* [概念解释器](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-instructions/concept-explainer)\n\n  拆解复杂技术概念的指令。\n\n* [调试导师](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-instructions/debugging-tutor)\n\n  系统调试和故障排除说明。\n\n* [代码审阅者](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-instructions/code-reviewer)\n\n  关于全面且有建设性的代码评审的说明。\n\n* [GitHub Actions 帮助程序](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-instructions/github-actions-helper)\n\n  生成和改进 GitHub Actions 工作流。\n\n* [拉取请求助手](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-instructions/pull-request-assistant)\n\n  生成全面的拉取请求描述和审查。\n\n* [议题管理器](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-instructions/issue-manager)\n\n  创建结构良好的议题和回应。\n\n* [辅助功能审核者](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-instructions/accessibility-auditor)\n\n  全面的 Web 辅助功能测试与合规性说明。\n\n* [测试自动化](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-instructions/testing-automation)\n\n  有关编写单元测试的特定于文件的说明。\n\n* [第一个提示文件](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/prompt-files/your-first-prompt-file)\n\n  使用这个适用于任何编程语言的简单代码解释示例，创建你的第一个 Copilot 提示文件。\n\n* [创建 README](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/prompt-files/create-readme)\n\n  为项目生成全面的 README 文件。\n\n* [入职计划](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/prompt-files/onboarding-plan)\n\n  用于获得团队入职方面的个性化帮助的提示文件。\n\n* [文档 API](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/prompt-files/document-api)\n\n  基于代码生成全面的 API 文档。\n\n* [查看代码](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/prompt-files/review-code)\n\n  执行全面代码评审，并提供结构化反馈。\n\n* [生成单元测试](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/prompt-files/generate-unit-tests)\n\n  为代码创建有针对性的单元测试。\n\n* [你的第一个自定义代理](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-agents/your-first-custom-agent)\n\n  使用此简单的自述专家示例创建并测试第一个自定义代理。\n\n* [实施计划工具](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-agents/implementation-planner)\n\n  将功能分解为可作任务的自定义代理，并创建详细的实施计划。\n\n* [Bug 修复队友](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-agents/bug-fix-teammate)\n\n  一个自定义代理，用于标识project中的严重 bug 并实现有针对性的修复。\n\n* [清理专家](/zh/enterprise-cloud@latest/copilot/tutorials/customization-library/custom-agents/cleanup-specialist)\n\n  一个自定义代理，用于清理混乱的代码、删除重复，并提高代码和文档文件的可维护性。\n\n* [使用GitHub Copilot处理任务的最佳做法](/zh/enterprise-cloud@latest/copilot/tutorials/cloud-agent/get-the-best-results)\n\n  了解如何从 Copilot cloud agent中获取最佳结果。\n\n* [在组织中试点GitHub Copilot云代理](/zh/enterprise-cloud@latest/copilot/tutorials/cloud-agent/pilot-cloud-agent)\n\n  遵循最佳做法，在组织中启用 Copilot cloud agent 。\n\n* [使用 GitHub Copilot 云代理改进项目](/zh/enterprise-cloud@latest/copilot/tutorials/cloud-agent/improve-a-project)\n\n  使用 Copilot cloud agent.. 查找并修复项目中的问题。\n\n* [为 GitHub Copilot 云代理构建防护措施](/zh/enterprise-cloud@latest/copilot/tutorials/cloud-agent/build-guardrails)\n\n  配置你的企业，使 Copilot cloud agent 能够在安全、合规的环境中运行。\n\n* [授予 GitHub Copilot 云代理访问组织中的资源的权限](/zh/enterprise-cloud@latest/copilot/tutorials/cloud-agent/give-access-to-resources)\n\n  通过允许其访问已获批准的 MCP 服务器和内部包，充分利用 Copilot。\n\n* [预算控制入门](/zh/enterprise-cloud@latest/copilot/tutorials/budgets/getting-started-with-budget-controls)\n\n  在团队开始使用 AI credits之前，为企业设置预算防护措施。\n\n* [优化预算配置](/zh/enterprise-cloud@latest/copilot/tutorials/budgets/optimizing-your-budget-configuration)\n\n  根据规模、结构和支出目标查找组织预算控制的正确组合。\n\n* [使用自定义指令来激发Copilot代码评审的强大功能](/zh/enterprise-cloud@latest/copilot/tutorials/customize-code-review)\n\n  了解如何编写有效的自定义说明，以帮助 GitHub Copilot 提供更相关且可操作的代码评审。\n\n* [在拉取请求的整个生命周期中使用 GitHub Copilot 代码评审](/zh/enterprise-cloud@latest/copilot/tutorials/use-copilot-code-review-across-the-pull-request-lifecycle)\n\n  为 Copilot code review 构建一个从草稿拉取请求到合并的可重复工作流程。\n\n* [使用 MCP 增强 GitHub Copilot 智能体 模式](/zh/enterprise-cloud@latest/copilot/tutorials/enhance-agent-mode-with-mcp)\n\n  了解如何使用模型上下文协议 （MCP） 扩展代理 Copilot Chat功能。\n\n* [使用不同任务比较 AI 模型](/zh/enterprise-cloud@latest/copilot/tutorials/compare-ai-models)\n\n  探索常见开发人员任务的真实示例以及示例提示、响应和指导，以帮助你为工作流选择合适的 AI 模型。\n\n* [使用 GitHub Copilot Spaces 加快开发工作](/zh/enterprise-cloud@latest/copilot/tutorials/speed-up-development-work)\n\n  了解如何用于 Copilot Spaces 帮助你完成开发工作。\n\n* [选择您的企业的 GitHub Copilot 计划](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/assign-licenses/choose-enterprise-plan)\n\n  在 Copilot Business 和 Copilot Enterprise 之间进行选择。\n\n* [为 GitHub Copilot 许可证设置自助服务过程](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/assign-licenses/set-up-self-serve-licenses)\n\n  了解用户如何请求许可证并立即获取访问权限。\n\n* [使用 Copilot 使用情况指标跟踪许可证激活和初始使用情况](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/assign-licenses/track-usage-and-adoption)\n\n  通过使用指标识别 GitHub Copilot 采纳信号和激活情况，并据此采取行动。\n\n* [提醒非活动用户使用其GitHub Copilot 许可证](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/assign-licenses/remind-inactive-users)\n\n  使用 GitHub API 识别非活动用户并帮助他们入门。\n\n* [获取 GitHub Copilot 批准的资源](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/govern-at-scale/resources-for-approval)\n\n  通过向贵公司的法律和安全团队发送资源，准备好采用 Copilot。\n\n* [在企业中建立 AI 经理](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/govern-at-scale/establish-ai-managers)\n\n  通过创建 AI 经理团队来减轻管理负担并增强中小企业的能力。\n\n* [在 GitHub Copilot 发布过程中维护代码库标准](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/govern-at-scale/maintain-codebase-standards)\n\n  使用规则集、安全功能和有效培训控制企业代码。\n\n* [推动您的公司采用GitHub Copilot](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/enable-developers/drive-adoption)\n\n  了解如何规划有效的启用流程，以推动 Copilot 采用。\n\n* [将代理式 AI 集成到企业的软件开发生命周期中](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/enable-developers/integrate-ai-agents)\n\n  了解代理如何提高企业工作效率。\n\n* [使用 GitHub Copilot 实现公司工程目标](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/drive-downstream-impact/achieve-company-goals)\n\n  根据 GitHub 推荐的推动和衡量改进的方法来规划推出。\n\n* [通过GitHub Copilot提高公司的测试覆盖率](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/drive-downstream-impact/increase-test-coverage)\n\n  了解功能、启用开发人员并衡量Copilot的影响。\n\n* [使用 GitHub Copilot 加速您公司的拉取请求](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/drive-downstream-impact/accelerate-pull-requests)\n\n  了解功能、启用开发人员并衡量Copilot的影响。\n\n* [通过GitHub Copilot减少公司的安全债务](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/drive-downstream-impact/reduce-security-debt)\n\n  了解功能，赋能开发人员，并评估 Copilot 的影响。\n\n* [衡量并演示GitHub Copilot的影响](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/measure-copilot-impact)\n\n  Copilot了解如何在整个企业中使用是展示其价值的第一步。 按照此路径建立使用基线，了解代码的生成方式，并将采用与可衡量的结果联系起来。\n\n* [衡量GitHub Copilot试用的成功](/zh/enterprise-cloud@latest/copilot/tutorials/roll-out-at-scale/measure-success)\n\n  通过使用Copilot使用指标分析采用情况、参与度和早期使用模式，来衡量Copilot试用的成功。\n\n* [使用 GitHub Copilot 探索基本代码](/zh/enterprise-cloud@latest/copilot/tutorials/explore-a-codebase)\n\n  GitHub Copilot Chat 可以帮助你了解代码库的内容、结构和功能。\n\n* [使用 GitHub Copilot 探索问题和讨论](/zh/enterprise-cloud@latest/copilot/tutorials/explore-issues-and-discussions)\n\n  GitHub Copilot Chat 可以帮助你快速掌握冗长讨论和议题的上下文。\n\n* [使用 GitHub Copilot 浏览拉取请求](/zh/enterprise-cloud@latest/copilot/tutorials/explore-pull-requests)\n\n  GitHub Copilot Chat 可以帮助你了解拉取请求的内容、功能和状态。\n\n* [使用 GitHub Copilot 编写测试](/zh/enterprise-cloud@latest/copilot/tutorials/write-tests)\n\n  使用 Copilot 生成单元测试和集成测试，并帮助提高代码质量。\n\n* [使用 GitHub Copilot 重构代码](/zh/enterprise-cloud@latest/copilot/tutorials/refactor-code)\n\n  利用 Copilot 人工智能帮助你快速有效地重构代码。\n\n* [优化 AI 使用情况以最大限度地提高效率和降低成本](/zh/enterprise-cloud@latest/copilot/tutorials/optimize-ai-usage)\n\n  了解如何选择正确的模型、构建提示并添加护栏，以便 Copilot 更高效地完成任务，减少使用 AI credits。\n\n* [优化 GitHub Copilot 对话助手上下文以减少 AI 信用使用情况](/zh/enterprise-cloud@latest/copilot/tutorials/optimize-chat-usage)\n\n  通过了解何时继续对话以及何时启动新对话来保持 Copilot Chat 响应的专注和减少 AI credits 使用情况。\n\n* [使用 Copilot 生成优化的评审过程](/zh/enterprise-cloud@latest/copilot/tutorials/optimize-code-reviews)\n\n  使用 Copilot 自动化评审以优化和改进评审过程。\n\n* [使用GitHub Copilot减少技术债务](/zh/enterprise-cloud@latest/copilot/tutorials/reduce-technical-debt)\n\n  使用 Copilot 自动化重构和维护任务，从而解放团队，使他们能够专注于功能开发。\n\n* [查看 AI 生成的代码](/zh/enterprise-cloud@latest/copilot/tutorials/review-ai-generated-code)\n\n  了解验证和确认 AI 生成代码的技术，以及 Copilot Chat 可以如何提供帮助。\n\n* [使用 GitHub Copilot 学习新的编程语言](/zh/enterprise-cloud@latest/copilot/tutorials/learn-a-new-language)\n\n  GitHub Copilot Chat 通过学习如何使用新的编程语言进行编码，可帮助你扩展编程技能。\n\n* [使用 GitHub Copilot 现代化旧代码](/zh/enterprise-cloud@latest/copilot/tutorials/modernize-legacy-code)\n\n  Copilot Chat 通过建议代码重构和创建测试来捕获潜在问题，帮助现代化旧代码。\n\n* [使用 GitHub Copilot 现代化 Java 应用程序](/zh/enterprise-cloud@latest/copilot/tutorials/modernize-java-applications)\n\n  GitHub Copilot可以通过评估代码库、识别升级路径以及自动执行修正和容器化任务来帮助现代化和迁移Java应用程序。\n\n* [使用 GitHub Copilot 将project迁移到另一种编程语言](/zh/enterprise-cloud@latest/copilot/tutorials/migrate-a-project)\n\n  GitHub Copilot Chat 可以帮助你将项目移动到其他语言。 本指南介绍迁移过程中涉及的内容，并举例说明如何将 PHP 迁移到 Python。\n\n* [使用 GitHub Copilot 规划项目](/zh/enterprise-cloud@latest/copilot/tutorials/plan-a-project)\n\n  通过用于 GitHub Copilot 将想法转化为问题来规划下一个项目。\n\n* [使用 GitHub Copilot 进行 Vibe 编码](/zh/enterprise-cloud@latest/copilot/tutorials/vibe-coding)\n\n  无需自行编写任何代码即可创建应用程序。\n\n* [使用 GitHub Copilot 升级项目](/zh/enterprise-cloud@latest/copilot/tutorials/upgrade-projects)\n\n  可以使用 GitHub Copilot 升级 Maven 和 Gradle Java 应用程序和.NET应用程序。\n\n* [将挂钩与 Copilot CLI 配合使用，实现可预测且符合策略的执行](/zh/enterprise-cloud@latest/copilot/tutorials/copilot-cli-hooks)\n\n  使用挂钩记录用户提示并控制哪些工具 Copilot CLI 可以在存储库中运行，以便团队可以在组织的安全性和合规性要求内安全地自动执行。\n\n* [使用 Copilot CLI 作为 AI SME](/zh/enterprise-cloud@latest/copilot/tutorials/use-an-ai-sme)\n\n  将 Copilot CLI 作为随时可用的主题专家，帮助你了解代码库的工作方式，从而让你能够满怀信心地维护它或添加新功能。\n\n* [为 GitHub Copilot CLI 创建扩展](/zh/enterprise-cloud@latest/copilot/tutorials/create-an-extension)\n\n  构建扩展，向 Copilot CLI 添加您自己的工具和斜杠命令。\n\n* [应用卡片：GitHub Copilot 对话助手](/zh/enterprise-cloud@latest/copilot/responsible-use/chat)\n\n  了解如何通过了解 GitHub 的目的、功能和限制来负责任地使用 GitHub Copilot 对话助手。\n\n* [应用卡片：GitHub Copilot 内联建议](/zh/enterprise-cloud@latest/copilot/responsible-use/inline-suggestions)\n\n  了解 GitHub Copilot 内联建议的用途、功能和局限性，学习如何负责任地使用它们。\n\n* [应用卡片：GitHub Copilot 智能体](/zh/enterprise-cloud@latest/copilot/responsible-use/agents)\n\n  了解如何通过了解其用途、功能和限制来负责任地使用GitHub Copilot代理功能。"}