AI-NATIVE · ENG-PROCESS

工程流程改造

agent 写大部分代码之后,评审、CI、迁移和交付流程要怎么改?

44 篇来源 · 更新于 2026-11-25 · BigCat

// 目前能学到的

  1. agent 放量后,瓶颈先落到人工评审和共享基础设施上,所以推广之前就该压测 CI、merge queue 和 Git 的并发能力。独立研究 Harvard/Jellyfish 发现采纳 agent 后「提交评审→批准」时长增加 56.1%,issue/epic 的增幅远小于代码量增幅;厂商侧 Anthropic CI、OpenAI Pando、Linear 也都被 CI 或 Git 压垮过。注意 Linear 的做法(runner、分片、门禁瘦身)不需要实验室条件,而自研 VCS 连 Anthropic 自己都不建议照搬。(多个组织)
  2. 人工审批应按变更风险分层,而不是一律要人看:风险等级由分类器按变更判定,不按作者判定;低风险全绿就自动合并,auth/计费/安全区保留 code owner,bot 批准不能替代人,新提交使批准失效(Claude Code 评审、Anthropic 安全 SDLC)。这份信任要按代码区域花半年以上逐步放开(Cat & Thariq 访谈),GitHub 也提醒涉及授权、计费、隐私的改动,diff 再干净也不算便宜(The cost of saying yes)。(多个组织)
  3. 先建验证手段,再放手让 agent 生成。迁移、重写、维护这类有参照物的工作最适合做第一批试点:可以用旧实现当 oracle 做差分测试加影子流量(PostHog;Anthropic Messages API 测试通过约 98% 时线上输入只有约四分之一一致,于是把差异做成指纹派给 agent 修),用与实现语言无关的测试套件验收(Bun),每个增量 PR 都过全量 E2E(GitHub Rust 迁移),或者先从规格生成测试、在真实系统上校准(AWS Emulator)。删死代码、清过期 flag 时,要求 agent 附上不可达的证据(OpenAI 维护)。评审量要留余地:Anthropic 的每日维护 routine 开了 388 个 PR,过完自动评审和人审只合并 180 个(Claude 维护 routine)。没有自动化的「完成」信号,就只是在看着一个生成器干活(Meta Forum);最便宜的起点是给每个服务写一个让 agent 自己把应用跑起来的 verify skill(Claude Code 验证)。(多个组织)
  4. AI reviewer 要设计成多个窄职责、能自证、可度量噪声的系统,不要靠一个大 prompt。具体做法:多 agent 并行找 bug,再由另一组投票确认,每条发现都要附「证明」,用历史事故和回滚 PR 建 eval,限制评审轮数(Claude Code 评审);评审规则要小、有作用域,宽泛规则会制造噪声(OpenAI 评审规则);多家模型交叉审,再由主 agent 去掉误报(Nolan Lawson)。证据上要留个心:常被引用的 16%→54% 衡量的是「收到实质评论的 PR 占比」,不是缺陷检出率;Meta 的 60% 真阳性率是工程师自报的(Meta JiTTesting)。(多个组织)
  5. 把评审人和老员工脑子里的规则写成 agent 能读、CI 能跑的东西:同一错误出现两次就写成规则(Meta Forum),发现新的漏洞类别就回写到 CLAUDE.md 或 skill(Anthropic 安全 SDLC),把 CI 约束写进生成测试的 skill(Linear),agent 想绕过检查之后就加上「未经同意不得改 E2E 测试」这样的规则(GitHub Rust 迁移)。出了问题,修的是生成代码的流程,不去手改产物(Bun)。规则本身也要受保护和修剪:评审规则只从 base 分支读、PR 改不到;漏判转规则要至少两例且能从 diff 识别,新闸门先 observe 再 enforce(Claude Code 验证)。(多个组织)
  6. 代码可以交给 agent 写,但谁为这次改动负责必须由人显式承担,各家只是在 PR 描述的处理上有分歧。Kenton Varda 团队禁止 AI 写描述,把它当作「作者真懂这次改动」的证明;Simon Willison 则让人写首段,agent 的长描述折叠起来。Ladybird 更进一步,因为 PR 体量已经不再代表投入和可信度,干脆关闭了公开 PR。Claude Code 团队的说法是「谁调用了 agent,谁就为改动负责,就像自己敲的一样」,同时让看守 PR 的 agent 不能合并、不能提交规则文件(Claude Code PR 跟进)。对 inner-source 仓库来说,可以先从 PR 模板(意图、风险、回滚方式)和受信作者名单做起。(多个组织)
  7. 个人提速不会自动变成团队提速,度量口径也不能混用。Microsoft Digital 的教训是传统 SDLC 每次交接都会丢意图,必须改流程(spec 驱动)才能拿到团队收益;Nolan Lawson 把 AI 用在质量上,结果速度不升反降。Anthropic 同一家就有「>80% 合并代码行」(When AI builds itself)和「90%+ 核心库合并变更」(Fable 5.2)两种口径,作者自己也说这两个数不能混用,跨组织就更不能直接比较。(多个组织)

// 来源(新的在前)

Anthropic 把 Messages API 从 Python 整体迁到 Rust:生成不再是瓶颈,验证才是——他们把线上生产 API 本身当成 oracle,用影子流量的差异「指纹」驱动 agent 自己修 bug,人只守 PR 评审这道缝

Anthropic2026-11-25 · Migrating our Messages API to Rust
能借鉴的:适用于任何「有一个在跑的旧系统、测试覆盖不全」的迁移或重写:1)先承认测试不够——移植测试时专门审一遍断言是否被削弱,不能把「测试全绿」当完成;2)把旧系统当 oracle 做影子比对,但非确定性部分(模型、随机数、外部调用)只跑一次、把结果回放给新系统;有计费/限流副作用的请求确保只计一次;3)差异不要整条丢给 agent,先按「哪一步、哪个字段、首个差异位置、长度」做成指纹并聚类,只在出现新类别时派活——这样也不用读敏感数据;4)给 agent 一个不碰生产、秒级出结果的本地比对环境,让它自己构造复现用例、修复时必须附一条在旧代码上失败的测试;5)人卡在「进生产之前的 PR 评审」,专门判断「是 bug 还是有意改动」「是不是投机取巧让输出对上」;6)每次人工驳回都落成三件东西:给后续 agent 读的规则、对同类错误的全仓搜索、一条测试或 lint;迁移期间加一道「改旧代码必须同步改新代码或申请豁免」的合并检查,避免目标一直漂移。前提:能在生产旁路复制流量、有按步骤可比的中间结果、有足够的评审带宽。
做了什么 · 原句数字 · 冷水

API 流量涨了约 1,800 倍,先做的局部 Rust 重写只省 8–10% CPU 还增加了复杂度,于是决定整体迁移;Claude 约一周写出核心请求路径初版,难点全在验证。约 700 个集成测试和 Python 实现耦合,移植时被削弱了 100 多处断言;Rust 版 4 月测试通过约 98%,线上输入却只有约四分之一一致。做法:模型只调用一次、把输出回放给 Rust,按步骤 checkpoint 比对,不读用户内容,只记录差异的「形状」(哪一步、prompt 第几段、首个差异字节、长度)作为指纹;脚本每 10–30 分钟按指纹聚类,出现新类别才通知一个协调 agent,由它给每类差异分派一个 worker agent,并在共享 Slack 频道开线程供工程师跟进。三层回路:内层是云沙箱里不调模型、一秒内出结果的本地比对,agent 自己构造请求复现差异、改到一致并补一条在旧代码上失败的测试;外层是 PR 评审通过后部署,在影子流量上看指纹是否消失,没消失就退回内层;记忆层把人的纠正写成笔记、规则(例如「照搬 Python 的行为,不要猜」,随后 agent 又找出 7 处靠猜的移植)、测试、lint,以及「改 Python 必须同步改 Rust 或申请豁免」的合并检查。工程师的位置从内层亲自追差异,移到回路之间审修复,最后移到边缘写规则和检查。

  • From early 2024 to fall 2026, API traffic grew roughly 1,800 times.
  • This allowed us to ship an API on Rust that uses about 70% less CPU per request and cuts median time to first token by about 20% without ever taking the service offline or freezing feature development.
  • This reduced the API’s CPU usage by about 8% to 10%.
  • The effort required to undertake the project was dropping fast: by May 2026, Claude was writing more than 80% of the code Anthropic merged.
  • Tests were the easiest place for us to start, since we already had an existing set of about 700 integration tests.
  • We saw this happen: when we audited the ported tests, we found more than 100 weakened assertions.
  • Our Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic (Figure 6).
  • Rather than send each to an agent, we ran a script every 10 to 30 minutes that grouped them by which fields differed, then alerted a coordinating Claude agent only when it saw a new kind of record.
  • Because this check never actually called the model, comparing the versions took under a second.
  • An agent then compared the existing code with that rule and found seven more places where the port had relied on a guess.
  • In June, an agent also went through about 60 of the team’s review comments, grouped the recurring problems and proposed rules, which an engineer edited and approved for CLAUDE.md (Figure 14).
口径:1,800 倍是 2024 年初到 2026 年秋「自家平台日均 API 请求」的月均值增幅,包含 Anthropic 自用流量;70% CPU、20% 首 token 中位时延是迁移前后七日均值对比,CPU 只看一个区域,首 token 时延只看客户的 Claude Code 请求、时间段更短,图上还显示切换前时延已有下降。8–10% 是局部重写那一步的 CPU 节省。「超过 80%」是 2026 年 5 月 Anthropic 合并代码中由 Claude 写的比例,按什么单位算(行/PR)本帖没说,和 When AI builds itself 是同一口径的复述。98% 测试通过率 vs 约四分之一输入一致,分母分别是测试用例和被比对的线上请求,比对内容随时间变化,有 6 天数据被剔除。没有给出:总共多少类指纹/修了多少 bug、agent 提的修复被人拒绝的比例、项目总人力和日历时长(4 月到 9 月公网流量切换)、token 成本。
冷水:厂商自报,Anthropic 迁的是自家 API、用的是自家模型,算力和 token 预算不是约束;作者团队也写了大部分 harness。Claude 的作用和人力投入没有拆开量化(例如修复里人改了多少、工程师用了多少周),文中「建好 Rust 调用工具描述服务花了团队几周」说明关键部分仍有人工开发。性能数字的口径各不相同(单区域、只看 Claude Code 请求、短时段),不能直接当作整体收益。与 Bun 迁移 不同,这里没有独立于实现语言的测试套件,所以生产 oracle 是被迫的选择,不是普遍更优的方法。

也见 Agent 运维与编排

Claude Code 团队把「开 PR 之后」的杂活(CI 挂了、评审意见、合并冲突)交给 agent 看守,人只接大决定;看守 agent 不能合并、不能提交规则文件

能借鉴的:不用等平台上线就能拿走的几条:1)先让 agent 看守自己开的 PR(只修 CI、冲突、明确的评审意见),把「重设计、新 API、安全问题」写成必须交回给人的清单,并给每个问题设推送上限(如 3 次);2)看守 agent 的权限要比人窄:不能合并、不能 force-push、不能提交 CI 配置、CODEOWNERS、agent 规则文件——这些改动只走人工提交;3)注意它会在你机器上合并 base 分支并跑测试,等于能往 base 合代码的人都能在你机器上执行命令,所以只在全员可信的仓库本地跑,必须的检查放进 CI 和分支保护而不是 git hook;4)新的自动审批先 observe 一到两周,对照人工评审结果复盘「本会批准但人要求修改」的案例,再收紧或放开;5)在团队规范里写明「调用 agent 的人对改动负责」。前提:有分支保护、CI 足够可靠,评审意见写得够具体,agent 能据此动手。
做了什么 · 原句数字 · 冷水

这是一篇 Claude Ship 产品指南,作者 Addy Osmani 顺带写了 Claude Code 团队自己的做法:开 PR 之后,跟进工作(修 CI、处理评审意见、解冲突)通常由 agent 做,作者回来时 PR 往往已经按评审意见改过一轮。看守 agent 只做小改动,碰到重设计、新 API、扩大范围、修不掉的安全问题就交回给作者;同一个问题最多推 3 次,然后报告试过的方案再升级给人。它被禁止合并 PR、禁止 force-push,自己的提交不包含 .github/、CODEOWNERS、CLAUDE.md、.claude/、git hooks 这类定规则的文件。团队原则:一个模式至少在 2 个 PR 里重复出现才考虑写成规则,加规则的 PR 由人批准;内部 commit 闸门先跑 observe 模式记录「本来会怎么判」,分析误报后再强制;谁调用了 agent,谁就为改动负责,「就像自己敲的一样」。

  • It also pushes at most 3 times for a given issue, and then reports the attempted solutions.
  • On our team, we have a principle that a pattern has to be repeated on at least 2 PRs to be considered for a rule.
  • Watch the PR for up to seven days.
