跳到主内容
精选88Latent Space(RSS)技巧与观点

AI SDK等开源项目关闭PR:用Agent工厂接管代码贡献

PRs NOT Welcome: How Top AI Open Source Projects Are Managing Thousands of Contributors

原文
推荐理由

开源维护者必看,详细拆解了如何用Agent团队替代人工Review PR的工程实践,提供了从Vercel到Flue的可复用架构思路。

GitHub invented pull requests, and for 18 years they have been open by default. But now some of the top AI-native open source projects are shutting PRs off, because they’ve found a better way.

GitHub 发明了拉取请求(pull requests),在长达 18 年的时间里,它们默认都是开放的。但现在,一些顶级的 AI 原生开源项目正在关闭 PR 功能,因为他们发现了一种更好的方式。

These projects, which include Flue and tldraw, refuse to accept PRs from external contributors — in part because they’re usually AI-generated. Instead, the maintainers prefer to use their own agents to create and manage PRs.

这些项目包括 Flue 和 tldraw,它们拒绝接受来自外部贡献者的 PR——部分原因是这些 PR 通常是由 AI 生成的。相反,维护者更倾向于使用自己的代理来创建和管理 PR。

Also, many projects have begun using a “software factory” to manage community contributions. Typically this involves a ‘team’ of agents triaging a PR, reproducing the issue (if it’s a bug), implementing a fix or a new feature, reviewing it, and then handing it back to a human to merge it.

此外,许多项目开始使用“软件工厂”来管理社区贡献。这通常涉及一个由代理组成的“团队”,对 PR 进行分类、复现问题(如果是 bug)、实现修复或新功能、进行审查,然后将其交还给人类进行合并。

Vercel’s software factory for AI SDK

Vercel 的 AI SDK 软件工厂

Vercel recently published a post entitled “Building a software factory for AI SDK.” It describes how the open source AI SDK project, which gets over 20 million npm downloads per week, deployed agents to get control over its PR and issue backlog — which had reached “over 1,000 open issues and almost 800 pull requests” by late June.

Vercel 最近发布了一篇题为《为 AI SDK 构建软件工厂》的文章。文章描述了获得每周超过 2000 万次 npm 下载量的开源 AI SDK 项目如何部署代理,以掌控其积压的 PR 和问题列表——截至 6 月下旬,积压量已达到“超过 1000 个开放问题和近 800 个拉取请求”。

There are several types of agents in Vercel’s system, each of which focuses on a different task. For example, there’s an agent that reproduces a bug, another that applies a fix, and yet another that reviews the fix.

Vercel 的系统中有几种类型的代理,每种都专注于不同的任务。例如,有一个代理用于复现 bug,另一个用于应用修复,还有一个用于审查修复方案。

Diagram from Vercel; comments by Latent Space

图片来自 Vercel;评论来自 Latent Space

One of the key reasons why Vercel set up this software factory is because it trusts its own agents to do the work, more so than agents run by community members.

Vercel 建立这个软件工厂的关键原因之一在于,它信任自己的代理来完成工作,这种信任程度高于社区成员运行的代理。

“If we have a very specific agent with a very specific prompt that we optimized — and we know that, over history, it was very successful in fixing a certain category of bugs — then we develop trust in that particular agent configuration,” Vercel engineer Lars Grammel explained in a YouTube video.

“如果我们有一个非常特定的代理,配合经过优化的特定提示词——并且我们知道它在历史上修复某一类 bug 非常成功——那么我们就对该特定的代理配置产生信任,”Vercel 工程师 Lars Grammel 在一段 YouTube 视频中解释道。

“For open-source projects, it’s worth considering having your own agents and your own setup, and not necessarily trusting the community, because it can actually cut down your time to review,” he added.

“对于开源项目来说,值得考虑拥有自己的代理和自己的设置,而不一定非要信任社区,因为这实际上可以减少你的审查时间,”他补充道。

Example of software factory workflow in AI SDK project.

AI SDK 项目中软件工厂工作流程示例。

Grammel also showed the deployment architecture for its system, noting that “there is a UI, there’s a web app, there’s an underlying API, there’s an execution space, and there are sandboxes.” It’s then synchronized with GitHub, which automatically triggers other actions. The UI Grammel mentioned was custom-made.

