T
traeai
登录
返回首页
Augment Code(@augmentcode)

The Karpathy rules are the kind of thing you'd write at the top of a team style guide. Here is the ...

7.8Score
The Karpathy rules are the kind of thing you'd write at the top of a team style guide.

Here is the ...

TL;DR · AI 摘要

文章提炼了广受关注的‘Karpathy规则’:强调编码前思考、极简主义设计、精准修改和目标驱动执行,适合作为工程团队风格指南的核心原则。

核心要点

  • 编码前必须明确假设、权衡与问题边界,避免盲目实现
  • 拒绝推测性功能和一次性抽象,坚持用最少代码解决当前问题
  • 修改应精准隔离、风格一致,杜绝连带重构

结构提纲

按章节快速跳转。

  1. 指出Karpathy规则是高成熟度工程团队风格指南的理想开篇。

  2. 强调在写代码前需显式陈述假设、暴露权衡、主动提问。

  3. 要求拒绝 speculative features 和 single-use abstractions,追求最小可行代码。

  4. 修改须严格限定范围,匹配既有风格,禁止顺手重构。

  5. 定义可验证的成功标准,并持续迭代直至达成。

思维导图

用一张图看清主题之间的关系。

查看大纲文本(无障碍 / 无 JS 友好)
  • Karpathy工程四原则
    • Think before coding
      • 显式假设
      • 暴露权衡
      • 主动澄清
    • Simplicity first
      • 无推测功能
      • 无一次性抽象
      • 最小代码量
    • Surgical changes
      • 范围隔离
      • 风格对齐
      • 零顺手重构
    • Goal-driven execution
      • 可验证标准
      • 闭环迭代

金句 / Highlights

值得收藏与分享的关键句。

#软件工程#编程规范#团队协作#工程文化
打开原文

Here is the summary:

  1. Think before coding: state assumptions, surface tradeoffs, ask if unclear
  2. Simplicity first: no speculative features, no single-use abstractions, minimum code

3." / X

Augment Code on X: "@karpathy @jiayuan_jy @openclaw The Karpathy rules are the kind of thing you'd write at the top of a team style guide. Here is the summary: 1. Think before coding: state assumptions, surface tradeoffs, ask if unclear 2. Simplicity first: no speculative features, no single-use abstractions, minimum code 3." / X

Don’t miss what’s happening

Image 1: Square profile picture

Augment Code

@augmentcode

The Karpathy rules are the kind of thing you'd write at the top of a team style guide. Here is the summary: 1. Think before coding: state assumptions, surface tradeoffs, ask if unclear 2. Simplicity first: no speculative features, no single-use abstractions, minimum code 3. Surgical changes: don't touch adjacent code, match existing style, no drive-by refactors 4. Goal-driven execution: define verifiable success criteria, loop until met

4:26 PM · May 1, 2026

·

782 Views

1

1

9

12

AI 可能会生成不准确的信息,请核实重要内容

The Karpathy rules are the kind of thing you'd write at the top of a team style guide. Here is the ... | Augment Code(@augmentcode) | traeai