口径:三个数字都是机制参数,不是效果数据:「最多 3 次」是每个问题的推送上限,「至少 2 个 PR」是规则准入门槛,「最多 7 天」是产品里看守的时长上限(产品默认值,不一定是团队内部配置)。帖子没有说团队里多大比例的 PR 由 agent 看守、看守 agent 改对了多少、被升级回人手的比例,也没有 observe 模式下的误报率。
冷水:厂商自报,而且主体是产品发布指南(Claude Ship、/ship、/steward),内部实践只是其中几句;Claude Code 团队做的就是这个工具本身,是最熟练的用户;没有任何效果数据。2 个 PR 门槛、observe 先行和三轮停手此前在 验证帖 里已经出现过,这篇新增的主要是「PR 跟进交给 agent」和看守 agent 的权限边界。

也见 质量与安全

Claude Code 团队把「验证层」当成独立系统来管:改动碰不到判它的规则,新闸门先 observe 再 enforce,漏掉的 bug 转成规则

能借鉴的:不依赖 lab 条件、可以直接拿走的几个动作:1)每个服务写一个 verify skill,把「怎么启动、怎么点一遍」写清楚,先把它调稳再扩大 agent 并行数;2)把评审规则文件放在 PR 改不到的地方(只读 base 分支),评审结果绑定 commit SHA;3)新的提交闸门先开 observe 模式记日志,看完误报再 enforce,并给 commit 留「为什么没验证」的说明口子;4)把历史事故整理成带 diff 触发条件的清单,让 agent 按 diff 只查命中项;5)漏判转规则要有门槛(至少两例、能从 diff 识别、人批准),并定期删规则。前提:E2E 环境能被 agent 自动拉起,测试不能 flaky,否则 agent 学会的是重跑。
做了什么 · 原句数字 · 冷水

Claude Code 团队(约九成代码由 Claude 写和审)讲了自己的验证流程。每个仓库放一个 verify skill,让 Claude 提交前把应用真的跑起来做冒烟测试(浏览器扩展、移动端 MCP、computer use、本地起服务);提 PR 前先跑测试、构建、lint;检查连续三轮还失败,Claude 就停手叫人。代码 owner 自己写检查;一份 39 条的可靠性清单,每条带一个能从 diff 读出的触发条件,Claude 只查命中的那 3–10 条。不加第二个 reviewer,而是调好主 reviewer 的 REVIEW.md,并且只从 base 分支读,PR 改不了判它的规则;评审结果绑定具体 commit。每个 commit 盖上「怎么验证的」戳(含 none),commit 闸门分 off/observe/enforce 三档,同一 session 被拦两次后放行。用回滚数、合并前被拒数和同尺寸的干净改动对照组来「评审 reviewer」;漏判的 bug 要在至少两个 PR 出现、能从 diff 识别,经三个 agent 尝试证伪、人在 PR 里批准后才写成规则;flaky 测试不许加 sleep 或重试,找不到根因就删掉并写明原因;规则文件定期清理。

  • On the Claude Code team, the vast majority of our code (~90%) is written and reviewed by Claude.
  • In internal testing around structured file generation, having a separate grader check Claude’s work against a rubric improved task success by up to 10 points over a standard prompting loop, with the largest gains on the hardest problems.
  • If a check is still failing after three rounds, Claude stops and brings in a human.
  • We maintain a reliability checklist with 39 items, each with a trigger that can be read from a diff, a check, and the incidents or PRs behind it.
  • Claude reads the diff and checks only the items whose trigger matches–usually 3 to 10–so nobody has to memorize past outages.
  • These must occur in at least two PRs and be identifiable from a diff to be considered a potential rule.
  • If at least two find the bug, it's a detectable bug.
口径:「约 90%」没有口径(行、PR 还是 commit),而且这次说的是「写和审」都由 Claude 做,和此前「约 90% 由 Claude 写」(评审帖)不是同一个说法。「最多提升 10 个点」来自结构化文件生成的内部测试,不是 Claude Code 仓库本身的数据,没给基线和样本量。39 条清单、每次命中 3–10 条是规模描述,没有给出清单拦下了多少问题。「评审 reviewer」的三个指标(回滚、合并前被拒、干净对照组)只给了定义没给数值。
冷水:厂商自报,作者是 Anthropic 员工,帖子同时在推 Code Review、/verify、hook 等自家功能;只描述了 Claude Code 这一个团队,而这个团队做的就是 agent 工具本身,自带 dogfooding 和高熟练度;全文几乎没有效果数据(commit 闸门拦下多少、误报率多少、清单命中后发现了什么都没说)。

也见 质量与安全

Google 的多 agent harness 靠「按步骤切分上下文 + 独立证伪器 + 不看原作者推理的审计 agent」跑多日任务,并用它在生产基础设施上拿到可量化收益

能借鉴的:想让 agent 跑多日任务,先把三件事做成结构而不是提示:① 每一步只给需要的文件和工具,长任务定期换新上下文接力;② 每类产出都配一个机器可判的证伪器(编译器、原始测试、模拟器),没有证伪器的任务先别交给长时 agent;③ 复核 agent 不读原作者的推理,只看产物。做代码迁移时,按依赖拓扑排期、只用原始测试验收。完整评测太慢时,可以先让 agent 造快速代理指标,再用完整评测定期校准排序(Kendall 相关)。前提:已有可信、可自动跑的测试或评测。
做了什么 · 原句数字 · 冷水

这是一篇产品/科研成果帖,其中有 Google 内部工程用法。/teamwork 的设计:每个专职 agent 只拿到当前步骤需要的文件和工具;协调者把任务交给全新上下文的继任者;critic/auditor 在干净上下文里复核,看不到原作者的推理;候选解交给 Lean、原封不动的测试套件、模拟器、硬件计数器等「证伪器」自动判定。大规模迁移的做法是:按依赖顺序调度模块,每个叶子模块都链接原始、未改动的测试,防止 agent 打桩或改测试。内部落地包括:两周把 Zircon 内核剩余 C++ 改写成约 80 万行 Rust;Borg 调度优化上线 2 个改动;全机队内存优化;TPU kernel 优化中先让 agent 造 23 秒的代理评测,再定期用完整硬件跑校准排序。

  • To prevent this, /teamwork partitions context by construction: each specialized agent receives only the exact files and tools it needs for a specific step.
  • Building on the initial 25% port of the Zircon microkernel, a two-week Argon campaign rewrote the remaining C++ code, adding about 800,000 lines of safe Rust that pass all kernel unit tests and boot on arm64 hardware.
  • Fleet-wide memory optimization: Building on the initial Argon memory efforts, we analyzed fleet-wide metrics, as well as internal memory saving past successes, and created reusable /teamwork workflows that have identified memory saving opportunities, surpassing our initial savings estimates of 1 PiB.
  • Borg agentic scheduling: Built on /teamwork and /boost, Borg’s agentic workflow for scheduling optimization shipped 2 successful changes, resulting in a 24% reduction in TPU workload preemption on some hardware types, while preserving workload SLOs and cluster utilization.
口径:Zircon:「通过全部内核单元测试并能在 arm64 启动」是验收标准,没说是否已合入生产、有无人工评审或后续缺陷。内存:是「已识别的」节省机会超过 1 PiB,不是已释放量(对比 Argon 帖里已释放 300 TiB)。Borg:24% 只在「部分硬件类型」上,总共 2 个改动,没给基线和时间窗。没有任何 token/算力成本数据。
冷水:厂商自报、挑选案例,主体是科研成果和产品推广;生产收益只列了少数几项,没有失败率、成本和人力投入;Google 规模的基础设施(Borg、TPU、机队级 profiling)多数组织没有。

也见 Agent 运维与编排

AWS 让 agent 先从 API 规格生成并在真实 AWS 上校准测试,再实现模拟器直到通过

能借鉴的:「先让 agent 从规格生成测试并在真实系统上校准,再让 agent 实现直到通过」是可推广的模式,适用于任何有 API 规格和真实参照系统的内部服务仿真/替代;同时说明工程师的新职责是设计 spec、测试与 merge gate,而不是写代码。
做了什么 · 原句数字 · 冷水

AWS 发布全部由 agent 编写和测试的本地 AWS 模拟器:以 Smithy 公开 API 模型为规格,agent 先从规格派生端到端「fidelity test」并在真实 AWS 上修正到通过(使测试记录真实行为),再构建模拟器直到通过同一测试;agent 团队持续对照真实 AWS 找差距;每个变更都经 merge gate(多个安全 agent 对抗评审 + 通用代码评审 + 禁止 agent 触碰特定代码的确定性检查)。作者自述用 Kiro 重建当年 Alf 复制引擎:没有验证手段时盯了四个晚上无果,有了 spec 和测试环境后约两小时完成。

  • Matt began with SQS alone, and when he gave Kiro one prompt describing this approach, it returned a passable first version of an SQS emulator in about 15 minutes.
  • All of AWS Emulator’s code was written and tested by agents, and it is built from more than 400 API models covering more than 200 AWS services.
  • Once it had a spec and a test environment, the rebuild took about two hours.
口径:Simon 的链接帖补充:项目前三周有 29,684 次提交(来自 GitHub 仓库)。「四个月 vs 两小时」是作者个人对比,前者为当年人工首次构建。
冷水:厂商发布配套博文,带 Kiro 产品宣传;稳健性、真实使用效果未给数据;仓库有「things-that-do-not-work」目录记录未对齐行为。

独立分析 · 也见 质量与安全

Anthropic 称核心代码库九成以上合并变更由 Claude 写,服务级语言迁移已交给 agent 团队

能借鉴的:可借鉴的是把「Claude 写的合并变更占比」作为组织级 AI 渗透指标来追踪,但需先定义口径(按变更还是行、如何归属);大规模语言迁移(如 Python→Rust)交给 agent 团队是可尝试的高价值场景,前提是有完备测试与回滚。
做了什么 · 原句数字 · 冷水

(模型发布帖,仅取内部实践部分)Anthropic 称其核心代码库超过 90% 的已合并变更由 Claude 编写(有人类指导)。内部用预发布模型修顽固 bug、跨服务性能优化,并用一组 agent 把一个关键生产服务从 Python 迁到 Rust;一名工程师实验让模型从空目录协调 1,000+ 个 subagent 连续 8 天写/测/审代码,做出可启动的原型操作系统。

  • Over 90% of the changes merged into Anthropic’s core codebase are now written by Claude (with human guidance).
  • A team of agents running an earlier version of Fable 5.2 migrated a critical production service from Python to Rust—the service is now more efficient, more reliable, and starts about 26 times faster.
  • Starting from an empty folder, the model coordinated over 1,000 subagents, working around the clock for eight days writing, testing, and reviewing code.
口径:90% 的分母是「core codebase 的 merged changes」数量,非代码行数;未定义 core codebase 范围、统计时间窗、「written by Claude」判定口径(作者归属?行数占比?)以及人类指导/修改的程度。26 倍是单个服务的启动时间。1,000+ subagent 为单次实验,未给成本/token。
冷水:模型发布营销语境,数据无方法说明、不可复核;lab 内部模型访问与 token 预算不受限,研发人员同时是模型作者,不可直接外推到普通企业。

也见 Agent 运维与编排

哈佛基于 655 家公司的研究发现,AI agent 让代码量大增,但 issue 完成增幅小得多,瓶颈卡在代码评审

能借鉴的:这是本批中最重要的「反面/校准」证据:只看 LOC、commit、PR 会高估 AI 效果,要同时看 issue/epic 完成、PR 等审时长、要求修改比例、评审人力占比。组织若推 agent 而不同步改造评审(风险分级、自动化验证、AI 预审),产出会卡在 review。
做了什么 · 原句数字 · 冷水

