跳到主内容
@wquguru
精选80GitHub ChangelogAI 编程与模型

GitHub Copilot Memory 正式版上线,Dreaming 预览与跨仓库搜索增强

GitHub intelligence puts your code, context, and history to work

原文
发到 X
推荐理由

Memory 正式化改变了 Copilot 的交互范式,建议开发者立即配置个人偏好与仓库规范以利用此能力。

Agents should understand more than your codebase—they should understand how your team works. Your preferences, repository conventions, skills, and custom instructions guide how changes should be made, while code in related repositories can show how the pieces fit together. Without that context, agents spend time rediscovering knowledge and can miss your team’s conventions.

智能体不应仅理解你的代码库——它们还应理解你团队的工作方式。你的偏好、仓库规范、技能以及自定义指令指导着应如何做出更改,而相关仓库中的代码则能展示各部分如何协同工作。缺乏这些上下文时,智能体会花费时间重新发现已有知识,并可能忽略你团队的规范。

GitHub intelligence is the context and learning layer sourced from the graph of GitHub data. It makes this data useful to agents, helping them remember how you work, keep that guidance current, and find the code and development history relevant to the next task. The goal is for agents to build on what you and your team already know, rather than treating every session as a fresh start.

GitHub 智能(GitHub intelligence)是从 GitHub 数据图谱中获取的上下文和学习层。它使这些数据对智能体变得有用,帮助它们记住你的工作方式,保持该指导信息的时效性,并找到与下一个任务相关的代码和开发历史。其目标是让智能体基于你和团队已有的知识进行构建,而不是将每次会话都视为从零开始。

That is the advantage of building where your team’s work already lives. A repository memory can capture why an edge case matters and which test covers it. GitHub intelligence allows agents to use that context, with controls over what they can access.

这正是在你团队工作所在之处构建的优势。仓库记忆可以捕捉某个边缘情况为何重要以及哪个测试覆盖了它。GitHub 智能允许智能体利用这些上下文,同时对其可访问的内容提供控制。

Three capabilities bring this into your workflow:

三项功能将这些能力引入你的工作流程:

  • Memory carries knowledge between sessions
  • Dreaming keeps the context current
  • Code search reaches beyond your checkout.
  • 记忆:在会话间传递知识
  • 梦境(Dreaming):保持上下文时效性
  • 代码搜索:突破本地检出范围。

Availability and settings vary by capability.

可用性和设置因功能而异。

Memory: Pick up where you left off

记忆:接续之前的进度

GitHub Copilot Memory is now generally available on paid Copilot plans. Copilot can remember personal preferences and repository conventions across sessions and clients. Memories can be created in the Copilot app, Copilot CLI, VS Code, Copilot cloud agent, Copilot code review, Slack, Teams, and GitHub Mobile.

GitHub Copilot Memory 现已在付费 Copilot 计划中全面可用。Copilot 可以在不同会话和客户端之间记住个人偏好和仓库规范。记忆可以在 Copilot 应用、Copilot CLI、VS Code、Copilot 云智能体、Copilot 代码审查、Slack、Teams 和 GitHub Mobile 中创建。

You can tell Copilot, Remember to start my pull request descriptions with a TL;DR, and it can reuse that preference across Copilot experiences. Repository memories can capture the right test command or how your team expects Copilot to check its work, so you spend less time repeating guidance in each session. Copilot sessions autonomously generate and curate memories, learning from every interaction.

你可以告诉 Copilot:“请记住,我的拉取请求描述要以 TL;DR 开头”,它便能在各种 Copilot 体验中复用该偏好。仓库记忆可以捕获正确的测试命令或你团队期望 Copilot 检查其工作的方式,从而减少你在每次会话中重复指导的时间。Copilot 会话会自动生成和管理记忆,从每次交互中学习。

Among the Copilot CLI sessions reviewed during the public preview where the agent used memory, 93% showed better adherence to developer preferences and 42% showed more efficient workflows attributed to the memories included in the session context.

在公开预览期间审查的 Copilot CLI 会话中,有 93% 的会话显示出对开发者偏好的更好遵循,42% 的会话显示出更高效的工作流,这归功于会话上下文中包含的记忆。

You can interact with memories in the Copilot app, Copilot CLI, and VS Code, or manage personal memories in your Copilot settings, where you can view or delete saved preferences.

你可以在 Copilot 应用、Copilot CLI 和 VS Code 中与记忆互动,或在你的 Copilot 设置中管理个人记忆,在那里你可以查看或删除已保存的偏好。

Dreaming: Continuous context improvement

梦境(Dreaming):持续改进上下文

Copilot dreaming, now in public preview, reflects on past work to improve future agentic sessions.

Copilot Dreaming(梦境)功能现已面向公众预览,它通过回顾过往工作来优化未来的智能体会话。

Three dream types are currently available:

目前提供三种梦境类型:

  • Personal memory curation customizes Copilot to your personal preferences by updating memories based on your agent conversations.
  • Repository customization manages repository-scoped memories and proposes updates and improvements to existing skills and custom instruction files.
  • Code review customization turns recurring accepted code-review feedback into guidance for Copilot code review.
  • 个人记忆策展:根据智能体对话更新记忆,从而将 Copilot 定制为符合你个人偏好的模式。
  • 仓库定制:管理仓库范围内的记忆,并针对现有技能和自定义指令文件提出更新和改进建议。
  • 代码审查定制:将反复被接受的代码审查反馈转化为 Copilot 代码审查的指导原则。

