TOKREPO · 工具
GitHub Copilot logo
IDE · GitHub

GitHub Copilot

github.com

它是什么

GitHub Copilot 是最早进主流的 AI 编码助手 —— GitHub 和 Microsoft 2021 年推出,把行内补全带给主流开发者,现在产品有三种模式:ghost-text 补全、IDE 内聊天面板、2025 出的 agent 模式(在 VS Code 里规划并执行跨文件改动)。

什么时候应该用:

  • 你在 VS Code 或 JetBrains 里干活,想要业内最深的 IDE 集成
  • 想一份订阅覆盖 PR 审查、行内建议、聊天、自动 agent
  • 团队已经在 GitHub Enterprise,想要组织级审计、许可证过滤、SSO 都内置

它为什么突出

功能 给你什么
行内补全 Ghost-text —— Copilot 的元老产品,键盘流上仍然最好
聊天面板 IDE 内聊天,带项目上下文、引用、@workspace 命令
Agent 模式 2025 年发 —— Copilot 在 VS Code 里规划并执行跨文件改动
.github/copilot-instructions.md 仓库级指令,Copilot 在聊天和 agent 模式里都读
多模型 Claude Sonnet、GPT-5、Gemini 2.5 —— 单聊天可切
PR 审查 Copilot 在 GitHub UI 里审你的 PR,行内评论
企业控制 许可证过滤、审计日志、内容排除、SSO

怎么装

# VS Code
code --install-extension GitHub.copilot
code --install-extension GitHub.copilot-chat

# JetBrains: 插件市场装
# Neovim: github/copilot.vim

装完在 IDE 里登 GitHub 账号。订阅档:Free(受限)、Individual $10/月、Business $19/人/月、Enterprise $39/人/月。Free 档自带月度聊天 + 补全配额。

在 GitHub Copilot 里装啥

Copilot 表面认仓库:指令在 .github/copilot-instructions.md,单 prompt 在 .github/prompts/*.prompt.md。三个 TokRepo pack 起手:

  • Copilot Instructions pack —— 主流栈实战的 copilot-instructions.md
  • Copilot Prompt 库 —— 审查、重构、文档生成的 .prompt.md
  • MCP 服务器全家桶 —— Copilot agent 模式现在也读 MCP server,复用 Claude Code 配置

tokrepo install 装好你的 .github/ 目录就跟 GitHub 自己 2025 sample repo 的约定对齐。

常见坑

  • 行内补全和聊天用不同模型 —— 聊天认你选的模型,补全用单独的(更快更小)模型。别期望补全质量等于聊天
  • Agent 模式烧 token 快 —— 跨文件改动按聊天费率计配额。盯着用量面板
  • Free 档默认开公共代码过滤 —— 屏蔽匹配公共仓库的补全。在宽松代码上做事的话设置里关掉
  • .github/copilot-instructions.md 体积上限 —— 实测约 10KB,超过会无声截断
  • 组织策略能禁 agent 模式 —— 企业管理员关了,agent 模式会静默灰掉。看 Copilot 状态面板

与其他工具的关系

GitHub Copilot 是给终端 agent(Claude Code、Codex CLI)的 IDE 优先回应。VS Code 集成最紧(毕竟同一家母公司)。Cursor 是 VS Code fork,加了 Cmd-K composer,agent 模式比 Copilot 早跑了两年;Copilot 2025 的 agent 模式才追平。2026 年多数团队要么 Cursor + Claude Code 终端,要么 Copilot Enterprise + 终端 Codex/Claude。Copilot 的企业控制对监管行业仍是强采纳理由。

6个资产·2个 MCP·1个 prompt·1个 skill·1个 config·1个 script
全部资产

6 个资产适配 GitHub Copilot

Prompt#01
Awesome Cursor Rules — AI Coding Standards for 30+ Stacks

Curated .cursorrules files for 30+ tech stacks. Drop into your project root so Cursor AI follows your coding standards automatically.

by TokRepo Curated·389 views
$ tokrepo install awesome-cursor-rules-ai-coding-standards-30-stacks-ca000374
Skill#02
GitHub Copilot — Official Customization Collection

Official GitHub Copilot customization: agents, skills, instructions, plugins, hooks, and agentic workflows. Plus documentation.

by GitHub·127 views
$ tokrepo install github-copilot-official-customization-collection-1e571d3c
MCP#03
Chrome DevTools MCP — Browser Debugging for AI Agents

Give your AI coding agent full access to Chrome DevTools for browser automation, debugging, and performance analysis. Works with Claude, Cursor, Copilot, and 15+ AI tools.

by MCP Hub·96 views
$ tokrepo install chrome-devtools-mcp-browser-debugging-ai-agents-17f46368
MCP#04
GitHub MCP Server — Official GitHub AI Integration

GitHub's official MCP server that lets AI assistants manage repos, issues, PRs, Actions, and code search through the Model Context Protocol.

by GitHub·95 views
$ tokrepo install github-mcp-server-official-github-ai-integration-679a2650
Config#05
lnai — Unified AI Config for Claude, Cursor, Copilot & More

Define AI tool configs once in a .ai/ directory and auto-sync to Claude Code, Cursor, GitHub Copilot, Gemini CLI, Codex, and Windsurf native formats.

by AI Open Source·68 views
$ tokrepo install lnai-unified-ai-config-claude-cursor-copilot-more-c3338e8d
Script#06
CopilotKit — Frontend Stack for AI Copilots and Generative UI

React and Angular framework for embedding AI copilots with in-app chat, generative UI, and agent integration into any application.

by Script Depot·42 views
$ tokrepo install copilotkit-frontend-stack-ai-copilots-generative-ui-b9217f30
FAQ

常见问题

GitHub Copilot 免费吗?

有 Free 档带月度聊天 / 补全配额(2024 年底发)。再上去 Individual $10/月,Business $19/人/月,Enterprise $39/人/月。Free 档够极轻量个人用;多数职业开发升 Individual。

GitHub Copilot 能用 Claude 或 Gemini 模型吗?

能。2024 年起 Copilot Chat 允许单会话切模型 —— Claude 3.5/Sonnet、GPT-5、Gemini 2.5 都是选项。行内补全仍用 GitHub 调过的模型。模型可用性按订阅档变。

Copilot 跟 Cursor 有啥区别?

Copilot 是 VS Code/JetBrains/Neovim 的插件。Cursor 是 VS Code 自身的 fork,composer / agent 集成更深。Copilot 企业控制更强、用户基数更大;Cursor 在 agent UX 上跑得快。两家现在都认类似的指令文件约定。

Copilot agent 模式跟聊天有啥区别?

聊天是对话式 —— 你问 Copilot 答,你拷贝代码。Agent 模式自治 —— Copilot 规划跨文件改动、跑命令、经你批准后改。2025 年初在 VS Code Insiders 上线,现已 GA。token 比聊天费。

Copilot 在 CI / 命令行能用吗?

可以,通过 gh copilot CLI 扩展。主要做 shell 命令建议和 PR 摘要,不是完整 agent 跑。CI 里要 headless agent 的话,多数团队是 IDE 用 Copilot + CI 用 Claude Code 或 Codex CLI。

更多工具

回首页浏览全部工具

8 个工具精选 · favicon 真实 logo · 按类型聚合

返回工具总览