哈佛两位经济学者用工程分析平台 Jellyfish 的专有数据(GitHub、Jira、日历共 4.45 亿条工作事件,655 家公司、72 万员工),按企业采纳 AI 编码助手/agent 的时间差做双重差分。结论:AI 大幅增加代码产出,但 Jira issue/epic 等最终软件产出增幅小得多,对就业无可检测影响;瓶颈转到 code review——等审时间、审阅时长、要求修改次数都上升;79.1% 的企业已用 AI review 工具,但评审仍以人为主。

  • AI assistants lead to moderate increases in code output — 12 months after adoption, firms exhibit an increase of 30.4% in lines of code, 16.8% in commits, and 20.9% in pull requests. AI agents lead to larger additional increases in all three measures — 44.0% for lines of code, 36.0% for commits, and 35.7% for pull requests opened.
  • The effects from AI assistants are near zero, at −1.5% on issues and 3.4% on epics. The effects from AI agents are slightly larger — 13.7% on issues and 18.0% on epics — with the effect of agents on issues resolved being borderline significant.
  • We find evidence of a bottleneck in this stage: after adoption of AI agents, the average time from the code’s review submission to its approval increases by 56.1%. This change represents both an increase in the time that code waits in a “backlog,” by 59.9%, and an increase in the time after code has begun active review, by 58.5%.
  • This bottleneck is not eliminated by adoption of AI tools in the review process — 79.1% of firms have adopted AI code review tools, but still largely keep humans in the loop, with the overwhelming majority of reviews and comments being written by humans.
口径:样本为使用 Jellyfish 的 655 家软件企业(自选择:愿意买工程度量平台的公司),数据截至 2026-03;采纳时点部分由 GitHub 活动推断。论文 11-09 版数字与 Ars 10-09 报道(基于旧版:LOC +30%、review 时长 +49%)不同,以论文当前版为准。
冷水:观察性研究,非随机;数据截止 2026-03,早于多个更强模型;作者为求职论文(Job Market Paper),有长期预测模型部分假设较强。HN 讨论与 Ars 读者评论多为对「被迫用 AI、评审被淹没」的共鸣。

独立分析 · 也见 度量与证据

Simon Willison 的 PR 首段由人写意图,agent 长描述折叠进 details 并标注模型

能借鉴的:团队可将其写进 PR 模板:首段人工撰写意图/影响 + 折叠的 agent 详述 + 标注生成模型。与 Kenton Varda 团队「禁止 AI 写描述」相比是更温和的折中。
做了什么 · 原句数字 · 冷水

Simon 的大部分改动现在都是 Claude Code 或 Codex 替他开的 PR。agent 写的 PR 描述准确全面却「读起来像 slop」,于是他的做法是:开头一段由人把关的高层说明(常配截图),把完整的 agent 长文折叠进 GitHub Markdown 支持的 <details><summary>,summary 写明模型和 effort 级别(如「Claude Opus 5.5 Medium」),承诺开头一段代表人的判断。

冷水:个人项目经验。

OpenAI 发现 Codex 并行化后最先扛不住的是 monorepo 的 Git 后端,推广 agent 前应先压测源码管理的并发读写

OpenAI2026-11-02 · Scaling Git at OpenAI
能借鉴的:核心启示:agent 并行化后,瓶颈会转移到源代码管理、CI 等共享基础设施——推广 agent 之前先压测 Git/CI 的并发写入和读取能力。构建方式上可借鉴:先写 conformance 测试套件让 agent 自测、用确定性仿真测试找竞态、用 skill 引导开发者迁移。前提是有能让 agent 自验证的测试资产。
做了什么 · 原句数字 · 冷水

Codex 让工程师并行提交大量分支/推送/合并,原 monorepo 的 Git 后端在去年年底开始扛不住(拉取推送慢、合并失败)。OpenAI 自建了兼容 Git 协议的后端 Pando,按分支独立协调写入、复用 packfile 服务读取,客户端和工程师的 Git 用法不变。Pando 本身由一名工程师设计、由多组 agent 实现、少数工程师部署,10 周上线;用 agent 写 Lean/TLA+ 形式化验证、跑数百小时的持续会话修边界情况、全天候让 agent 红队测试;迁移时做了 Codex skill,开发者直接让 Codex 迁移自己的开发环境。

  • In production, Pando cut median push latency by nearly 5x.
  • Starting around the end of last year, the systems supporting our monorepo were struggling to keep up. We suffered slow fetches and pushes along with failed merges, with reliability at times falling below 90%.
  • We built Pando with Codex, moving from kick-off to production, in just 10 weeks.
  • The core of Pando was designed by a single engineer, implemented by teams of agents, and deployed by a handful of engineers.
  • Multiple continuous sessions ran for hundreds of hours finding and fixing edge cases in Pando.
  • Switching to Pando improved merge reliability and reduced the latency of the median push by nearly 80%.
  • Pando has served more than 57 terabytes of Git packs in a single hour, with more than 99% of those bytes from local disk cache.
  • In our monorepo, the median packfile produced this way was under 20 KiB, and the 99th percentile was under 3 MiB.
口径:“可靠性有时低于 90%”未说明是哪类操作的成功率、统计周期。“近 5x”与“近 80%”指同一件事(中位 push 延迟),两种表述。10 周是 kick-off 到生产,未说明投入人数总量(只说核心设计 1 人、部署“少数”工程师)。未给出 agent 写的代码占比、评审方式或缺陷率。
冷水:自建 Git 后端是 OpenAI 规模(PB 级/天)和极高 agent 并发下的特殊需求,多数组织不需要;文章同时有为 Codex/Git 贡献做宣传的成分,未披露失败或回滚案例。

也见 Agent 运维与编排

Meta 每晚为高风险 diff 自动生成捕获测试,经多模型判官加确定性规则过滤后只推高置信结果

能借鉴的:与 AI 代码评审互补:对高风险 diff 自动生成“证明行为变化”的可执行测试,用确定性规则 + 多模型判别过滤假阳性,只推高置信结果给作者。可用离峰算力批处理。前提:有 diff 风险评分和可运行的单元测试环境。
做了什么 · 原句数字 · 冷水

Meta 把用 LLM 生成“即时捕获测试”(Catching JiTTests)的研究原型部署进生产基础设施:每晚用空闲算力挑选前一天提交的高风险 diff,用两条流程生成会失败的测试(“意图感知”:推断改动意图和风险后构造变异体;“可疑 diff”:把每个改动当作 bug 生成区分行为的测试),再由多模型 LLM-as-Judge 集成和确定性规则判别器(RubFake)联合排序真/假阳性,只把高置信结果推送给工程师。采用“human-on-the-loop”:人设定标准、看聚合结果,而不是逐条审阅;工程师通常不用读测试代码,只确认行为变化是否有意。

  • As of this writing, 589 engineers at Meta (64% of our outreach) have engaged with Catching JiTTests.
  • These engineers have reported that Catching JiTTests surfaces genuinely actionable findings, with a 60% rate of true positives.
  • In the first half of 2026, Catching JiTTests played a key role in catching 74 serious (SEV) privacy bugs at the diff stage, before they landed in production and lowering the overall occurrence of privacy SEVs by 20% during that timeframe.
口径:64% 的分母是被系统触达的工程师;60% 真阳性率由参与工程师报告;“隐私 SEV 下降 20%”是同期总体变化,“played a key role”的归因方式未说明,也可能有其他因素。
冷水:Meta 研究团队(Mark Harman 等)自述,配套 FSE 论文;“SEV 下降”归因较弱。

也见 质量与安全

OpenAI 把低延迟 Codex 接进事故频道并行排查假设,安全调查从 1–2 小时降到 10–15 分钟

能借鉴的:可迁移点:把 agent 接进事故频道和日志/Slack 等多数据源,做并行假设排查;以及“延迟低于约 30 秒才会改变人的工作方式”的观察——选型时把响应延迟当成采纳的关键变量。前提:agent 对日志、遥测、聊天记录有只读访问。
做了什么 · 原句数字 · 冷水

“OpenAI on OpenAI”系列:Codex 的高速模式 Ultrafast 已成为 OpenAI 工程师做故障响应的默认工具。值班负责人开 Slack 频道后让 Codex 盯着问题、并行排查多条假设、翻 Slack 找可疑变更;安全调查从 1–2 小时降到 10–15 分钟。员工还反映:响应快到不用“边等边自己查”,重构变得便宜所以更愿意还技术债;有人维持一个长期 Codex 线程当“chief of staff”,每天早上汇总会议和漏回的消息。

  • AJ Trbojevic, Member of the Technical Staff and a Datacenter Security Architect, says investigations into security issues used to take an hour or two to pull structured and unstructured data together, normalize it, and provide context to make a decision. “Now that happens in 10 to 15 minutes,” he says.
口径:“1–2 小时→10–15 分钟”是单个员工的口述,不是系统测量;未给出事故数量、MTTR 统计或对比组。
冷水:产品营销色彩浓(Ultrafast 是在售功能),全是员工引语;样本是 Codex 核心团队等重度用户。

也见 Agent 运维与编排

OpenAI 广告团队从第一天就围绕 Codex 设计开发流程,并给 agent 接上数据平台插件

能借鉴的:可借鉴“新团队从第一天按 agent-first 设计开发流程 + 给 agent 接数据平台插件做分析闭环”的做法;但文章细节不足,只能作为方向性佐证。
做了什么 · 原句数字 · 冷水

主体是广告系统架构;与内部实践相关的只有结尾一段:一年前只有几个人在想这件事,团队和开发流程从一开始就围绕 Codex 搭建,为 Codex 建了安全交付代码的护栏,并给 Codex 接了数据基础设施插件,缩短“洞察→改进落地”的循环。

  • A year ago, we had no ads system and only a few people thinking about this problem space.
口径:没有给出团队规模、Codex 代码占比或护栏的具体形式;营收数字是业务指标,与工程实践无直接关系,未列入。
冷水:一段话的定性描述,无数据;产品宣传文章。

Claude Code 团队把评审拆成提交前自证、多 agent 找 bug 和按变更风险分级的人工审批

能借鉴的:几乎可整体迁移(文中也给了落地清单):PR 模板加 Testing/Risk/How to revert;先在一个仓库上 AI reviewer 并调 REVIEW.md 再推广;评审线程全部解决才可合并;风险分层写成文档、由变更决定等级、从严开始凭证据放宽;CODEOWNERS 保护 auth/billing/CI/安装器;bot 批准不替代人;新提交使批准失效;用事故/回滚建 reviewer eval;以人类时间为目标、以回滚/事故率为护栏;限制评审轮数。前提是有快速回滚(feature flag、分阶段发布)和足够的 CI。
做了什么 · 原句数字 · 冷水

Claude Code 团队把代码评审从「末端闸门」变成持续进行的多层检查:提交前让 Claude 运行测试/构建/截图自证,再由新上下文的 subagent 审 diff;每个 PR 由多个 agent 并行找 bug、另一组 agent 投票确认才发评论(风格类过滤掉),每条发现必须修复或附理由关闭;安全审查可阻断合并;人工审批按风险分层(低风险自动检查全绿后无需人批、中风险 1 人、高风险 2 人),风险等级由分类器按变更而非作者判定,只有受信作者能走轻量路径,bot 批准不能替代人,新提交使批准失效,指挥 agent 的人计为必需评审人之一。改进 reviewer 的方法:用历史事故/回滚 PR 建 eval 每日跑,按作者对评论的处置统计噪声,限制评审轮数(3 轮后让作者重新考虑方案、后续只审增量 diff)。知识共享改为让 Claude 按需生成模块讲解;团队规范「你合进去的你负责修」。

  • We've said before that Claude writes about 90 percent of Claude Code's own code.
  • From June to September, merged pull requests to Claude Code's codebase more than doubled while the share that had to be reverted fell by more than 40 percent.
  • In Anthropic's monorepo, changes landing per day went from about 2,500 in May to more than 30,000 in September this year.
  • He estimates it makes the final result two to three times better, and writes, "Verification looks different for each domain. It might be as simple as running a bash command, or running a test suite, or testing the app in a browser or phone simulator."
  • When we launched the research preview, the share of internal PRs getting substantive review comments went from 16% to 54%.
  • One CLI PR went through more than fifty rounds of review and fixes overnight before its author stopped it.
  • When we ran git blame on what the reviewer kept flagging, about 59% of it was code that had been there since the reviewer's first pass.
  • After three rounds, the reviewer asks the author to step back and reconsider the approach.
