跳到主要内容Skip to main content
← Tools

GitHub CopilotGitHub Copilot

GitHub / Microsoft
编程 IDE 混合 云端 协作 partial lifecycle: active 核验Checked 2026-10-08

形态最广、生态最依附 GitHub 的一个——从网站到 CLI 到主流编辑器全覆盖,且能把任务委派给 Claude / Codex(Preview)。

The widest form coverage and the most GitHub-bound ecosystem — website, CLI and mainstream editors, and it can delegate tasks to Claude / Codex (Preview).

适合与不适合When to use it, when not to

已在 GitHub 生态内(用 PR / Issue / Actions 工作)的人。 需要最广编辑器覆盖的人(VS Code / JetBrains / Eclipse / Xcode 都能用)。 企业采购需要额度池治理与管理员支出控制的人。

不适合依赖第三方 agent 委派的场景(官方标注为 Preview)。 报价与档位见官方 plans 页(本站按 D9 口径不存价格数字)。

People already inside the GitHub ecosystem (working via PR / Issue / Actions). People who need the widest editor coverage (VS Code / JetBrains / Eclipse / Xcode). Organisations that need quota-pool governance and admin spend controls.

Not a fit for anyone requiring pricing stated once and clearly — this round could not confirm the price figures tier by tier; check the official site yourself. Also not a fit if you rely on third-party agent delegation (officially marked Preview).

中文生态China availability 国产 / 国内可直接用 / 备案状态 · 快照domestic / direct access / CAC filing · snapshot 2026-10-20

出品属地Origin
国外出品foreign-made 国外主体(网信办公示名单未见对应备案主体)。foreign entity (no matching filing entity in the CAC registry).
国内使用Direct access
大陆可直连direct OK 官网仓库在 GitHub,大陆直连波动(同日实测 200/000 混合);npm / PyPI 安装源实测稳定可达。Hosted on GitHub — direct reachability from mainland fluctuates (200/000 mixed on the same day); npm / PyPI install routes measured stable.
备案状态CAC filing
未见于备案名单not in filing list:未见于网信办公示名单(2026-10-20 检索 13 批附件,https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm);该产品未面向大陆公众提供服务,备案不适用。not in the CAC public registry (13 batch attachments searched 2026-10-20, https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm); the product does not serve the mainland public, so filing does not apply.

备案信息以网信办《生成式人工智能服务已备案信息》公示名单为准(按批次滚动更新,本站只抄编号不解读);「大陆可直连」是本站从大陆网络直连实测的结果,不是厂商承诺。GitHub 类站点当日实测有波动,口径写在依据里。Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.

固定坐标系Fixed coordinate system

8 个维度dimensions, 与同分区其他对象逐项可比each comparable item by item against others in the same section.

模型与开放条件Model & openness

由 GitHub / Microsoft 统一托管,绑定 GitHub 账号体系。

官方有模型清单页,覆盖多厂商:

  • OpenAI(GPT-5 / 5.3-Codex / 5.4 / 5.5 / 5.6 / 6.x)
  • Anthropic(Claude Fable / Opus / Sonnet)
  • Google(Gemini Flash)
  • Microsoft(MAI-Code)
  • Moonshot(Kimi)
  • xAI(Grok)

模型随套餐与客户端变化:Pro / Pro+ / Max / Business / Enterprise 各不同,Free 与 Student 仅能经 Auto 模型选择使用;组织 / 企业可启用或限制具体模型。

聊天框有模型切换器(另有 Auto),部分模型支持 1M token 上下文 与可调 reasoning(VS Code 与 CLI)。

BYOK 已核验:VS Code 可从 provider(Anthropic / Gemini / OpenAI 等)或 AI Toolkit 添加模型,可能需 API key 或 PAT。

Business / Enterprise 需先启用「Bring Your Own Language Model Key in Select IDEs」策略。

第三方 agent 委派(Claude / Codex)仍标 Preview。

运行位置Where it runs

形态最广的一个:

  • GitHub 网站本身(含 github.com 与 GitHub Mobile)
  • Copilot app
  • Copilot CLI
  • 以及 VS Code / Visual Studio / JetBrains / Eclipse / Xcode 等编辑器

另有 Codespaces 提供的即时开发环境。

本地文件Local files

通过编辑器扩展或 GitHub 平台访问代码。

官方有语义代码索引(semantic code search):

后台建立,大仓库首次索引最长约 60 秒, 此后增量更新通常在新会话开始后数秒内完成。

供 GitHub 网站与 VS Code 的 Copilot Chat、以及 cloud agent 使用。

