Claude Code Team Reveals ~90% of Code Is Written by Claude
Claude Code 团队通过官方博客(Addy Osmani 撰文)公开其工程方法论:团队约 90% 的代码已由 Claude 编写和审查,工程师无需人工逐行检查每次变更。据 Min Choi 整理、FinanceYF5 转述的内容,这一模式的核心是一套让 Agent 用证据验证自己工作的自动验证机制。
已确认
- 验证循环是并行委派的基础:没有它只能同时跑一两个 Claude;让 Agent 自行运行检查并验证改动,是同时运行数十个实例的前提。
- 廉价检查优先:按测试 → 构建 → Lint → 提交的顺序执行低成本的验证,尽早发现问题。
- 防作弊设计:Code Review 只从基础分支读取 REVIEW.md,而非当前 PR 中被修改的版本,确保改代码的 Agent 无法顺手修改审查自己的标准。
- 人工介入阈值:同一问题 Claude 连续 3 轮修复失败即停止并交给人类处理。
- 规则沉淀流程:分析人工审查意见和被回滚的 PR,同类问题至少出现 2 次才成为候选规则,再由 3 个 Agent 尝试推翻,最后交人类审核批准;对不稳定测试(flaky tests)也有相应处理。
- 测试策略:若只能投资一种测试,选端到端(E2E)测试,让 Agent 模拟真实用户完整操作流程(如加购物车、结账、确认页);用 property tests 守住绝不能违反的不变量(如账户余额不能为负、decode(encode(x)) == x、数据库迁移幂等),生成数千组输入寻找边界情况。
- 差分测试:系统迁移时让旧系统充当验证标准(oracle),对新旧系统输入相同数据(随机数据或真实流量样本),输出不一致即可能是 Bug 或破坏性变更,同时排除空格等无关差异并记录经批准的行为变化。
- verify Skill:在项目 .claude/skills/ 目录创建 verify skill,让 Claude 在提交前亲自操作程序验证自己的改动,而不只是跑测试。
为什么重要
这是头部 AI 编码团队对「如何大规模信任 AI 写代码」的系统性回答:不靠人工逐行审查,而靠可自动执行、难以被 Agent 绕过的验证体系来兜底质量与安全。其中的规则沉淀流程、3 轮失败升级机制和防作弊审查设计,对其他希望提升 AI 代码占比的工程团队有直接参考价值。
2026-11-23 ~ 2026-11-23 · 9 related posts
Primary sources
- Claude Code team writes ~90% of code with Claude, held up by 7 verification rules — FinanceYF5 ·
- How the Claude Code team ships code: ~90% written by Claude, held together by verification loops — FinanceYF5 ·
- Claude Code team: a rule needs 2 repeat misses, 3 agents trying to disprove it — FinanceYF5 ·
- [source] Claude Code team writes ~90% of code with Claude, held up by 7 verification rules — FinanceYF5 · 2026-11-23
- Claude Code team's testing take: if you invest in one test, make it end-to-end — FinanceYF5 · 2026-11-23
- Have Claude run your changes before commit: a verify skill for every platform — FinanceYF5 · 2026-11-23
- Claude Code team: property tests with thousands of generated inputs guard invariants — FinanceYF5 · 2026-11-23
- Claude Code team: for migrations, the old system is the oracle — FinanceYF5 · 2026-11-23
- Claude Code rule: after 3 failed fix rounds, stop and escalate to a human — FinanceYF5 · 2026-11-23
- Claude Code: code review reads REVIEW.md from base branch so agents can't game it — FinanceYF5 · 2026-11-23
- [source] Claude Code team: a rule needs 2 repeat misses, 3 agents trying to disprove it — FinanceYF5 · 2026-11-23
- [source] How the Claude Code team ships code: ~90% written by Claude, held together by verification loops — FinanceYF5 · 2026-11-23