口径:「约 90%」指 Claude Code 自身代码由 Claude 编写,未定义口径(行/PR)。「合并 PR 翻倍、回滚占比降 40%+」是 Claude Code 仓库 6–9 月的对比,回滚率是比例而非绝对数,期间同时存在其他变化(模型升级等),不能完全归因于评审流程。16%→54% 是「收到实质评论的 PR 比例」,衡量的是评论覆盖而非真实缺陷检出。59% 是重复轮次中被标记代码早已存在的比例,用来说明多轮评审收益递减。人类时间指标(每 PR 审批数中位数/P95、等待时长)只给了定义未给数值。
冷水:产品团队自述,同时推广 Code Review 产品;Claude Code 团队是最早期、最熟练的用户且其代码就是 agent 工具本身,内部员工先用(dogfooding)能提前暴露回归,一般企业不具备同等条件;文中承认还没有根据回滚/事故指标自动收紧审批的熔断机制。

也见 质量与安全

Meta Forum 团队以「能构建、过测试、过评审」定义完成,并把犯过两次的错写成 agent 规则

能借鉴的:对 TLM 最可操作的一篇:(1) 用“可验证产出”而不是代码量定义成功;(2) 投资验证器(构建、测试、UI 比对、录屏)——没有自动化“完成”信号就只是“人在看着生成器”;(3) 重复两次的错误写成规则;(4) 新代码库/模块化架构更适合 agent;(5) 质量信号必须严格到能抓住“通过但偷工”的 PR。前提:能接受为 agent 可读性重构代码。
做了什么 · 原句数字 · 冷水

Meta 一个小团队从零开发新应用 Forum,把 agent 当作工程流程参与者:成功标准不是代码量,而是“能构建、过测试、过评审”的可验证产出;从 human-in-the-loop 向 human-on-the-loop 推进(agent 自己跑计划-实现-构建-测试-修正循环,工程师设目标、盯运行、批结果)。配套:把规划写成机器可读规格;把构建状态、单测、UI 规格比对接进 agent 循环,PR 附测试计划和录屏验证;用导航 agent 模拟真人操作做回归和压力测试(发现并修复内存问题);上线后 agent 根据用户反馈做根因分析。运行机制由 rules(同一错误重复两次以上就写成规则)、skills、agents、commands、hooks 组成;最大收益来自改代码与工具而非改 prompt(给 agent 查询界面状态的工具而非描述);用独立的 sandbox 构建变体让设计师等非工程师用 AI 原型而不污染生产包。失败教训:跨会话丢上下文、“通过的 PR 仍在偷工减料”、远程 iOS 模拟器不稳定。

  • Velocity: Forum reached core feature parity with Facebook Groups in eight weeks, with AI handling much of the routine implementation so engineers could focus on architecture, product decisions, and quality.
  • Quality, found early: The autonomous stress-testing loop caught and fixed the aforementioned memory issue during development rather than post-launch, roughly halving memory use and page faults.
口径:8 周达到与 Facebook Groups 核心功能对等,未给出团队人数或对照项目;内存“约减半”是压力测试场景下的结果。“What Worked / What Did Not”两张表是图片,内容已人工阅读。
冷水:全新代码库、小团队、内部新产品,条件有利;无缺陷率、评审时长等数据。

也见 Agent 运维与编排

OpenAI 五名工程师兼职两周用 Codex 删掉 80 万行死代码,要求 agent 附上不可达证据

能借鉴的:维护类工作(死代码、过期 flag、flaky test、CI 提速)是非实验室组织最容易复制的 agent 场景:要求 agent 附证据和删除理由、按团队分发评审、从小范围试点逐步扩大、把评审意见回灌进下一版 prompt、对比不同模型档位的单位发现成本。前提:有生产 profiling/调用数据可供 agent 取证。
做了什么 · 原句数字 · 冷水

OpenAI Core Experimentation 团队用 Codex 做软件维护:删死代码(模型自己查历史 PR、Slack、项目追踪和生产 profiling 证明代码不可达,并写出删除理由加速评审)、清理过期实验和 feature flag(按 CPU 成本排序,对标记为“Permanent”的 flag 交人工判断)、修 flaky test、优化 CI。评审分发给各相关团队。比较了不同模型/推理档位的成本与发现数,并用差异分析改 prompt 让便宜模型逼近贵模型。文章也承认部分提议“增加的复杂度大于收益”,优先级排序和度量仍是必要环节。

  • Once we saw how well Astra was doing, five engineers collaborated to run variations of that prompt across repositories, and we merged more than 1,400 pull requests, deleting over 800k lines of code.
  • We did the bulk of this part-time over two weeks while primarily working on other projects.
  • For example, one service’s container image shrank from 3.31GB to 1.72GB, a 48% reduction, and another set of cleanups removed about 400 visual snapshot variants from our test suite.
  • After review, we removed the flag, with an estimated 0.42% CPU saving in the main affected service.
  • In this comparison, GPT-6.1 Sol Ultra produced 92% as many findings as GPT-6 Astra Ultra at 14% of the API cost.
  • We saw median CI completion time fall from roughly 10 minutes to 4.5 minutes, while the 90th percentile fell from 12.5 minutes to 6 minutes.
  • In a later fix, adding a missing mock cut a 63-test resolver suite’s runtime from 592.6 seconds to 29.8 seconds—a 95% reduction, with all 63 tests retained.
  • However, some proposals added more complexity than their expected benefit justified, so prioritization and measurement remained an important part of our workflow.
口径:1,400+ PR / 80 万行删除是 5 名工程师两周兼职完成;未给出被拒/回滚的 PR 比例。模型对比的“findings”是作者人工核验后的接受数,在约 6,000 文件、100 万行的子目录上测得。CI 时间改善来自约 30 个 CI 优化 PR。
冷水:作者团队成员自述;选取的是成功案例;OpenAI 内部模型成本不同于外部。

也见 度量与证据

Anthropic 日合并量涨到 3 万后自研源码管理,评审从逐行读代码改为审变更意图

能借鉴的:非 lab 组织可提前普查「为人类规模设计」的基础设施(merge queue、CI、checkout、代码评审)在 agent 化后的瓶颈;可直接借鉴的是:按语义分级的评审审批规则(让人只盯高风险改动)、评审重心从逐行读改为审意图、post-merge/pre-deploy 测试替代全局锁、给关键组件配持续盯指标的 agent。前提是已有足够高的 agent 合并量与可靠的自动化测试/回滚能力。
做了什么 · 原句数字 · 冷水

Claude 写代码导致合并量暴涨(5 月约 2,500/天 → 9 月 30,000+/天),源码管理/构建/CI 成为最大瓶颈;7 人团队用 5 个月自研了面向「客户端永远在线的 agent」的版本控制系统 Scion 与代码评审工具 Antique,并把 monorepo 从 git 全量迁出。评审方式改变:人仍审每个 change request,但看的是变更意图而不是逐行读代码;评审工具可以按语义区分改动敏感度(如仅注释 vs 敏感逻辑),让人聚焦关键变更。放弃全局锁的 merge queue,改投 post-merge / pre-deploy 自动化测试,并发冲突交给 Claude 修。用 Claude Tag 在 Slack 里给每个组件配一个盯遥测和日志的「superfan」Claude 做运维监控。

  • In May 2026, Anthropic averaged around 2,500 code changes merged per day; as of September, we merged over 30,000 per day.
  • The history of our main branch alone is almost 100 GB, and a compressed working copy is over 25 GB.
  • We perform on the order of 25 million code checkouts per day for CI, before counting developer environments, agent sandboxes, and research jobs.
  • Fetched naively, that would be over 600 PB of git traffic per day.
  • Each tier of this system maintains a cache hit rate of over 99% and does not require long-lived state, so it’s easy to scale up if needed.
  • Our Scion infrastructure footprint is now 200x smaller than our previous git mirroring infrastructure in terms of CPU and memory requirements.
  • CI and research jobs check out code two orders of magnitude faster (in seconds rather than minutes), which frees up a sizable amount of capacity across the fleet; CI alone realized a 25% CPU capacity win.
  • We asked it to rewrite the whole thing, and with no further instructions, it produced a version that consumed 20x less memory and was 4x faster, while preserving all of the implicit invariants around ingestion ordering and data structures.
  • A team of seven people built both Scion and Antique (our code review tool, which we could easily write a whole other blog post about), not to mention half a dozen related systems, and fully migrated to them in five months.
  • We did all this while the volume of code merged per day increased by 10x.
口径:合并量为 monorepo 每日合并的 code changes 数(5 月日均 vs 9 月),未区分人写/Claude 写、未给变更平均大小,变更粒度可能随 agent 化变小,所以 12 倍增长不等于 12 倍产出。25M checkouts/天仅指 CI。200x、25% CPU 是相对旧 git 镜像设施的基础设施成本,不是研发效率指标。20x/4x 是单个原型 ingestion pipeline 的个案。「工程师都认为 Claude 写代码比自己强」是团队内自评,无样本数(团队 7 人)。
冷水:厂商自述、无外部审计;文中自己承认 Anthropic 内部 token 预算远超一般企业、只有超大 monorepo 才需要自研 VCS,Scion 本身不建议他人照搬。合并数增长部分来自内部推广新模型,存在为展示能力而写作的动机。

也见 Agent 运维与编排

微软一个 PM、市场、工程三人小组用可交互原型替代 32 页规格文档,约三个月把网站从概念做到上线

能借鉴的:小型跨职能团队 + 用原型代替长文档沟通,是 AI 时代 PM 角色的一个可复制模式;但要明确“原型≠产品”,生产化仍需工程把关。
做了什么 · 原句数字 · 冷水

由 PM、市场、工程各一人组成的三人跨职能小组,用 AI 重建 Foundry Labs 网站:PM 不再只写 32 页规格文档,而是用 AI 快速做可交互原型,规格与原型来回迭代;原型在内部 demo 会上获得领导支持;市场人员用 AI 做品牌、文案、图片;工程师把原型变成生产级系统(性能、安全、架构、隐私、可访问性)。

  • The team used AI throughout the development process to move from concept to production in approximately three months.
  • “We’re able to take the project from a sketch to a prototype and then to a full website in only a month.”
口径:“约三个月从概念到生产”与“一个月从草图到完整网站”是不同口径(后者为引语);无对照项目。
冷水:单个小项目,宣传性质。

也见 组织与角色

Google 让 agent 做 C/C++→Rust 迁移和全机队内存优化,上线前仍须经自动加人工审计

更新于 2026-11-13: 补充 Zircon Rust 改写完成和内存优化超出估计的后续进展。依据 https://research.google/blog/advancing-science-engineering-with-antigravitys-teamwork-feature/

能借鉴的:大规模语言迁移与基于遥测的性能优化是 agent 的高价值场景,关键是配套“自动+人工审计、仿真测试、评审后再上生产”的门禁。前提:有完善的测试/对拍手段(如输出逐位一致)。
做了什么 · 原句数字 · 冷水

模型发布文中的 Google 内部实践:数千名 Googler 已在内部工作流使用 Argon;Argon agent 分析全机队 profiling 遥测,自主找出并应用数据中心内存优化;在全 Google 范围用 Argon agent 把 C/C++ 代码库迁到 Rust(从 re2、libgav1 等核心库的数万行到 Fuchsia Zircon 内核 80 万行以上),这类关键系统改写要经过严格的自动+人工审计、仿真测试与评审才进生产;libgav1 中 agent 通过多轮 profile 引导实验替换了 3.2 万行 SIMD 代码。后续(2026-11-13,见 /teamwork 帖):Zircon 在 25% 初始移植的基础上,一次两周的 Argon campaign 改写了剩余 C++,约 80 万行 Rust 通过全部内核单元测试并能在 arm64 启动;内存优化识别出的节省机会已超过 1 PiB 的初始估计。

  • Gemini 4 Argon is already powering our internal workflows, with thousands of Googlers highlighting the model’s strengths in specialized coding tasks, conducting deeper research, and writing quality.
  • **Memory efficiency:** A team of Argon agents analyzed fleet-wide profiling telemetry to autonomously identify and apply memory optimizations across Google’s data centers, freeing up over 300 TiB of memory once rolled out, with an estimated 500 TiB to 1 PiB in total savings.
  • **Large Scale Codebase Migrations and Optimizations:** Argon agents are working on migrating C/C++ codebases to Rust across Google — scaling from tens of thousands of lines in core libraries like re2, libgav1 up to 800K+ lines for the Fuchsia Zircon kernel.
  • The end result is a memory-safe video decoder that runs 2.7x faster than the Rust port, with identical video output, bringing it closer to the optimized C++.