非 GitHub 仓库(GitLab、本地仓库)在 VS Code 也可语义索引, 但会把数据上传到 GitHub,且默认关闭、需管理员启用 「Semantic indexing for non-GitHub repositories」策略。

Content exclusion 可让 Copilot 忽略指定文件。

官方明说索引结果 不用于模型训练。

关机后的任务Tasks after shutdown

有明确的真后台 cloud agent(原 coding agent)。

官方原文:「GitHub Copilot can work independently in the background」

在由 GitHub Actions 驱动的临时开发环境里独立跑任务—— 即厂商托管,你的机器关闭后仍继续。

触发方式:派 GitHub issue、在 PR 评论 @copilot,或从 VS Code 入口; 可产出分支 / PR(一次一分支、一任务一 PR)。

Business / Enterprise 默认禁用,需管理员先启用。

限制:cloud agent 不遵守 content exclusion。

用量:消耗 GitHub Actions 分钟 + Copilot premium requests。

工具与扩展Tools & extensions

MCP 是官方平台级能力—— 导航栏即有独立的「MCP Registry / Integrate external tools」条目。 支持自定义指令与自定义 agent。 File diff reviews in code editors 在更高档位提供。

上下文与记忆Context & memory

上下文窗口有上限说明:部分模型支持 1M token 上下文 (仅 VS Code 与 Copilot CLI 可用),并有可调 reasoning (VS Code、CLI 与 cloud agent)。

跨会话记忆已核验为官方功能 Copilot Memory(public preview): 存仓库级事实与用户级偏好,带引用并在当前分支校验, 未使用的条目 28 天后自动删除,可在多个 feature 间共享; 付费套餐可用,组织 / 企业需管理员先启用。

另有 custom instructions 三类(个人 / 仓库 / 组织),优先级 个人 > 仓库 > 组织:

  • 仓库级用 .github/copilot-instructions.md
  • 路径级用 .github/instructions/**/*.instructions.md
  • 以及 AGENTS.md 等 agent 指令
权限与限制Permissions & limits

依赖 GitHub 权限体系(仓库 / PR / 组织策略)。

官方已核验的边界:

  • ① Content exclusion(Business / Enterprise)可让 Copilot 忽略 指定文件;但不覆盖 symlink 与远程文件系统、在 VS Code 的 Edit / Agent 模式不支持,且 cloud agent 不适用内容排除。
  • ② cloud agent 默认受防火墙限制联网:官方称按域名 / URL 允许清单放行,可在组织与仓库级配置;但防火墙只作用于 agent 经 Bash 工具启动的进程、不覆盖 MCP,且官方承认可能被绕过。
  • ③ Business / Enterprise 需管理员先启用 agent、模型切换与 BYOK 策略;仓库可 opt out。索引不用于模型训练。
适合什么任务Best for

已在 GitHub 生态内(用 PR / Issue / Actions 工作)的人; 需要最广编辑器覆盖的人(VS Code / JetBrains / Eclipse / Xcode 都能用); 企业采购需要额度池治理与管理员支出控制的人。

只想试 AI 补全的人可用 Copilot Free(有限额度)。

头号误解Top misconception

  • 把 Flex allotment 当固定额度,官方明确说它会变Reading Flex allotment as a fixed quota — the official docs say it changes
  • 忽略 Preview 状态的第三方 agent 委派(Claude / Codex)Overlooking third-party agent delegation in Preview (Claude / Codex)
  • 以为个人档也有额度池共享,Pooled usage 仅 Business / EnterpriseAssuming individual plans share a quota pool — pooled usage is Business / Enterprise only
  • 以为 cloud agent 会遵守 content exclusion——官方明说它不遵守Assuming the cloud agent honours content exclusion — the official docs say plainly that it does not

未知项清单Known unknowns

  • 第三方 agent 委派(Claude / Codex)的实际可用范围(官方标注 Preview)
  • 企业策略对可用能力的完整影响面
  • cloud agent 防火墙被绕过的实际边界(官方自称可能被绕过)

证据来源Evidence sources

判断可回到以下一手源复核。本站核验日Every judgement can be rechecked against the primary sources below. Verified on 2026-10-08,内容更新日content updated on 2026-10-08。