Dreaming can add, update, and remove personal and repository memories. Changes to checked-in skills and instructions are proposed in pull requests for your team to review.

Dreaming 可以添加、更新和删除个人及仓库记忆。对已检入的技能和指令所做的更改将以拉取请求的形式提出,供你的团队审查。

Dreaming is opt-in.

Dreaming 为可选功能。

  • Individual subscribers: Enable personal curation in your Copilot settings and repository dreams in each repository’s settings. See personal and repository setup.
  • Organizations and enterprises: Administrators enable dreaming through Copilot policies. Enterprise administrators can delegate that choice to organization administrators. Repository dreams cover the repositories allowed by Copilot Memory’s repository access settings. Users must also enable personal dreaming in their own Copilot settings.
  • 个人订阅用户:在 Copilot 设置中启用个人策展功能,并在每个仓库的设置中启用仓库梦境。请参阅个人和仓库设置指南。
  • 组织和企业:管理员通过 Copilot 策略启用 Dreaming。企业管理员可将此权限委派给组织管理员。仓库梦境涵盖由 Copilot Memory 的仓库访问设置所允许的仓库。用户还必须在自己的 Copilot 设置中启用个人梦境功能。

Dream runs consume AI credits. See the dreaming documentation for prerequisites, setup, and costs.

运行 Dreaming 会消耗 AI 积分。请参阅 Dreaming 文档以了解前置条件、设置步骤和费用详情。

Code Search: Reach beyond your checkout

代码搜索:突破检出范围的限制

Software projects rarely live in a single repository. GitHub code search helps Copilot find relevant code, configuration, schemas, and documentation across related projects and dependencies without needing a local clone. Copilot can search for exact text and symbols, match patterns with regular expressions, and narrow results by repository, path, or language. Semantic search can also find code by what it does, such as retrying a failed payment, even when you don’t know the file, function name, or repository it lives in.

软件项目很少仅存在于单个仓库中。GitHub 代码搜索帮助 Copilot 跨相关项目和依赖项查找相关的代码、配置、模式和文档,而无需进行本地克隆。Copilot 可以搜索精确文本和符号,使用正则表达式匹配模式,并按仓库、路径或语言缩小结果范围。语义搜索还能根据代码的功能进行查找,例如重试失败的支付操作,即使你不知道该代码所在的文件、函数名或仓库。

For example, you’re fixing failed payments, but retry behavior spans a payments service, a shared library, and background workers. Use /research to ask Copilot, How do these components retry failed charges, and where could retries overlap? Copilot can inspect implementations and callers across those repositories to help you understand how the system fits together before changing it.

例如,你正在修复支付失败的问题,但重试行为横跨支付服务、共享库和后台工作进程。使用 /research 命令询问 Copilot:“这些组件如何重试失败的扣款?重试逻辑可能在哪些地方重叠?”Copilot 可以检查这些仓库中的实现和调用者,帮助你在修改之前理解系统的整体结构。

That unlocks workflows that would otherwise require you to assemble the context yourself:

这解锁了原本需要你自行组装上下文的 workflows:

  • Plan a migration: Use /research to identify implementations and callers across repositories, plan the changes each service needs, and check which projects still use the old API.
  • Investigate a bug: Trace related implementations across services and shared libraries, bring specific code references into the investigation, and use that context to propose a coordinated fix.
  • Follow organizational standards: Find existing patterns across your organization and use them to guide changes in an unfamiliar codebase.
  • 规划迁移:使用 /research 跨仓库识别实现和调用方,规划每个服务所需的更改,并检查哪些项目仍在使用旧 API。
  • 调查错误:跨服务和共享库追踪相关实现,将具体的代码引用带入调查过程,并利用这些上下文提出协调一致的修复方案。
  • 遵循组织规范:查找您组织中现有的模式,并利用它们来指导对不熟悉代码库的更改。

Whether the task calls for an exact symbol, a regular expression in file contents or paths, or a natural-language description, Copilot can search across repositories in your organization to find relevant context. You spend less time cloning projects, tracking down files, and copying code into the conversation. In addition, Copilot gets the context it needs to make the right changes.

无论任务要求的是精确符号、文件内容或路径中的正则表达式,还是自然语言描述,Copilot 都能在您组织的多个仓库中搜索以找到相关上下文。这让您在克隆项目、追踪文件和将代码复制到对话中所花费的时间更少。此外,Copilot 还能获得做出正确更改所需的上下文。

Try it today

立即试用

Your team shouldn’t have to teach every agent the same lessons. GitHub intelligence helps agents carry those lessons forward, find the context they need, and put more of each session toward the work you actually want done.

您的团队不必让每个智能体都重复学习相同的知识。GitHub 智能功能帮助智能体延续这些经验,找到所需的上下文,并将每次会话的更多精力投入到您真正希望完成的工作中。

Join the discussion within GitHub Community.

加入 GitHub 社区内的讨论。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件