Grammel 还展示了其系统的部署架构,指出“有一个 UI,有一个 Web 应用,有一个底层 API,有一个执行空间,还有沙箱。”随后与 GitHub 同步,从而自动触发其他操作。Grammel 提到的 UI 是定制的。

Vercel’s software factory deployment architecture; diagram by Lars Grammel.

Vercel 的软件工厂部署架构;图表由 Lars Grammel 制作。

Just four weeks after this software factory was implemented, Vercel claims the factory now “authors between 25 and 35% of PRs we merge and closes 70-80% of issues.”

在该软件工厂部署仅四周后,Vercel 声称该工厂现在“撰写了我们合并的 PR 中的 25% 到 35%,并关闭了 70-80% 的问题。”

Astro’s auto-triage system

Astro 的自动分类系统

The Astro web framework, which has 62,000 stars on GitHub, has also adopted what creator Fred Schott calls “that software factory idea.”

在 GitHub 上拥有 62,000 个星的 Astro Web 框架也采用了其创作者 Fred Schott 所称的“那个软件工厂理念”。

“For five years, we were in this place where issues came in faster than we could handle them,” Schott told Latent Space.

Schott 告诉 Latent Space:“五年来,我们一直处于问题涌入速度快于我们处理能力的位置。”

But now, with agents handling the triage work, they’ve reestablished control.

但现在,随着代理(agents)处理分类工作,他们重新夺回了控制权。

“It’s totally shifted in the last six months,” he said. “We can now solve these issues with these automations — handling triage, reproduction, getting the user to actually verify the fix that the bot is suggesting before we even look at it.”

他说:“过去六个月情况发生了彻底转变。我们现在可以通过这些自动化手段来解决这些问题——处理分类、复现、让用户在实际验证机器人建议的修复方案之前进行确认,甚至在我们查看之前。”

Example of an Astro factory bot in action

Astro 工厂机器人的实际运行示例

The result was not just a large decrease in open issues, but a complete change in how the Astro team deals with incoming community requests.

结果不仅是开放问题的数量大幅减少,而且 Astro 团队处理社区请求的方式也发生了根本性变化。

“I’ve never seen that in my entire decade-plus experience with open source,” Schott said. “Being able to essentially treat issues as a thing that every week, you prioritize — no matter what — versus a backlog that you’re constantly trimming.”

Schott 说:“在我十多年的开源经验中,我从未见过这种情况。能够基本上将问题视为每周优先处理的事项——无论如何——而不是不断修剪的积压任务。”

Furthermore, the Astro “auto-triage” system directly led to Schott creating a brand new agent framework, called Flue.

此外,Astro 的“自动分类”系统直接促使 Schott 创建了一个全新的代理框架,名为 Flue。

Flue doesn’t accept your PRs, but is open for discussion

Flue 不接受你的 PR,但开放讨论

With Flue, Schott is trying an even more radical approach to PRs. Flue’s contributor guide states that “we’re going to try to reimagine things” — partly to prevent what it calls “Drive-by AI slop PRs.”

通过 Flue,Schott 正在尝试一种更激进的 PR 处理方式。Flue 的贡献者指南指出,“我们将尝试重新构想事物”——部分原因是为了防止其所谓的“路过式 AI 垃圾 PR”。

Basically, Schott explained, every external pull request in the Flue project is automatically closed and converted into an issue or discussion. Bug reports and fix proposals get turned into issues, feature requests become discussions.

基本上,Schott 解释说,Flue 项目中的每个外部拉取请求(pull request)都会自动关闭并转换为问题或讨论。错误报告和修复建议会被转化为问题,功能请求则成为讨论话题。

Agents can do most PR tasks now, according to Flue’s contributor guide.

根据 Flue 的贡献者指南,代理现在可以完成大多数 PR 任务。

“If you submit a PR, no hard feelings, we’re just going to go and represent it for you as issues and discussions. And from there, trying to figure out the right way to bring people on.”

“如果你提交了一个 PR,别介意,我们只是会去代表你将其作为问题和讨论来呈现。然后从那里开始,试图找出吸引人们参与的正确方式。”

It’s kind of like treating incoming requests as leads, rather than as a piece of work a maintainer feels obliged to review. The contributor guide explains that it uses the team’s own expertise combined with “the best available SOTA [State-of-the-Art] LLMs that we have access to” in order to help them decide what to work on next.