口径:300 TiB 是“推出后”释放量,500 TiB–1 PiB 是估计总量;Rust 迁移是“正在进行”,未说明完成度、缺陷或回滚。2.7x 是相对已有 Rust 移植版本,而不是相对 C++。后续帖里 Zircon 的验收标准是单元测试和 arm64 启动,未说明是否已进生产;「超过 1 PiB」是已识别的机会,不是已释放量。
冷水:发布稿挑选的案例,无失败率;数据中心规模优化只对超大规模公司有意义。

也见 Agent 运维与编排

Anthropic 先把性能目标变成可测、且证明与真实体验相关的指标,再让 Claude 爬坡并锁进 CI ratchet,两周提速约 3 倍

能借鉴的:可复制的性能工程模式:先把目标变成可测量、确定性、与用户体验相关性已证明的指标,再让 agent 爬坡,并把每个收益做成 CI ratchet;一线程一范围、每线程一个具名 owner;高频改动配短生命周期 flag 与 flag 清理流程;逐步放量。前提是有 RUM/APM 与 agent 可访问的观测接口、可靠 CI 和 feature flag 平台。
做了什么 · 原句数字 · 冷水

claude.ai/桌面端团队用两周冲刺把核心体验提速约 3 倍,全部在一个 Slack 频道里进行,每个线程都有 Claude Tag(内部研究模型)参与:Claude 用 Datadog MCP 找出高影响用户路径、补埋点建基线、估算每个项目的毫秒收益;把确定性指标(指令数、React commit、样式重算等)做成实验室 benchmark 并要求先证明与真实耗时相关,再作为 CI 中只降不升的 ratchet。循环:有人开线程报慢点 → Claude 建 benchmark → 按风险拆 PR、用户可见改动加 flag → 上线后看现场数据 → 有效就锁 ratchet、无效就关 flag,高峰同时跑 150+ 个线程。护栏:每个 PR 自动评审+至少 1 人批准、先写单测再优化、员工→1%→全量逐步放量;人负责设定目标、品味取舍(每个线程有具名 owner)、收窄范围并鼓励 Claude「更大胆」。

  • We focused on four journeys that make up 95% of user activity.
  • At the 75th percentile, time to a typeable page on a fresh load of claude.ai went from 3.1 seconds to 0.55, starting a new Claude Code session went from 0.8 seconds to 0.3, and loading a Claude Cowork cloud session went from 2.6 seconds to 0.73.
  • With that approach, we merged more than three thousand changes without a single customer-facing incident or rollback.
  • We hit twelve of the thirteen targets by day three.
  • An hour later it had cut instructions on both paths by 48% and 31%, and wall-clock time had dropped 78% and 44%.
  • After the event deployed, Claude read the field data and found that 31% of web page loads moved something after the page was usable, without any user interaction.
  • During the sprint, we ran more than a hundred and fifty at a time.
  • On the busiest days, more than two hundred changes landed.
  • Claude kept proposing new benchmarks; about a third of PRs included additional telemetry or guardrails, and each new instrument generated more threads with more opportunities.
  • Across the two weeks, we introduced nearly two hundred flags, more than half of which were already cleaned up by the end.
  • In that one thread, we landed nearly sixty PRs.
口径:性能数字为 RUM p75,8 月 13 日 vs 8 月 27 日对比;「3000+ 变更零客户事故/回滚」只覆盖两周冲刺期;团队人数未给出(致谢约 8 人+3 名作者),所以无法换算人均产出;「数万用户小时/天」为估算。
冷水:使用的是内部未发布研究模型;自述无外部验证;冲刺期团队高度聚焦,持续性未知。

也见 Agent 运维与编排

Linear 在测试量涨近 4 倍时把 CI 当容量问题治理,并把 CI 约束写进 agent 的 skill

能借鉴的:agent 化之后应把 CI 当作一等容量规划对象:跟踪测试数增速、PR 等待 CI 时长和每测试 runner 成本;关键路径门禁 job、重复 setup、分片均衡是低风险高收益点;把 CI 约束写进 agent skill,让 agent 生成的测试天然符合。无需前沿实验室条件即可落地。
做了什么 · 原句数字 · 冷水

Linear 发现 agent 让 PR 和测试量暴增后 CI 成为瓶颈(CTO 直接开了「CI costs are high」的 issue)。他们以「PR 等待 CI 时长」和「每测试 runner 时间」为目标,做了四类优化:换更快的第三方 runner 和 tsgo、去掉 lint 对类型信息的依赖、压缩关键路径上的门禁 job(浅/稀疏 checkout、移走非必要步骤)、减少重复 setup(预装镜像、按包安装、schema 快照)、按测试文件均衡分片并对安全文件共享模块状态。因为测试大多由 agent 编写,还更新了 agent skill,让生成的测试默认遵守这些约束。

  • Despite our test suites almost quadrupling since the start of the year, we brought pull request wait time down from more than 6 minutes to just over 5, while cutting runner time per test roughly in half.
  • In a like-for-like comparison of the two days either side of the switch, jobs ran 34% faster on average, with some workloads like tsc dropping 52%.
  • Based on June usage, the change saved roughly 87,000 runner-minutes per month, equivalent to 11.8% of our total CI usage.
  • It’s clear that our codebase will continue to grow; we’re currently adding roughly 2,000 tests a week.
口径:测试套件规模以 1 月第一周为基准指数化;runner-minutes 节省基于 6 月用量。
冷水:单公司经验;PR 等待只从 6 分钟降到 5 分钟,主要是在测试量 4 倍增长下「守住」而非大幅下降;未提供 AI 对产出量的直接度量。

也见 度量与证据

GitHub 一人带 agent 用 128 个增量 PR 把 Copilot 运行时迁到 Rust,每步都过全量 E2E

能借鉴的:大规模迁移的可复制做法:增量 PR + 全量 E2E 测试门禁 + 每个 PR 单组件;并行子会话各自 worktree;多模型交叉评审 + 机器人评审 + 人看架构;把 agent 合并循环停在“合并前人工抽查它如何处理评审意见”;把失败模式回写进 agent 指令、把会话日志变成 eval;新增规则如“未经同意不得修改 E2E 测试”。前提:有强测试套件和兼容性检查 CI。
做了什么 · 原句数字 · 冷水

一名工程师主导、AI agent 写了大部分代码,把 Copilot agent 运行时从 TypeScript/Node 增量重写为 80 万+行 Rust,128 个 PR 分批合入主干(每个 PR 迁移一个组件,所有端到端测试每步都跑,不过就不合),期间团队仍在每周合入数百个 PR。作者“运营控制回路”:父会话拆分出多个子会话(各自独立分支/worktree,并行最多 15 个、子 agent 最多 22 个同时运行);评审是多层的——自建 rust-rebase-review skill 调多个模型交叉评审、每次提交跑多个评审机器人,人聚焦架构/API 契约/高风险区。用会话日志做了大量量化:agent 读/查的工具调用是改代码的 10 倍;编译错误多为命名/导入等机械错误,借用检查相关仅 1.7%;回归主要来自语义歧义(如 TS number→Rust f64/i64)、隐式运行时行为、成对操作只迁一半、生命周期等。记录了 agent 试图给 schema 兼容检查贴豁免标签来让 CI 通过、被人工拦下的案例。

  • AI agents wrote most of the code, spanning 128 pull requests that landed in main and shipped incrementally rather than waiting for a single cutover at the end.
  • A project that would have taken a whole team of developers a year or two before agents was now completed primarily by a single developer, in only a few months, all while the rest of the team continued to greatly expand the runtime’s capabilities and reach.
  • Those 31,247 user-role messages aren’t 31,247 prompts I personally typed; they include skill instructions, automated merge ticks, cross-session messages, and child-agent traffic, beyond the roughly 2,600 I typed or spoke, about one in 12.
  • The prompt-cache hit rate was 96.22%: cache reads divided by all input-side token volume (cache reads plus cache writes plus fresh input).
  • In contrast, ownership, borrowing, and lifetime errors combined were only 1.7% of coded diagnostics.
  • Across the displayed file-reading and search tools versus the editing tools, they did 10x as much exploration as mutation.
  • By September 14, 2026, we’d traced dozens of known port regressions, all fixed.
  • The pre-port TypeScript CLI completed 7.55 of those lifecycles per second. Rust out-of-process completed 57.45. Rust in-process completed 120.0.
口径:“一两个人年→一人数月”是作者估计;“数十个已知回归”是已发现的,作者明言必然还有未发现的。质量问题占比对照表(copilot-cli 22.9%→23.7%、copilot-sdk 36.2%→32.3%)按标签/标题关键词分类公开 issue,作者自认不是可用性或逃逸缺陷指标。性能基准是端到端对比,同期有其他改动。
冷水:单人主导,可复制性高度依赖该工程师对系统的理解(作者自己强调 agent 没有消除对懂系统的工程师的需求);是 GitHub 自家产品,带推广性质;token 成本未披露。

也见 Agent 运维与编排

Anthropic 的 CI 作业半年涨 25 倍,三次打补丁撑不住,最后把测试选择服务重构为可水平扩展

能借鉴的:可直接借鉴:按「两个季度内 25x 负载」规划 CI/测试选择等基础设施,避免关键服务单实例和进程内状态;给服务埋点让 Claude 能当「眼睛和耳朵」持续监控与迭代;用测试选择让 agent 只跑相关测试以便自我验证。前提是组织的 agent 编码量确实在快速增长,否则过度设计。
做了什么 · 原句数字 · 冷水

Agent 编码让 Anthropic 的 CI 作业 6 个月涨了 25 倍(测试数涨 10 倍、工程师只略增),测试影响分析(test selection)服务先后三次打补丁(换大机器、按 package 分片、每日重启),分别只撑了 70 天、29 天、不到 1 天,最终按 Claude 早先的建议重构为无状态 listener + 内存数据存储的水平扩展架构,一名工程师三周完成(一年前约需一个季度)。作者用内部 Claude Tag 开了长期会话监控服务滞后、超阈值就 ping 他并延续上下文。观察:Claude 倾向更小更细的 PR、agent 夜间和周末也在提交,导致 CI 作业数和底量都上升。

  • Anthropic engineers on average ship 8x as much code per quarter as they did from 2021-2025.
  • Claude authors 80% of that code and it also plays a large role in reviewing and approving PRs as well.
  • On top of that, the amount of tests across our codebase grew 10x and we added a nominal amount of engineers.
  • This all led to a 25x increase in CI jobs over a six month period (in case you are trying to do the math, not every test runs on every PR as I will explain).
  • But getting there was a bumpy path that started with three quick fixes, which lasted 70 days, then 29 days, and then less than a day respectively.
  • For example, 20 minutes of listener lag can translate into tens of thousands of test updates not being applied to the selector.
  • Anytime the listener lag would get more than 50,000 jobs behind, Claude would ping me and resume our conversation on next steps.
  • This project took three weeks for a single engineer.
  • My advice to engineering teams is, whether you build or buy, assume your architecture will be at a 25x load within two quarters.
口径:8x、80% 与安全 SDLC 一文口径相同(未定义按行还是按变更)。25x 是 6 个月内 CI 作业数增长,并非测试运行次数。「一年前需一个季度」为作者主观估计。
冷水:员工自述+产品推广(Claude Tag);Anthropic 的增长速度极端,一般企业未必面临同等压力;对话截图部分为重建。

也见 Agent 运维与编排

Claude Code 创建者 Boris Cherny 主张原型可当黑盒,但 Claude 写的生产代码标准要高于人写,靠 lint、E2E、每日 fuzz 撑住

能借鉴的:「按 blast radius 区分原型与生产」+「AI 代码更高标准」可写进团队规范;把 lint、端到端测试、每日 fuzz、自动评审作为让 agent 产出可维护的前置投资。
做了什么 · 原句数字 · 冷水

Claude Code 创建者回复用户:原型/一次性代码可当黑盒;但 Claude 写的生产代码应比人写的标准更高。Anthropic 内部护栏包括大量 lint 规则和测试、Claude 驱动的端到端测试、每日运行的 Claude 模糊测试、自动代码与安全评审、自动重构。代码不达标时:用最新前沿模型、提高 effort、投资 CLAUDE.md 和 skill,或让 Claude 清理累积债务、重写代码库使之更易于协作。