类型Type名称Name链接Link
pricingGitHub · Copilot 定价与 plans 页(功能逐项对照)https://github.com/features/copilot/plans
docsGitHub · Copilot 官方文档https://docs.github.com/en/copilot
docsGitHub · Copilot 支持的 AI 模型(多厂商清单、按套餐与客户端)https://docs.github.com/en/copilot/reference/ai-models/supported-models
docsGitHub · 切换模型与自带模型(BYOK / AI Toolkit)https://docs.github.com/en/copilot/how-tos/use-ai-models/change-the-chat-model
docsGitHub · Copilot cloud agent(后台运行、GitHub Actions 环境、限额)https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent
docsGitHub · 仓库语义索引(semantic code search)https://docs.github.com/en/copilot/concepts/context/repository-indexing
docsGitHub · Content exclusion(内容排除与限制)https://docs.github.com/en/copilot/concepts/context/content-exclusion
docsGitHub · Copilot Memory(跨会话记忆,public preview)https://docs.github.com/en/copilot/concepts/agents/copilot-memory
docsGitHub · 自定义指令(个人 / 仓库 / 组织与优先级)https://docs.github.com/en/copilot/concepts/prompting/response-customization
docsGitHub · cloud agent 防火墙(域名 / URL 允许清单与限制)https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-firewall
changelogGitHub · Changelog(Copilot 标签)https://github.blog/changelog/label/copilot/

实测记录Measured runs

本站尚未完成实测。测试协议见 tasks/_protocol.md。

实测建议:重点测第三方 agent 委派(Preview)的实际可用性—— 这是本分区唯一有这个能力的对象,值得先验证。

本分区的形态覆盖之最

形态Copilot 是否覆盖
GitHub 网站 / Mobile✅
Copilot app✅
Copilot CLI✅
VS Code / Visual Studio / JetBrains / Eclipse / Xcode✅
Codespaces 云端环境✅
云端 agent✅

没有任何其他对象能覆盖这么多形态。

三个值得单独记录的能力

① 可委派任务给第三方 agent(Preview)

官方 plans 页原文:

`` Delegate tasks to third-party coding agents like Claude by Anthropic and OpenAI Codex (Preview) ``

这是本分区里唯一明确写出「能把任务交给竞品 agent」的对象。

含义:Copilot 正在从「自己干活」转向「调度别人干活」。 它把自己定位成任务分发层,而非模型的唯一提供方。

注意标注是 Preview。

② 额度机制有三层

从 plans 页可见的机制:

机制说明
Base credits各档位的基础额度
Flex allotment变量额外用量,官方明确标注「Flex allotments may change over time」
Purchase additional GitHub AI Credits可额外购买额度
Pooled usage组织内共享额度 + 管理员支出控制(Business / Enterprise 专有)

Flex allotment 那句话值得单独记: 官方主动声明它会变——这意味着它不能被当作可依赖的固定额度。

③ 企业侧的额度治理

`` Pooled usage Included AI credits are shared org-wide with admin controls for spending. ``

组织内共享 + 管理员支出控制—— 这在个人档完全不可用,是企业采购时的关键能力。

功能逐项对照(官方 plans 页结构)

从采集到的对照表可见,档位差异主要在这些项:

功能覆盖情况
Editors and IDEs多编辑器支持
GitHub(github.com + Mobile)覆盖
Agent mode多档位提供(VS Code / Visual Studio / JetBrains / Eclipse / Xcode)
Integrates with MCP servers覆盖
Custom instructions and agents覆盖
App modernization for Java and .NET部分档位
Assign work and create a pull request部分档位
Code review(PR 审查)覆盖
File diff reviews in code editors仅更高档
Custom instructions with instructions.md仅更高档
Cloud agent部分档位
第三方 agent 委派(Claude / Codex)标注 Preview

官方生态位:MCP Registry 是平台级能力

值得注意的是,GitHub 把「MCP Registry / Integrate external tools」 放在平台导航的显眼位置,与 Copilot app 并列。

这说明 MCP 在 GitHub 的战略里不只是「一个插件」,而是平台级基础设施。

对本仓库的意义: 工具分区的条目如果哪天要选一个上游, GitHub 的 MCP Registry 是一个候选分发渠道。

采集限制

页面状态
plans 页✅ 取到 71K 字符,功能逐项对照完整
docs.github.com✅ 2026-10-08 已取到模型、cloud agent、索引、内容排除、Memory、指令、防火墙等页
Changelog✅ 取到 5838 字符

confidence: partial 的依据:第三方 agent 委派(Preview)的实际可用范围未核验。

相关条目Related entries

本页由This page is generated from the ai-agent-guide 数据层生成(CC BY 4.0)。data layer (CC BY 4.0). 方法论与坐标系定义见仓库内 METHODOLOGY.md。