这有点像将传入的请求视为线索,而不是维护者感到有义务审查的工作项。贡献者指南解释说,它利用团队自身的专业知识以及“我们能访问到的最佳 SOTA [State-of-the-Art] LLMs”,以帮助他们决定下一步做什么。

Once a decision is made in the issue or discussion, agents are then deployed for “research, design, implementation, and initial review.”

一旦在 issue 或讨论中做出决定,代理就会被部署用于“研究、设计、实施和初步审查”。

If our agents write the code, your external PRs are worthless

如果我们的代理编写代码,你提交的外部 PR 就毫无价值。

Like Flue, the “source available” React drawing tool tldraw (50,000 stars) automatically closes external PRs.

与 Flue 类似,“源码可用”的 React 绘图工具 tldraw(50,000 stars)会自动关闭外部 PR。

Project creator Steve Ruiz announced this policy in January and five months later reiterated it, noting that it was “an opinionated decision made in response to changes in how we’re coding (more discussion, more agents), the social practices around public contribution, and the changing landscape around code security.”

项目创始人 Steve Ruiz 在一月份宣布了这一政策,五个月后再次重申,指出这是“一项基于我们编码方式变化(更多讨论、更多代理)、围绕公开贡献的社会实践以及代码安全环境变化而做出的有倾向性的决定。”

HashiCorp co-founder and Ghostty creator Mitchell Hashimoto, now a co-founder of Superlogical, takes it even further. He thinks “the future is that large open source projects will close contributions completely.”

HashiCorp 联合创始人兼 Ghostty 创建者 Mitchell Hashimoto,现在是 Superlogical 的联合创始人,他将这一观点推得更远。他认为“未来大型开源项目将完全关闭贡献通道。”

Ruiz responded, “It just makes less sense to have people contributing code if the issue is decently well-specified and the code can be written by agents.”

Ruiz 回应道:“如果 issue 已经相当明确,且代码可以由代理编写,那么让人贡献代码的意义就更小了。”

But…what happens to the community?

但是……社区会怎样?

Traditionally in open source, pull requests have been reviewed by maintainers not only for the code, but to teach contributors and assess them as future maintainers. If projects like AI SDK and Astro are using their agents to do much of the code review and implementation, where does that leave community members who want to be more actively involved?

在传统开源中,维护者审查 pull requests 不仅是为了检查代码,也是为了教导贡献者并评估他们作为未来维护者的潜力。如果 AI SDK 和 Astro 等项目使用它们的代理来执行大部分代码审查和实施工作,那些希望更积极参与的社区成员又将何去何从?

Schott recognizes this as a risk.

Schott 认识到这是一种风险。

“It still leaves this open hole of, well, if you just keep narrowing the project, at a certain point, you and I go on vacation — what happens? It doesn’t really solve every problem.”

“这仍然留下了一个开放的漏洞,即如果你不断缩小项目的范围,到了某个时刻,你和我去度假了——会发生什么?它并不能真正解决所有问题。”

However, the fact that both Flue and tldraw don’t accept PRs but do accept new issues and discussions perhaps points to a solution. Which is that by talking to each other more, community members better get to know — and trust — one another, which is both a way to learn from peers and potentially prove yourself worthy of being a maintainer.

然而,Flue 和 tldraw 都不接受 PR,但接受新的 issue 和讨论,这一事实或许指向了一种解决方案。也就是说,通过更多地交流,社区成员能更好地了解彼此——并建立信任,这既是向同行学习的方式,也是证明自己值得成为维护者的途径。

Example of a tldraw issue (above) being turned into a PR (below)

tldraw 的一个 issue(上图)转变为 PR(下图)的示例

As for the code, if it’s easier for maintainers to use AI themselves than to accept external code contributions, then as tldraw founder Steve Ruiz put it, “it’s better to limit community contribution to the places it still matters: reporting, discussion, perspective, and care.”

至于代码,如果维护者自己使用 AI 比接受外部代码贡献更容易,那么正如 tldraw 创始人 Steve Ruiz 所说,“最好将社区贡献限制在它仍然重要的地方:报告、讨论、视角和关怀。”

更进一步:量化金融体系

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

进入量化体系 →

相似阅读

另一事件,读法相近