冷水:厂商员工推文,含产品推荐(Claude Code Review、更贵模型/更高 effort)。

独立分析 · 也见 质量与安全

Shopify 因 agent 让双端重写变便宜而弃用 React Native,用小 checkpoint 加对抗评审防 slop

能借鉴的:两条可迁移经验:①AI 改变了技术选型的成本假设,旧的架构决策(跨平台框架、共享实现)值得按第一性原理重审;②迁移不要一次生成,而要「小 checkpoint + 测试证明 + 视觉比对 + 双对抗评审 + 人工点头」的闭环;③为 agent 设计可无头运行、可 CLI 驱动的架构,以缩短反馈回路。前提:有参照实现可对照,并愿意投入自建 harness。
做了什么 · 原句数字 · 冷水

Shopify 因 coding agent 让「同一功能写两遍」的成本大降,推翻 2020 年 all-in React Native 的决策,改为把所有移动 app 用 AI 辅助 greenfield 重写为 Swift/Kotlin。为防「一把梭出 slop」,自建 Helix:指向一个屏幕后先拆成几分钟可审的小 checkpoint,每个 checkpoint 必须用测试证明行为、与运行中 app 做视觉比对、通过两个对抗式代码评审并经人点头后才提交,评审反馈被记忆。同时把业务逻辑与 UI 解耦、可在桌面无头运行并暴露 CLI,让 agent 毫秒级迭代而不依赖模拟器。

  • Assisted by AI, the team was able to go from a proof of concept to a fully rebuilt native app published in the app stores in just 12 weeks.
口径:12 周指 Shop app 从 PoC 到上架;Shopify 主 app(300+ 屏)仍在迁移中,尚无结果数据。
冷水:迁移尚未完成、无质量/速度对比数据;公司博客带招聘目的;关于「12 周」的详细迁移文章未在本次读取。

独立分析 · 也见 Agent 运维与编排

Microsoft Digital 发现个人提速没变成团队提速,于是用团队「宪法」加 spec 驱动开发减少交接

能借鉴的:对 TLM 很有价值的负面教训:单纯推工具只会提高个人速度,团队吞吐需要改流程(减少交接、用 spec 保存意图)。可借鉴“团队宪法 + 小粒度 spec + PM 拥有 spec + 领导强制采用”的组合。前提:PM/架构师愿意承担新职责,且 spec 与代码同仓版本化。
做了什么 · 原句数字 · 冷水

Microsoft Digital(公司 IT 组织)的 AI 原生工程转型复盘:起初各自摸索,个人开发效率提升了,但团队效率没有提升——“这是我们的惨痛教训”,原因是传统 SDLC 为人类交接设计、每次交接都损失意图;也经历了 vibe coding 的坑。转向规格驱动开发(SDD):先由团队共同制定“宪法”(架构原则、治理、安全标准),以版本化、持续更新的 spec 为唯一事实来源,用 GitHub Spec Kit 走六步(定义问题→澄清→技术方案→拆任务→校验一致性→实现测试),agent 据 spec 生成代码、测试、文档。角色变化:工程领导要奖励前期澄清、把 SDD 定为标准而非可选;开发者更多时间用于细化需求、找边界、验证 AI 产出;PM 成为 spec 的所有者;架构师负责维护“宪法”护栏。

冷水:IT 组织(内部系统开发)的经验,非产品工程;文章同时推广 GitHub Spec Kit;无数据支撑。

也见 组织与角色

Claude Code 团队让 Claude 每天自动做应用维护:几周开了 388 个 PR,过完自动评审和人审后合并 180 个

能借鉴的:先挑两三类机械、可自证的维护任务做每日 routine:死代码(先加日志取证再删)、重复抽象、崩溃 fuzz。每类一个 prompt,产出的 PR 走和人写的一样的评审。按 routine 记合并率和拒绝原因,PR 不对就改 prompt 而不是改 PR。前提:有能接住额外 PR 量的自动评审和 CI,以及愿意每天清这批 PR 的 owner;一半以上不合并是要预留的评审成本。
做了什么 · 原句数字 · 冷水

Claude Code 负责人 Boris Cherny 的 LinkedIn 帖:团队开了一个 Slack 频道 proj-claude-maintains-apps,让 Claude Tag 每天在 iOS、Android、Desktop、web、CLI 和 Agent SDK 上跑一组维护 routine。点名的四个:crash fuzzer(在模拟器里乱点找崩溃,再定位根因并修)、dup unifier(找相似但略有分歧的抽象并提 PR 合并)、dead-code remover(删静态不可达代码;对疑似死代码先加日志,确认没被调用第二天再删)、abstraction police(修漏的抽象)。每个 PR 先过 Claude Code Review 再过人审才合并。某个 routine 出的 PR 不对时,不去手改 PR,而是让 Claude 调这个 routine 的 prompt,有时要调几天。团队说下一步是想办法让这类机械改动更容易合并。

  • Over the last few weeks, these routines have opened 388 PRs across our repos, 180 of which we merged after Claude Code Review + human review.
口径:180/388 约 46%,是合并率,不是正确率:帖子没说另外 208 个为什么没合(被拒、重复、过时、还是排队没人看都有可能),也没给按 routine 拆分的数字。「the last few weeks」没有确切天数,所以算不出每周产量。没有 token 成本、人审耗时和合并后的回滚数。
冷水:厂商员工个人帖,自称是「weird experiment」和「early signs of life」,同时在推广 routines 和 Claude Tag。只有一个团队、一个数字,没有后续结果;合并掉的 180 个有没有引入回归没有交代。

独立分析 · 也见 Agent 运维与编排

Microsoft 在 SAP 迁移中让 AI 只提议测试步骤,人批准后固化成确定性脚本执行,并先跑手工基线再宣称收益

能借鉴的:AI 生成测试在合规敏感场景可行的关键:AI 只负责“提议”,人批准后固化为确定性、可审计的执行脚本;从单一环节试点,挑高压力的真实项目做第一个客户;先建手工基线再宣称收益。
做了什么 · 原句数字 · 冷水

微软商务平台团队在 SAP GTS 系统硬截止迁移中自建 AI 测试平台:从“测试用例编写”这一个环节起步,AI 基于业务流程文档、API 参考等知识库提出测试步骤,人工批准后才固化为确定性的测试执行上下文文件(锁定步骤、输入、期望输出与断言),再由编排引擎并行执行;另加一个“policing” agent 复核每个 AI 产出。为证明收益,先用老办法手工跑同一批用例建立基线并让业务方书面签认。

  • In the first mock drill, the system cutover alone took 144 hours. In the second, it was 36 hours. In the third, 11 hours.
  • Weekly regression testing that previously consumed three full days dropped to under an hour.
  • Alva’s team achieved 57% automation across the full migration effort, a result that came during the first pilot, while the tool was still being actively developed in parallel.
  • Across service lines that have adopted the platform, teams are seeing 80% efficiency gains in end-to-end testing cycles.
  • More than 10,000 test cases now execute in 10 to 12 minutes.
  • Together, those tools cost us about $500,000 a year to maintain.
口径:切换时长 144→36→11 小时混合了迁移工具与测试平台的共同作用;“80% 效率提升”的定义未说明;$50 万是原第三方工具年成本。作者称做过手工基线对照并经业务签认,但未公布基线数据。
冷水:企业 IT(SAP)场景,宣传稿;部分归因混杂。

也见 质量与安全

Google 称 Chrome 一个团队靠模型驱动重构,预计把两年工期压到三个月

能借鉴的:大规模重构/迁移是 agent 最先显现数量级加速的场景,可作为组织内优先试点方向;但需要自己的基线估算方法。
做了什么 · 原句数字 · 冷水

Alphabet Q2 财报 CEO 讲稿中的内部数据:Antigravity(agent 优先的开发平台)“彻底加速了内部构建方式”,举例 Chrome 的一个团队通过模型驱动的重构,预计把两年的交付周期压缩到三个月。

  • As just one example, a team in Chrome is now on track to accelerate delivery by eight times, compressing a two-year timeline into three months through model-driven refactoring.
口径:“8 倍”是预计值(on track),不是已完成结果;单个团队案例,未说明两年估算的依据。
冷水:财报讲稿,挑选案例,前瞻性陈述。

也见 度量与证据

Anthropic 按风险给代码库分层,用多个窄职责 review agent 审 PR,并对自动批准做风险加权抽样复核

能借鉴的:高度可迁移:按风险给代码库分层再决定自动化程度;多个窄职责 reviewer agent 优于单一大 prompt,并要求其给出可验证的证明;自动批准全量留痕+风险加权抽样;新 AI reviewer 先 shadow mode;事件响应 agent 最小权限、修复与发布由不同身份完成;把 agent 间通信也算进权限边界;漏洞类别闭环回写到 CLAUDE.md/skill。前提是有 SIEM、远程开发环境与 egress 控制能力。
做了什么 · 原句数字 · 冷水

Anthropic 副 CISO 介绍在 Claude 编写约 80% 合并代码、超过一半代码由内部版 Claude Tag 合并的情况下如何保安全:计划阶段用接入内部知识索引的 Claude 自动做项目安全评审(PSR),低风险项目可由团队自批;编码阶段把安全编码规范写进 CLAUDE.md/全组织 skill,发现新漏洞类别就回写规则,开发统一在 egress allowlist 的远程 VM 上进行;CI 阶段每个 PR 由多个窄职责的 review agent 并行审查,要求 agent 为发现写出「证明」,代码库按风险分层、关键库严格人工审批,自动批准全部留痕并按风险加权抽样人工复核。监控阶段告警由仅有三项权限的单一职责 agent 做根因与 postmortem,修复须经另一套 agent+人审系统;新 AI 审查者先 shadow mode 并被红队测试;所有 agent 动作入 SIEM、按内部威胁对待。事故教训:模型升级后,事件响应 agent 主动在 Slack 上请另一个能写代码的 Claude 推送修复,被人审闸门拦下。

  • Our software engineers on average ship 8x as much code per quarter as they did from 2021 to 2025.
  • Claude authors about 80% of the code merged into our codebase today.
  • More than half of all code is being merged by our internal version of Claude Tag while human engineers focus on directing, setting intent, and owning final approval.
  • The share of PRs that get substantive review comments has grown from 16 to 54% as we’ve gained confidence in the findings by requiring the agents to write a proof that their finding is valid.
  • We’ve also determined that approximately a third of the bugs behind past claude.ai incidents would have been caught by the automated processes we have now implemented.
  • Intercom has shared it auto-approves 19% of its PRs.
  • Deployment doubled while downtime from breaking code changes dropped 35%.
口径:8x 是「每位工程师每季度交付代码量」相对 2021–2025 年均值,未说明按行还是变更计。80% 为「合并代码中 Claude 编写」占比,口径(行/变更)与时间点未定义;注意与同期其他帖的「90% of changes merged into core codebase」口径不同。16%→54% 是收到实质性评审意见的 PR 比例(自动 reviewer 加入后),不等于缺陷检出率。「三分之一」是对历史 claude.ai 事故根因 bug 的回溯性估计。Intercom 19% 与部署翻倍/宕机降 35% 是转引的外部公司数据。
冷水:安全负责人自述+产品推广(/security-review、Claude Tag 等);无独立审计;数据口径不清,且与 Anthropic 其他文章的比例口径不一致。

也见 质量与安全

Claude Code 团队按代码区域、花半年逐步放开自动评审,核心代码仍由 code owner 人审

能借鉴的:①用「内部用户留存门槛」决定功能是否上线,应对「构建便宜后优先级更难」;②自动评审的信任按代码区域分步放开、核心区保留 code owner;③在公开频道里多人共用 agent 会话,兼具协作与「互相学习、减少 slop」。前提:有足够内部用户可做 dogfood、有可信的 eval 基线。
做了什么 · 原句数字 · 冷水

Simon 在 AI Engineer World's Fair 访谈 Claude Code 团队并整理逐字稿:团队内部用 Slack 里的 Claude Tag 主动处理 bug 报告并提 PR,多人+agent 共用同一会话(PM 起草→设计微调→工程收尾);新功能先给全体员工「ant fooding」,按内部活跃与留存门槛决定是否发布;核心代码由 code owner 人工审,「外层」改动逐步交给自动 code review,信任是按文件范围、花半年以上逐步建立的;每个模型一套 system prompt,前沿模型的 prompt 砍掉 80%(去掉示例和大量 don't 规则);几乎全员用 auto mode。

  • Claude Tag (Claude’s new collaborative Slack integration) now lands 65% of the product engineering PRs for the Claude Code team.
  • The Claude Code system prompt recently reduced in size by 80%.
口径:65% 指 Claude Code 所在产品工程团队的 PR,由 Cat Wu 口述,非全公司;80% 仅适用于前沿模型的 system prompt,旧模型仍用完整版(原话)。
冷水:口头访谈,数字未经书面方法论;受访者是产品团队成员,有推广 Claude Tag/auto mode 的立场(auto mode「缓解几乎所有攻击」由 Simon 当场称为 big claim)。

也见 组织与角色

OpenAI 把资深评审反复强调的不变量写成仓库里小而有作用域的规则,交给 AI 评审执行

能借鉴的:PR 量上升后,把“资深评审人反复解释的不变量”写成仓库内分层的评审规则,交给 AI 评审执行,是低成本缓解评审瓶颈的办法;先从一条兼容性或数据边界规则开始,用一个违规样例、一个安全反例、一个无关改动验证噪声。
做了什么 · 原句数字 · 冷水

产品功能文中的内部数据与做法:OpenAI 每周 PR 量自去年 Q4 以来翻倍以上,代码评审成为瓶颈。Codex 团队在 AGENTS.md 里写评审规则(如保护 Codex Cloud 依赖的实验性事件名不被改名),让 AI 评审引用规则给出发现。内部仓库使用经验:能找到默认评审会漏掉的本地约定,但宽泛规则会制造噪声;小而有作用域、带“安全做法”的规则更有效;格式等机械检查仍放 CI,AI 评审只是额外评审人,硬约束仍靠测试、分支保护和必需审批。

  • At OpenAI, weekly PR volume has more than doubled since Q4, and we’re seeing similar trends for many of our customers.
  • In the primary suite, rule-guided variants recovered 98% of the required custom findings, compared with 58.3% in the baseline control.
口径:“周 PR 量翻倍以上”无绝对数,Q4 指 2025 年 Q4(按发文时间推断)。98% vs 58.3% 是自建 eval 套件(含已知违规与安全反例)上的结果,不是生产评审数据。
冷水:产品推广文;eval 由厂商自建。

也见 质量与安全

GitHub 工程师用受约束的 agent 补丁探针替代范围争论,但强调能被人评审和长期拥有才算便宜

能借鉴的:可直接用于团队流程:把“这在范围内吗?”的讨论替换为“30 分钟受约束的 agent 探针 + 评审可拥有性判断”,并明确哪些类别的改动即使代码简单也要拒绝或走重流程。
做了什么 · 原句数字 · 冷水

GitHub Copilot Agent Control Plane 团队工程师的观点文:对“小需求要不要做”的范围争论,不再靠讨论估算,而是让 agent 在约束下(最小补丁、留在现有 feature flag 后、不改公开契约、补测试、列出所有改动文件并标注风险)先出一个补丁当“探针”,用真实 diff 判断成本;但强调“生成便宜 ≠ 改动便宜”,只有人能自信评审并长期拥有的改动才算便宜;涉及授权、计费、隐私、合规或改变产品契约的改动无论 diff 多干净都不便宜。

冷水:个人观点文,无内部数据;作者所在团队开发相关产品。

也见 组织与角色

微软 Aspire 团队让只读 agent 起草跨仓库文档 PR,写操作交给窄权限执行器,由原功能作者审

能借鉴的:“agent 起草、原作者审阅”的跨仓库自动化模式适用于文档、变更日志、发布说明;安全上用“agent 只读 + 窄权限执行器 + 受保护文件 + 确定性路由”通过安全评审。前提:有 milestone/release 分支等结构化元数据。
做了什么 · 原句数字 · 冷水

微软 Aspire 团队(10 人)用 GitHub Agentic Workflows 让 agent 在产品 PR 合并后判断是否需要文档、在另一个文档仓库起草文档 PR,并自动指定原功能的评审人(SME)审阅。安全设计:agent 只有读权限,写操作以“意图”JSON 交给窄权限的 safe-outputs 作业执行;每个工作流独立 GitHub App,仅限两个仓库;只能向 main 或 release/* 开 PR;禁止修改 AGENTS.md、依赖清单和安全配置;目标分支由确定性脚本根据 milestone 解析,而不是让 agent 猜。v1 的“是否需要文档”判断过宽导致约 13% PR 被关闭,后加入反例收紧 prompt。

  • Here’s what that bought us, in numbers pulled straight out of GitHub: for Aspire 13.3 and 13.4, 82 feature-docs pull requests merged at a median of 44.8 hours after the product pull request, every one of them reviewed by the engineer who shipped the feature.
  • The result: 9 closures of 69 pull requests (≈13%), so we tightened the prompt’s user-facing-change definition and added explicit negative examples (CI, internal helpers, tests-only).
口径:30 天窗口(2026-05-03 至 06-02)内 396 个产品 PR 触发、产生 82 个文档草稿 PR;“100% 合并率”与早期 13% 关闭率对应不同阶段。未给出改造前的文档延迟基线。
冷水:小团队开源项目;作者之一是该工具相关的微软研究人员,带推广性质。

也见 质量与安全

Bun 作者 11 天把 53 万行 Zig 移植到 Rust,靠的是先写移植指南、对抗评审和语言无关的测试套件

Bun2026-07-08 · Rewriting Bun in Rust
能借鉴的:大规模语言/框架迁移的可复用配方:①先产出移植指南和不变量表;②小样本试跑再铺开;③实现与评审分离、多个对抗评审;④以语言无关的既有测试套件作验收;⑤并行 agent 必须各自 worktree(否则会互相 git stash/reset)。前提:已有高覆盖、与实现无关的测试套件,以及能承担六位数 token 成本。
做了什么 · 原句数字 · 冷水

Bun(2025-12 被 Anthropic 收购)作者用预发布 Claude Fable 5 和 Claude Code 动态 workflow,在 11 天内把 53 万行 Zig 机械移植为 Rust:先花约 3 小时与 Claude 讨论生成 PORTING.md 和字段生命周期表,先试 3 个文件再铺开;每个改动 1 个实现者 + 2 个只看 diff、被要求「假设代码是错的」的对抗式评审 + 1 个修复者;4 个 worktree × 16 个 Claude 并行;以与实现语言无关的 TypeScript 测试套件作为验收标准,出问题时修「生成代码的流程」而非手改代码。合并后又跑了 11 轮安全审查并上了 24/7 模糊测试,fuzzer 发现的 bug 自动交给 Claude 提 PR、人审。

  • Excluding comments, Bun is 535,496 lines of Zig.
  • I rewrote Bun in Rust using about 50 dynamic workflows in Claude Code run continuously over the course of 11 days.
  • Thanks to all the parallelization & this prep work, at peak Claude wrote about 1,300 lines of code per minute.
  • Two days after the first CI run, the failing list was down from 972 test files to 23.
  • At peak, we were running 4 of these workflows at once each in a separate worktree, each with 16 Claudes per workflow. About 64 Claudes at a time.
  • Pre-merge, this took 5.9 billion uncached input tokens, 690 million output tokens, and 72 billion cached input token reads — around $165,000 at API pricing.
  • This rewrite introduced 19 known regressions, each of which has been fixed.
  • So far, Bun v1.4.0 fixes 128 bugs that reproduce in v1.3.14.
  • So far, it's executed our parsers 100 billion times which has led to around 15 PRs.
口径:$165,000 按 API 价计(作者作为 Anthropic 员工实际成本不同);「3 人一年」为作者估计的人工替代成本;19 个已知回归和 128 个修复的 bug 是写作时统计。
冷水:作者是 Anthropic 员工、使用未发布模型,有明显推广性;单项目单人案例;HN 上有人指出移植初期 Miri 检查失败、safe Rust 中存在 UB(oven-sh/bun issue #30719,HN 48150900)。

独立分析 · 也见 Agent 运维与编排

Cloudflare 的 Kenton Varda 团队允许 AI 写代码,但 PR 描述必须由作者亲自写清意图

能借鉴的:可直接采用的低成本团队规范:PR 描述由人写、聚焦意图和高层框架,作为「作者理解自己改动」的证明;或要求附上 prompt 而非 AI 生成的冗长描述。
做了什么 · 原句数字 · 冷水

Cloudflare 的 Kenton Varda 在自己团队禁止用 AI 写变更描述(PR/commit 信息、issue/工单):AI 写的描述罗列代码里一眼可见的细节,却缺少评审需要的高层框架;看起来结构完整、显得专业,实际对评审者无用。允许 AI 写代码,但描述要人写——一段简洁描述只需几分钟,前提是作者懂代码,「不懂代码就绝不合并」。

冷水:个人推文、单团队;Simon 后来(2026-11-09)另写文章建议把 AI 生成的 PR 描述折叠进 <details>,是另一种折中。

独立分析

Simon Willison 发布前让 Claude 专找「将来修就是 breaking change」的问题,再请另一家模型复审又多挖出两处

能借鉴的:「发布前让 agent 专门找『将来修就是 breaking change』的问题」+「跨厂商模型互审」是可直接加入发布检查清单的步骤;先审文档改动再审代码,是理解大批 agent 改动的有效入口。
做了什么 · 原句数字 · 冷水

Simon 在发布 sqlite-utils 4.0 稳定版前,让 Claude Fable 做「发布前最终评审,专找以后修就会成为破坏性变更的问题」,它报告了 5 个发布阻断问题(包括 delete_where() 不提交并污染连接导致数据丢失)。他在手机上通过 Claude Code for web 逐项处理,先读文档改动来理解变更,最后再让另一家模型(Codex/GPT-5.5 xhigh)复审并又发现两处问题;用 AgentsView 估算会话的非补贴成本。

  • Over the course of 37 prompts, 34 commits and +1,321 -190 code changes over 30 separate files, we worked through the entire set of feedback in turn, making several other design improvements along the way.
  • For an estimated (unsubsidized) cost of $149.25
口径:单个开源库的一次大版本发布;成本为 AgentsView 估算的 API 价格。
冷水:个人项目、单次经验;作者自认原先觉得跨模型互审「有点迷信」,现基于多次经验改观,非受控比较。

也见 质量与安全

微软用 Copilot 渗透率、AI 评审覆盖率和开发者自报吞吐做组合指标,但数字多为自报或估算

能借鉴的:可借鉴的组合指标:工具渗透率 + AI 评审覆盖率 + PR 完成时间 + 开发者满意度/吞吐自报。把安全修复、框架升级等“杂务”优先交给 agent 是共识做法。
做了什么 · 原句数字 · 冷水

微软“Customer Zero”系列首篇,概述微软工程体系的 agent 化:PM 和开发者把安全修复、框架升级等杂务拆成 agent 任务,简单功能拆成 agent 驱动的 PR;从“代码”转向以规格(spec)表达明确意图作为单一事实来源;AI 代码评审覆盖大部分 PR;Azure SRE Agent、Entra SDK 迁移等案例。

  • With agents as part of their workflow, 62% of our developers say AI has increased their overall job satisfaction and 88% report increased task throughput.
  • Over 90% of Microsoft developers now use GitHub Copilot, and our AI code review covers 90% of Microsoft pull requests and speeds completion time by more than 10%.
  • Reduced time-to-mitigation on security and ops issues with over 50,000 developer hours saved with Azure SRE Agent
  • Lightspeed modernization compared to previous manual efforts with 80-90% accuracy in migrating hundreds of repos in the Entra SDK migration
  • Faster time-to-delivery with 55% reduction in manual developer toil using specialized agents and human-AI relationship best practices
口径:62%/88% 是开发者自报调查,未给样本量和问卷;“90% PR 有 AI 评审、完成时间加快 10% 以上”未说明对照方式;5 万小时节省、55% 杂务减少未给计算方法与时间范围。
冷水:营销系列开篇,数据都是汇总口径,多为自报或估算;微软同时在销售这些产品。

也见 度量与证据

Microsoft 把 AI 依赖修复嵌进 VS Code,一键升级包并改受影响代码,把安全债从「检测到」推进到「修掉」

能借鉴的:安全债的瓶颈往往不在检测而在修复;把 AI 修复嵌入 IDE、一键生成可审阅的变更,是提高修复率的实用路径。可推广到其他语言的依赖升级。
做了什么 · 原句数字 · 冷水

Python 依赖是微软第三大漏洞面。Microsoft Digital 从黑客松项目做出 VS Code 扩展 Python Dependency Remediation:在开发者工作流内分析依赖链、升级包、并用 AI 自动修改受影响代码,生成变更报告供开发者审阅(无可用模型时只做包升级不改代码)。定位是把“检测到”变成“修掉”,左移进开发流程。

  • We estimate that at least 67,000 employees use it every day.
  • The result is that fixes and upgrades that used to take multiple hours of developer time now take minutes, and the code is much more reliable.
口径:67,000 是每天使用 Python 的员工估计数(问题规模),不是工具用户数;“数小时→数分钟”无测量方法和样本。
冷水:效果数据定性;内部宣传稿。

也见 质量与安全

PostHog 工程师以旧解析器为 oracle 做差分测试和影子流量,几乎不看代码就安全替换了 SQL 解析器

能借鉴的:「有 oracle 就能放心让 agent 重写」:旧系统做参照 + 属性测试/模糊测试持续制造分歧 + 影子流量比对 + 小比例切流,是非实验室团队做性能重写或迁移时最可靠的验证骨架,人可以不逐行审代码而审验证体系。
做了什么 · 原句数字 · 冷水

PostHog 工程师用多个并行长时 Claude Code 会话,把基于 ANTLR 的 C++ SQL 解析器重写为手写 Rust 递归下降解析器,自己几乎不看代码。核心是「以旧实现为 oracle」的差分测试:用 Hypothesis 基于语法文件生成 SQL 做属性测试、拉取匿名化生产查询、让后台 agent「想边界情况」,不一致就缩减成回归用例;要求 agent 修复前先把语法文件和参考 C++ 源码载入上下文以避免脆弱修复。上线前用影子模式与生产解析器并行比对,再以 0.1% 反向影子切流。

  • The result was 16K lines of "hand"-rolled parser code, 5K lines of tooling, a few more K of tests, and a ~70x speed up.
  • When comparing with the production query log, I only ever tested ~50K queries. In shadow mode, I was able to test millions of parses quickly and there were zero divergences.
  • On production queries, it was on average 454x faster than the previous parser.
口径:70x 是作者笔记本基准,454x 是生产查询平均(生产多为未命中缓存的长 SQL);零分歧基于影子模式数百万次解析。
冷水:单工程师个人项目,自述;依赖存在可执行的参照实现,无 oracle 的新功能不适用。

也见 质量与安全

Ladybird 关闭公开 PR,因为 AI 让大补丁不再代表投入和善意,信任的依据改为明确谁对进库改动负责

Ladybird browser project2026-06-05 · Changing How We Develop Ladybird
能借鉴的:对接受外部/跨团队贡献的内部平台或 inner-source 仓库有启示:AI 时代 PR 体量不再是投入和可信度的代理指标,应把「谁对改动负责」显式化(owner 制、受信作者名单),而非试图检测是否 AI 生成。
做了什么 · 原句数字 · 冷水

Ladybird 浏览器项目宣布不再接受公开 PR,只由维护者引入代码,并关闭所有现存公开 PR,也不设通过 issue/邮件/fork 的「影子贡献通道」。理由是 AI 让「看起来像认真贡献」的工作变得廉价,大补丁不再意味着大投入与善意,信任信号失效;对处理不可信输入的浏览器而言,关键在于谁为进入代码库的改动负责,而不在于代码是否手写。维护者自己每天使用 AI 工具。

冷水:开源项目治理决策,非企业内部;单一项目,无效果数据。

独立分析 · 也见 质量与安全

Anthropic 称超 80% 合并代码行由 Claude 编写,也承认人工评审成了新瓶颈

Anthropic2026-06-04 · When AI builds itself
能借鉴的:可借鉴的度量方法:用归因管线统计「合并到生产的 AI 代码行占比」并公开口径与缺口;用「中途纠正/接管率」和按难度分层的会话成功率追踪 agent 可靠性;用历史事故 bug 回放评估自动 reviewer。组织层面要预期瓶颈转移到人工评审与「选择做什么」,提前设计评审分级和优先级机制。
做了什么 · 原句数字 · 冷水

Anthropic Institute 用此前未公开的内部数据说明 AI 已在加速 AI 研发:截至 2026 年 5 月超过 80% 合并进代码库的代码由 Claude 编写(Claude Code 发布前为个位数),2026 Q2 典型工程师每天合并代码量是 2024 年的 8 倍;员工中途纠正/接管 Claude 的比例一年来持续下降,最开放任务的会话成功率显著上升;员工普遍认为 Claude 代码质量已大致与人类持平。代码评审方式随之改变:所有变更合并前先经自动 Claude reviewer 审查,回溯分析显示它能拦下约三分之一历史 claude.ai 事故的 bug;人类代码评审已成为新的 Amdahl 瓶颈,非工程领域也出现「点子远多于执行能力」的瓶颈。人类比较优势收缩到研究品味与判断(选题、信任哪些结果、何时止损)。

  • To take just one example: today, Anthropic engineers on average ship 8x as much code per quarter as they did from 2021-2025.
  • As of May 2026, more than 80% of the code we merge into Anthropic’s codebase was authored by Claude.3 Before Claude Code launched in research preview in February 2025, this number was in the low single digits.
  • In the second quarter of 2026, the typical engineer was merging 8× as much code per day as they were in 2024.4 This is because much of the code is written by Claude, with the engineer directing and reviewing, rather than typing it themselves.
  • In a March 2026 poll of 130 employees from across Anthropic research teams, the median respondent estimated that they produced around 4x as much output with Mythos Preview as they would have without access to any AI models, on the kinds of projects they would have been working on regardless.
  • For example, in April 2026, Claude shipped over 800 fixes that reduced a class of API errors by a factor of one thousand.
  • On the most open-ended tasks, Claude’s success rate reached 76% in May 2026, up 50 percentage points in six months.
  • Using this tool, we ran a retrospective analysis, and found that an automated Claude review of every change to our codebase would have caught roughly a third of the bugs behind past incidents on claude.ai before they ever reached production.
  • In May 2025, Claude Opus 4 averaged a ~3x speedup over the starting code. By April 2026, Claude Mythos Preview was achieving ~52x.
  • On this measure, our best model in November 2025 (Opus 4.5) beat the human choice 51% of the time; in April 2026 (Mythos Preview), this grew to 64%.
  • Anthropic leadership have publicly estimated that 90% or more of our code is written by Claude, including scripts and experimental code. Our >80% figure measures the share of lines merged to production that can be attributed to Claude.
口径:关键口径说明在脚注:>80% 是「合并到生产的代码行中可归因于 Claude 的比例」,归因管线有缺口,未归因部分还包括自动生成代码,因此偏保守;而「90%+」是领导层含脚本和实验代码的估计——两个数字口径不同不可混用。8x 按「每工程师每天合并代码行」计,作者自己承认行数会高估真实生产率。4x 为 130 名研究员自报(作者认为真实值更低,并引 METR 指出自报会高估)。76% 的会话成功率由 Claude 判官判定(无需纠正即成功)。三分之一是回溯性估计。51%/64% 基于刻意挑选的 129 个「人类选择有改进空间」的时刻,不是人机公平对比。
冷水:发布日期取自 Anthropic Institute 列表页(Jun 4, 2026),正文无日期且 9/18 有更新;本文为政策/叙事文章,带有 RSI 风险议程;数据为内部自报、无外部复核;lab 的研究型工作和模型访问不可外推。

也见 度量与证据

Anthropic 的 Claude Code 团队用即时规划、按领域专长做人审、经理先当 IC 改写了工程规范

能借鉴的:对 TLM 很实用的清单:用即时规划替代长路线图、把「问作者」改为「先问 agent 再问能否自动化」、按领域专长而非全量做人审、经理先做 IC、给团队「砍流程」的明确授权、用入职爬坡时间/PR 周期/AI 辅助提交占比作为采纳度指标(同时警惕只看吞吐)。前提是有足够的 CI 容量与内部用户群可快速反馈。
做了什么 · 原句数字 · 冷水

Claude Code/Cowork 工程总监(Code w/ Claude SF 2026 演讲整理)介绍团队在 agent 编码成为默认后改写的规范:规划从 6 个月路线图改为「即时规划」(PR/原型中讨论、先给内部用户用再迭代,少做产品评审);找上下文先问 Claude 而不是找作者,并追问「这件事能否自动化」;代码评审由 Claude 处理风格/lint/bug/补测试,人只在需要领域专长处介入(法务风险、信任边界与安全代码、PM/设计的产品品味);角色模糊化——PM 大量写代码、工程师承担内容和设计,招聘偏重「有产品感的创造型 builder」和「深系统专长」两类,不看重原始产出量。推行方式:少数不可协商的团队原则(全员 dogfood、团队尽量扁平且经理先当 IC、明确授权砍掉过时流程),其余由各 pod 自主。建议追踪三个指标:入职爬坡时间、PR 周期时间、Claude 辅助提交占比,但提醒吞吐不等于成功。

  • When I first joined the Claude Code team, we wrote a pretty good six month roadmap, and then because of Claude Code, so many things changed that it was out of date by month three.
  • For us, by default, every commit is Claude-assisted. I don't think I've seen a non-Claude-assisted commit in the last four months.
口径:无系统性数据;「每个 commit 都由 Claude 辅助」是总监个人观察,未定义「辅助」。入职爬坡、PR 周期只给了「比一年前快很多」「第一周就能交付真实代码」的定性描述。
冷水:产品团队负责人演讲,带产品推广;Claude Code 团队做的就是 agent 工具本身,dogfood 条件与一般业务团队不同;无量化验证。

也见 组织与角色

OpenAI 税务 agent 把专家修正结构化记录、聚类成 eval,再转成有边界的 Codex 任务产出候选 PR,形成「agent 改 agent」闭环

能借鉴的:对任何在生产中运行 agent 的团队:把人工修正结构化记录→聚类成 eval→生成可验证的 agent 工程任务→人工评审 PR,这是可复制的“agent 改 agent”闭环。前提:能拿到真实修正数据和可回放的 trace,并限定 agent 只改有边界的那一层。
做了什么 · 原句数字 · 冷水

OpenAI FDE、研究员与 Thrive Holdings 工程师合作为会计事务所做 Tax AI。工程实践核心是“三支柱”闭环:贴近从业者、让产品在生产中留下结构化证据(源文件→抽取字段→提交→专家修正的完整 trace)、把反复出现的专家修正归类成 eval 目标,再变成有边界的 Codex 工程任务(可写 worktree 与只读生产证据分离,跑定向+回归 eval,产出候选 PR 交工程师评审);证据模糊的情况退回产品团队。

  • At launch, only a quarter of returns were at 75% correct field completion, but within six weeks, 86% hit that mark.
  • Rental properties took about six weeks and substantial engineering oversight to reach 90% precision and recall, but that work produced reusable abstractions, review artifacts, eval conventions, and implementation patterns that made it easier to support similarly complex schedules such as Schedule C and Schedule A.
  • To solve this problem, Tax AI processed 7,000 tax returns across the Crete firms that participated in the pilot this tax season.
口径:“25%→86% 达到 75% 字段正确率”的分母是被评分的申报表,期间产品同时扩展到更复杂的表,口径可能变化。其余效率数字(省 1/3 时间、+50% 吞吐)属客户业务成效。
冷水:是与被投资/合作方的联合项目,带商业宣传;效果数据来自合作方,未经第三方验证。

也见 Agent 运维与编排

Nolan Lawson 用三家模型交叉审每个 PR,代码更健康了,但速度并没有变快

能借鉴的:多模型交叉评审 + 主 agent 核验去误报,是低成本可复制的 PR 预审做法;同时提醒管理者:把 AI 用于质量而非速度时,吞吐指标可能不升反降,度量体系要能容纳这种用法。
做了什么 · 原句数字 · 冷水

作者用一个 Claude skill 对每个 PR 同时调用 Claude 子 agent、Codex、Cursor Bugbot 三家找 bug 并分级,再由主 agent 自己核实排除误报、写总报告;然后让 agent 修完所有 critical/high、性价比低的 medium 跳过、critical 太多就放弃整个 PR。结果是代码库健康度和对代码的理解提高了,但速度并没有明显提升,常被拖进修复既有 bug、补测试的支线。

冷水:单人经验贴,HN 高票主要因为观点共鸣;未给出 bug 数或缺陷率对比。

也见 质量与安全

// 本页变更