2026年12月1日 星期二

99% 的人都用錯 AI?Karpathy 的正確用法 — 互動教學頁

原文:Andrej Karpathy: "99% Use AI & LLMs Wrong" (Here's How He Does It) · hyperfixation on AI | beamnxw(Karpathy 內容重剪合集) · 片長 2:05:01

互動教學頁 · 9 個判斷

99% 的人都用錯 AI?Karpathy 的正確用法

Andrej Karpathy(Tesla 前 AI 總監、OpenAI 創始成員)親自示範他怎麼用 LLM:從心智模型、模型選擇、搜尋與 Deep Research、寫程式、多模態到客製 GPT——九個你每天都會遇到的判斷。

讀完這頁,你該能做出這個判斷:把 LLM 當成一個「半年前讀完整個網路、只模糊記得」的合作者——知識會過時所以要搜尋、記憶是稀缺資源所以要開新對話、產出是第一稿所以要查證。理解這個心智模型,多數錯誤用法自然消失。

1 · 心智模型:你在跟什麼說話

這節解開的不確定:模型到底知道什麼、為什麼會過時、對話記憶怎麼運作?

Karpathy 給的第一個禮物是心智模型:LLM 是一份「有損、機率性的網際網路壓縮檔」——不是資料庫,它對一切只有模糊印象,所以會幻覺。預訓練太貴、很少重跑,所以知識有截止日期。而你貼進對話的每個 token 都會進入它的上下文窗口(工作記憶),資源有限且越長越慢越貴——所以切換話題就開新對話,別讓無關內容稀釋注意力。

“Hi, I'm ChatGPT. I am a 1 TB zip file… My knowledge comes from the internet which I read in its entirety about 6 months ago and I only remember vaguely.”

嗨,我是 ChatGPT,一份 1 TB 的 zip 壓縮檔。我的知識來自網際網路——半年前完整讀過一遍,但只記得模模糊糊。

5:25
模型的三個事實意思
有損壓縮檔(lossy zip)不是資料庫,會有印象錯誤與幻覺
知識截止(knowledge cut-off)預訓練昂貴、很少重跑,近況不在檔案裡
上下文窗口=工作記憶token 是珍貴資源:開新對話、保持簡短

Q1.在同一個對話裡聊完 A 主題,想換到不相干的 B 主題,Karpathy 的建議是?

Q2.面對各家 LLM 的免費與付費方案,他的取捨原則是?

原文節錄(自動字幕,最小整理)

“But the zip file is not exact. The zip file is lossy and probabilistic zip file.” — 1:23
“They have what's called a knowledge cut-off.” — 2:57
“Think of the tokens in the context window as a precious resource.” — 10:42

2 · 思考模型:何時值得讓它多想一分鐘

這節解開的不確定:該不該用 thinking/o1/R1 這類推理模型?

思考模型會在回答前產生一長串推理 token,換取更高準確率——代價是等待時間與算力。Karpathy 的預設是反過來的:平常用反應快的非思考模型;旅遊建議這種問題不值得等一分鐘。只有兩個時機升級:懷疑答案不夠好,或題目本來就是數學、程式碼這類需要深思的難題。

“These models are most effective for difficult problems in math and code and things like that.”

思考模型最能發揮的地方,是數學、程式碼這類困難問題。

22:57

Q3.平常提問時,他的預設是哪一種?

原文節錄(自動字幕,最小整理)

“For myself, I usually try out the non-thinking models because the responses are really fast… but when I suspect the answer is not good enough, that's when I would reach for the thinking models.” — 23:21

3 · 工具:網路搜尋與 Deep Research

這節解開的不確定:模型不知道的近況怎麼辦?AI 生產的報告能不能信?

知識截止的解法是工具:問最新、會變動、或冷門的資訊時主動開搜尋(他把這類工作外包給 Perplexity 這類工具,別再手動 googling)。更大型的調查交給 Deep Research——但它產出的報告只能當第一稿:裡面任何內容都可能被幻覺、編造或誤解,他會真的點進引用文獻核對(他展示的 LLM 實驗室比較表就漏了 xAI、混入了 Hugging Face)。對了,連讀書他都不再一個人讀——總是帶著 LLM 一起讀。

“It is rarely ever the case anymore that I read books just by myself. I always involve an LLM to help me read a book.”

我現在幾乎不再獨自讀書——我總是帶著一個 LLM 一起讀。

48:22

Q4.什麼時候該主動開啟網路搜尋工具?

Q5.拿到 Deep Research 產生的研究報告後,正確用法是?

原文節錄(自動字幕,最小整理)

“Treat this as your first draft. Treat this as papers to look at.” — 41:56
“Long story short, don't do this manually, but use tools like Perplexity as an example.” — 27:50

4 · 寫程式:Python 直譯器與 vibe coding

這節解開的不確定:LLM 會不會算數?專業開發該怎麼用?

LLM 自己算數不可靠,但把 Python 直譯器當工具就不同了——問題是它像個很心不在焉的實習分析師:示範裡它悄悄把 2015 年的 NA 填成 0.1、把 20 兆的外推講成 1.7 兆。所以你得看得懂程式碼並盯著它;他說無法自己驗證程式碼的人,他會猶豫是否推薦用這工具。專業開發則進到 Cursor 這類工具,描述想要什麼、讓模型寫、再自己審——這件事的名字叫 vibe coding。

“The name for this is called vibe coding.”

這種做法的名字,叫做 vibe coding。

1:11:39

Q6.讓 ChatGPT 用 Python 做資料分析時,對它寫的程式碼該採什麼態度?

原文節錄(自動字幕,最小整理)

“You have to kind of still know what this code is doing and you have to be careful and scrutinize it.” — 1:01:51

5 · 多模態:語音 · 圖片 · 影片

這節解開的不確定:跟模型互動只能打字嗎?圖片能直接丟嗎?

他的高頻習慣:不要打字,用語音輸入(Wispr Flow 這類工具),又快又自然,到處都用。更深一層的心智模型:文字、聲音、影像全部都被切成 token 流,模型做的只是 token 的統計模式預測。至於丟圖片(營養標籤、血檢報告),他不一步到位——先讓模型把圖片轉錄成文字表格、核對它看對了沒,再對文字提問;醫療資訊則當作跟醫生討論的第一稿。

“It just models statistical patterns of token streams.”

它只是在建模 token 流的統計模式——文字、聲音、影像都是。

1:34:56

Q7.上傳營養標籤或血檢報告等圖片給模型時,他的建議做法是?

原文節錄(自動字幕,最小整理)

“Don't type stuff out, use voice. It works quite well, and I use this pervasively.” — 1:20:57
“I like to do it in two steps whenever possible.” — 1:36:18

6 · 客製化:memory · custom instructions · custom GPTs

這節解開的不確定:怎麼把重複的設定與 prompt 固定下來,不用每次重講?

重複性任務的三層固化:模型記憶(memory)自動累積你的偏好;custom instructions 全域套用你的規則;真正可分享的是 custom GPT——他的韓文單字提取 GPT 除了描述任務,還附四個具體輸入輸出範例(few-shot),用範例示範永遠比純文字描述更能提升準確率。同一套思路也改變了他的日常工具:自建的客製翻譯 GPT 會逐詞拆解、可以追問,好到他懷疑傳統翻譯器為什麼還存在。

“And I find that this always increases the accuracy of LLMs.”

在 prompt 裡附上具體範例(few-shot)——他發現這永遠能提升 LLM 的準確率。

1:54:19

Q8.寫 custom GPT 或重複性 prompt 時,怎麼讓輸出最準確?

Q9.學語言需要翻譯時,他會用哪個工具?

原文節錄(自動字幕,最小整理)

“If you're learning different language, I would not use a different translator other than ChatGPT.” — 1:56:52
“There is a rapidly growing, changing, and shifting, and thriving ecosystem of LLM apps like ChatGPT.” — 2:00:33

“Treat it as a first draft. Don't fully trust it. Still very helpful.”

把它當第一稿,別全信——但它仍然非常有用。這一句,就是整部片的濃縮。

44:09

結算:你 vs Karpathy

術語速查:zip file(壓縮檔)=Karpathy 對預訓練 LLM 的比喻:把整個網路有損壓縮進權重,只能模糊還原;knowledge cut-off=預訓練資料的截止日期;context window(上下文窗口)=模型的工作記憶,對話中所有 token 都佔用;thinking model(思考模型)=回答前先生成推理 token,換準確率花時間;Deep Research=長時間自動查資料彙整報告的功能;few-shot prompt=在 prompt 中附輸入輸出範例來教模型;vibe coding=用自然語言描述、讓 AI 寫碼、人負責審的工作流;Wispr Flow/MacWhisper/Superwhisper=語音轉文字輸入工具。

來源與重建標記:逐字稿 3,764 行,取自 YouTube 自動字幕(英文),引文經程式逐條比對為逐字稿原文(僅補標點、刪口語贅詞);本片為頻道 beamnxw 重剪的 Karpathy 內容合集,引文均出自片中 Karpathy 本人原話。自動字幕的錯拼已校正:Wispr Flow(字幕作 Whisper Flow)、Veo 2(字幕作 V2)。Deep Research 報告漏 xAI/混入 Hugging Face、NA 填 0.1、外推數量級錯誤等細節均為片中 Karpathy 展示的實例。頁面 metadata(片名、頻道、片長)查自 YouTube oEmbed。刻意未收錄:Bryan Johnson 成分分析、DNA 語言模型(Evo 2)細節、影片生成工具比較等離主軸較遠的段落。

時間戳索引:1:23 有損壓縮檔 · 2:57 知識截止 · 9:37 換話題開新對話 · 10:42 token 是珍貴資源 · 14:23 模型選擇 · 22:57 思考模型主場 · 33:45 何時開搜尋 · 44:09 報告當第一稿 · 1:01:51 審查程式碼 · 1:11:39 vibe coding · 1:20:57 語音輸入 · 1:36:18 圖片兩步驟 · 1:54:19 few-shot · 1:56:52 翻譯 GPT

先建工作室,再建軟體工廠 — Armin Ronacher 互動教學頁(AI Engineer CODE 2026)

原文:Build the Workshop Before the Software Factory — Armin Ronacher, Earendil · AI Engineer(CODE 2026,2026-11-12) · 片長 19:38

互動教學頁 · 7 個判斷

先建工作室,再建軟體工廠

Armin Ronacher(Earendil CTO,Flask/Rye 作者)用自己一年的 agent 使用數據,論證一件事:模型在指數變強,人不會——所以該先把「工作室」建好,而不是急著蓋自動化工廠。

讀完這頁,你該能做出這個判斷:當模型自己變強、多出來的能力要往哪裡投資?他的答案是——不是更多產能與自動化,而是守住理解力、內在品質,以及與人協作的能力。

1 · 地基:模型在變,harness 沒變

這節收掉的不確定:agent 的力量到底從哪來?

Earendil 的 coding agent「Pi」一年來核心工具組完全沒動,Armin 卻覺得它強得多:他要動手更正的次數一路下降、任務 P90 執行時長從約 2 分半拉到 14 分鐘以上、連「更愛用 Bash」都是模型自己長出來的行為,不是設定出來的。他曾深愛的 Pi Auto Research 外掛(讓 agent 長時間朝目標推進),用上新模型後發現——整個外掛都不需要了。去年管用的 harness 妙招,今年多半可以直接丟掉。

“It has become much more powerful purely as an effect of the models getting better.”

它變強,純粹是模型變好的結果。

1:42
指標(他的個人數據)一年前現在
需要他更正/推回的次數多逐代下降
P90 任務執行時長約 2.5 分鐘14 分鐘以上
工具偏好相對均衡明顯偏好 Bash

Q1.Pi 的核心 harness 一年沒動,它為什麼變強了很多?

Q2.他曾深愛的 Pi Auto Research 外掛(讓 agent 持續朝目標推進),現在的判斷是?

原文節錄(自動字幕,最小整理)

“It still has the same tools today as it did in December last year… it has become much more powerful purely as an effect of the models getting better.” — 1:38
“If you use a present day state of the art model, you’ll actually discover that the entire plugin is no longer necessary.” — 2:28

2 · 瓶頸:注意力是稀缺資源

這節收掉的不確定:是什麼在限制我們?

模型在加速,人不會。他每天推給 agent 的 prompt 數一年來停在 120–190 之間,agent 替他工作的時間卻從不到一個工作日漲到數倍;一年開了 141 個 repo,固定回去維護的始終只有 10–15 個。朋友把開源專案維護完全自動化——issue 進來、agent 自動 review 並 commit——最後還是關掉了:不再那麼在乎那個專案,token 想省給別處。限制不是運算,是人的注意力;連全自動化都取代不了「你在乎」這件事。

“Human attention is, for me at least, the limiting factor.”

對我而言,人的注意力才是真正的限制。

4:57
他的使用輪廓(一年)數字
每日 prompts120–190(持平)
agent 活躍時間不到一個工作日 → 數倍於工作日
一年開立的 repo141 個
固定回去維護的專案10–15 個

Q3.朋友把開源專案維護全自動化(issue 進來、agent 自動 review+commit),最後他做了什麼?

原文節錄(自動字幕,最小整理)

“We’re not… I don’t want to say we’re the bottleneck, but we are the thing that paces what they can do.” — 4:52
“He also turned it off because eventually he didn’t care about the project as much anymore and he wanted his token specs to use them for other things.” — 7:39

3 · 工作室三技能:推回 · 真功夫 · 維持理解

這節收掉的不確定:品質怎麼守?

工作室的第一件事是知道何時推回:agent 只為「完成目標」拿到獎勵,就像 RL 的 reward——每個功能都達標,疊起來卻可能是《辛普森家庭》那台怪車。他稱之為 true skill vs agent skill:同一套系統,當工程師的兒子送來的 PR,品質就是有明顯落差。他自己的解法是控制速度、卡在理解還跟得上的位置——在任務約 70%(進驗證前)就讓 agent 先產出一頁排版好的 executive summary;他常以此取代讀 code,還能在執行中途就質疑實作決定。

“An agent is really rewarded in just completing a goal… it doesn’t mean that what is being delivered is something we are intrinsically happy with over a longer period of time.”

agent 的獎勵就只是把目標做完——不代表交付的東西,長期看來你真的滿意。

8:24

Q4.commit 量爆炸後,他如何在「大量場合不讀 code」的前提下維持理解?

原文節錄(自動字幕,最小整理)

“Before it’s going towards the verification, which is typically around 70% of it, to start producing me a really nice short executive summary and a nice typeset HTML page.” — 10:41
“It is very easy to basically create the Simpson car of all the features in a software.” — 8:53

4 · 防失控:依賴 · 標準 · 協作

這節收掉的不確定:軟體怎麼不腐爛?

他信奉少依賴、自己多寫一點——agent 時代終於讓「自己寫」變便宜。但各自生成的實作要一起工作時,沒有共同標準就會失控生長(德文裡有個專門形容這種增生的字,逐字稿沒錄到原詞):同一個 tar 檔,不同實作各自解讀。他點出關鍵:標準難產往往不是技術問題,而是人與人要就「檔案裡該有什麼、該怎麼解釋」達成共識。有時要抵抗「叫 agent 直接解掉」的誘惑,退一步判斷這是不是該跟其他人一起解的問題——開源專案 fork 暴增、upstream 變少正是徵兆。

“Collaboration between humans is as hard as it has ever been.”

人與人的協作,從來沒有變容易過。

12:52

Q5.讓不同實作對同一檔案格式解讀一致,他認為難點在哪?

原文節錄(自動字幕,最小整理)

“What makes us work together on something often is not a technical challenge as much as it is a problem of how do people agree on what is supposed to be in this file format.” — 12:21
“It’s important to sometimes resist this temptation of just having the agent solve the problem… figuring out if this is maybe one of those problems where we should be working together with other people.” — 13:02

5 · 未來工廠:durable agent · code mode · classifier

這節收掉的不確定:harness 接下來該長什麼樣?

兩分鐘的任務可以人力盯著重啟;幾千個 issue 跑整夜就不能。他主張 durable agent:能自我重啟、workflow 可 start/stop/suspend/resume;搭配 flex scheduling 的折扣,沒 token 進來時連 sandbox 一起暫停,別浪費閒置資源。另一條線是 code mode(源自 Cloudflare):與其把幾千個工具定義塞進 context,不如給 agent JavaScript,讓工具呼叫在程式裡編排——他認為這已從好奇玩具變成「驚人地有用」。再加上便宜快速的 classifier 模型,每個 if 條件都丟給它,3,000 筆客服請求幾分鐘就分完。

“This has gone from a curiosity to something that is fundamentally shockingly useful.”

這從好奇玩具,變成了根本上驚人好用的東西。

17:49

Q6.任務變成「幾千個 issue 跑整夜」,他認為 harness 該具備哪些?(多選)

Q7.3,000 筆客服請求要分流(派 agent 處理/請顧客補充),他的設計是?

原文節錄(自動字幕,最小整理)

“Durable agents that create durable workflows… where you can start it, stop it, you can suspend it, you can bring it back.” — 15:49
“Instead of having thousands of tools being put into the context, what if we just give the agent… JavaScript to run, and have all the tool calls… happen via JavaScript.” — 17:34

“Now that we can build everything, maybe we should not.”

既然我們什麼都蓋得出來了——也許,有些東西不該蓋。把能力花在更 ambitious、更令人愉悅的軟體上。

19:23

結算:你 vs 講者

術語速查:harness=給模型工具並執行其呼叫的宿主程式;atelier/workshop=講者的比喻——重品質與判斷的工作室,對比量產導向的 factory;durable agent=可中斷、可恢復、能自我重啟的長時 agent;code mode=讓 agent 寫 JavaScript 編排工具呼叫(Cloudflare 提出);classifier/decision model=便宜快速的窄決策模型;flex scheduling=離峰排程換推論折扣;P90=90% 任務落於此時長以內。

來源與重建標記:逐字稿 603 行,取自 YouTube 自動字幕(英文),引文僅做最小整理(補標點、刪口語贅詞);「Jeff」為講者口中的 classifier 模型名(官方字幕亦作 Jeff,此頁不引用該名稱作事實主張);德文「失控生長」一詞逐字稿未錄到原詞,本頁僅保留語意;表格數字(120–190 prompts/日、141 repo、10–15 個固定維護、P90 2.5 分→14 分+)皆為講者口述的個人數據,非基準測試;Q3 自動化故事與 Q5 tar 案例均為講者轉述。頁面 metadata(片名、講者、頻道)查自 YouTube oEmbed 與官方議程頁。刻意未收錄:開場藝術家/CNC 比喻細節、其測試集中樣本不足的兩個模型、結尾致謝。

時間戳索引:1:42 模型變強 · 4:57 注意力限制 · 7:34 自動化關掉 · 8:24 reward 迷思 · 10:23 executive summary · 12:19 標準=共識 · 15:49 durable agent · 17:49 code mode · 18:41 classifier 工作流 · 19:23 結尾金句

2026年11月23日 星期一

先對齊,再放手|Matt Pocock 的八份文件

原文出處:Matt Pocock(YouTube)|Watch me ship a 21,000-line feature with mattpocock/skills

影片逐字稿研究 · 教學

先對齊,
再放手

Matt Pocock 交付一個 21,000 行的功能,靠的不是寫得更快,而是把「不知道」一份一份收進文件。八份文件、八次判斷——每一次,先讓你選,再看他怎麼選、為什麼。

影片 69 分鐘頻道 Matt Pocock逐字稿 2,013 行8 份文件 · 8 個判斷

這頁的主張:21,000 行是副產品。真正的工作是這八份文件——每一份收掉一種「不知道」,讓 agent 在實作時沒有東西需要自己猜。

“The more decisions you give it, the more decision space it has, the more likely it is to choose a bad one.” 45:45

怎麼用:① 先自己選一個答案 → ② 看 Matt 選什麼、為什麼 → ③ 需要驗證時展開「逐字稿原文」。和 Matt 不同不是錯,重點是理由。
DOC 01

glossary.md

收掉的不確定:這個東西叫什麼?

未面對

Matt 的 repo 有一份約 560 行的 glossary.md,定義整個系統的每個概念。它不是給人看的規格,是 agent 的上下文:diagram 是一群 diagram snapshots;snapshot 是 clip 拍攝當下的拷貝;active diagram 是正在畫的;preserved snapshot 是沒有 clip 使用也留著的。

當他把「縮圖裡的東西」放進這套詞彙,問題立刻變清楚——它不是 diagram,也不完全是 snapshot。命名的裂縫,就是資料模型要補的地方。

“The language is going to form the data model that everything else fits on top of.”

語言會形成資料模型,其他一切都在它上面長出來。

19:42 Matt Pocock

判斷 01縮圖裡放的那張圖,Matt 怎麼歸類?

不做這份的代價:名字沒定,表名、欄位、模組都得猜;下一個 session 的 agent 會用另一套詞,把同一件事重講一遍。

逐字稿原文(節錄)

10:56“a diagram is really a group of diagram snapshots, which is a copy of the diagram's drawing at the moment that a clip is filmed”

12:13“the thing we're putting into the thumbnail is not really a diagram, it's just a single snapshot”

21:36“an active diagram is a diagram, but a thumbnail diagram is not. So maybe the word diagram isn't right here.”

DOC 02

ADR

收掉的不確定:為什麼當初這樣決定?

未面對

glossary 描述「現在是什麼」,ADR 解釋「為什麼當初這樣決定」。影片裡 ADR 出現兩次關鍵作用:既有的 ADR 003(diagrams as first-class entities with per-clip snapshots)讓 Matt 知道圍籬為何存在;新的 ADR 060 則記錄「它叫 diagram,但不是 diagram」。

他對 ADR 的堅持不是形式——這是給未來 session 的投資。

“Do not remove a fence until you know why it was put up in the first place.”

不知道圍籬當初為何而立,就不准拆。— Chesterton's Fence,16:53 引述

16:53 Matt Pocock

判斷 02grilling 途中,agent 沒問你就自己寫了一份 ADR。你會怎麼處理?

不做這份的代價:六個月後只剩 code;你、你的同事、下一個 agent 都只能猜。

逐字稿原文(節錄)

16:35“the glossary kind of describes the application as it is now... the ADRs are here to explain why we made those decisions”

21:13“can you also run me through the decision to create an ADR here? Why did you decide to go for a new ADR?”

22:12“I'm investing time into this so that future runs understand the context for every decision.”

DOC 03

prototype

收掉的不確定:用起來是什麼感覺?

未面對

grilling 還沒結束,agent 已在背景做了三個 UI 變體。Matt 的實測評語很直接:A 可用(左上角小預覽、臉可左右拖);B 比想像糟——臉太大、左側多一條 view bar;C 的分割視圖「是垃圾」:左邊拖、右邊看,眼睛來回。

選 A 之後才是真正的收穫:靈敏度調低、白邊 bug 的追查、ghost face(指標進畫面時手消失)、以及把臉的移動與畫圖收進同一條 undo。

“We really get to stamp how we think the product is going to look before we actually schedule an agent to build it.”

在真的派 agent 去蓋之前,我們有機會把「產品長什麼樣」先蓋章定案。

36:30 Matt Pocock

判斷 03三個原型擺在眼前,你會留下哪一個?

不做這份的代價:手感問題會延後到 21,000 行之後才爆;那時改的是架構,不是 CSS。

逐字稿原文(節錄)

34:02“B is really not as good as I thought it was going to be.”

34:06“the split view is garbage... I have to manually line it up with my finger and I can't see my finger.”

36:46“we really are going to reduce the decision space for the agent. We're going to say, no, it has to look exactly like this.”

DOC 04

spec

收掉的不確定:做到哪算完成?哪些不做?

未面對

to-spec 是使用者手動呼叫的 skill,必須放在輸入開頭。它把整場 grilling 變成一個 GitHub issue:約 47 條 user stories、逐條實作決策、明確的 out-of-scope、原型 branch 的引用。Matt 稱它 destination document——不是待辦清單,是終點的樣子。

範圍決策在 grill 裡就做完了:pitch 不整合、使用者圖片不做、全面 soft delete 不擴;要做的則是搜尋對等與空白畫布。

“The spec acts like a destination document... tickets are essentially about scoping each individual session.”

spec 是目的地文件;tickets 則是在界定每一個 session 的範圍。

44:02 Matt Pocock

判斷 04這次 spec 的 out-of-scope 該包含哪幾項?(可多選,勾完按下方按鈕)

不做這份的代價:沒有 out-of-scope,agent 會把「順手能做」的都做進來;你想拒絕時,已經在 review 21,000 行。

逐字稿原文(節錄)

27:17“let's not worry about pitches. They're kind of soft deprecated.”

27:11“no user images in the thumbnail diagram.”

31:44“yeah, let's not overscope this.”

46:04“a bunch of user stories here, around 47 of them... implementation decisions... including stuff that's out of scope.”

DOC 05

tickets

收掉的不確定:先做哪一塊?範圍多大?

未面對

spec 之後是 to-ticket:9 張票,每張標 blocked-by,彼此可平行。第一張不是功能,是 pre-factor——把 diagram playground 的編輯器抽成共用元件。

每一張票只交給一個 sub-agent,範圍就是那張票。

“Each sub-agent we're going to run is going to be handed a single ticket, and that's going to be the scope of its piece of work.”

每個要跑的 sub-agent 只會拿到一張票,那張票就是它這塊工作的範圍。

44:22 Matt Pocock

判斷 05九張票裡,哪一張必須先做?

不做這份的代價:一個 agent 扛整個 21,000 行;平行化失效,失敗也沒有乾淨的邊界。

逐字稿原文(節錄)

44:29“the first one is like a pre-factor, like extracting the shared diagram editor into a shared component. Really useful. That's going to be very handy later.”

46:26“these can be parallelized.”

DOC 06

stacked PRs + feature flag

收掉的不確定:合併風險怎麼拆?

未面對

21,000 行的 PR 不能 review。Matt 要求拆成 stacked diffs:前面每一張都是 two-way door(可合、可退),最後才是 one-way door。實際順序:文件(glossary+ADR)、抽出共用編輯器、reducer 測試、magic conditionals 收斂、功能主體藏在 flag 後、additive migration、開 flag。

功能上線前,新舊實作並行。

“A two-way door means you can merge it and then revert it anytime... a one-way door is a PR that is merged and then is very difficult to unmerge.”

雙向門:合併後隨時能退;單向門:合併後很難回頭。

49:28 Matt Pocock

判斷 06以下哪個是 Matt 的拆法順序?

不做這份的代價:一張巨型單向門,出事只能整包 revert,或硬著頭皮 forward-fix。

逐字稿原文(節錄)

48:53“I think I want you to break it into smaller chunks using stacked diffs.”

50:10“utilize feature flags to make the thumbnail diagram available and then pull it back later”

57:06“out of all of these PRs, the only one where I would consider reviewing mandatory is this one... an additive migration”

DOC 07

lint rules / coding standards

收掉的不確定:品味怎麼變成規則?

未面對

review 的真正產物不是 comment,是規則。這輪他留下 12 條意見,全部不阻擋合併;但每一條都在問:能不能變成 deterministic 的檢查?as 禁用(存量約 2,000 處,用 ratchet)、intersection 改 interface extends(oxlint 沒規則就寫 parser)、useSearchParams 換型別安全 helper、裸 fetch 換 typed client。

只有「註解太多」找不到 lint 規則——它進的是 coding standards,分資料夾、分階段禁。

“I'm not just interested in what the code does, I'm also interested in the system that produced this code.”

我在乎的不只是這段程式碼做了什麼,還有「產出這段程式碼的系統」長什麼樣。

52:50 Matt Pocock

判斷 07以下哪一條 review 發現「不該」變成 lint 規則?

不做這份的代價:品味留在 review 裡,下一個 session 的 agent 重新犯一次;你只是重複收同樣的 comment。

逐字稿原文(節錄)

55:08“find a lint rule... a deterministic rule that we're not necessarily going to impose on day one, but we're going to ratchet it up over time.”

1:01:04“too many comments... here no lint rule fits.”

1:04:43“they allow workarounds to proliferate and the comments kind of act as a fig leaf.”

DOC 08

retro issue list

收掉的不確定:系統哪裡在扯後腿?

未面對

retro skill 讀 30 多個 session 紀錄、用 gh 拉回 12 條 review comment,然後給出一個殘酷的根因:「你的 12 條意見,standards 一條都沒寫;現有文件教的還是相反的 pattern;main 上已經有數千個實例。」

輸出是排序過的改進清單——有些改專案,有些改 Matt 自己的 skills:原型程式碼被直接複製、沒有重新實作,這條就開在 skills repo。

“All 12 of my review comments have one root cause. Nothing in the CVM's written standards cover your points. The existing code in the docs model do the opposite.”

我的 12 條意見只有一個根因:寫下來的 standards 一條都沒涵蓋;現有文件示範的還是相反的做法。

59:49 Matt Pocock

判斷 08以下哪一條 retro 發現,該開在 Matt 的 skills repo,而不是專案 repo?

不做這份的代價:同一個坑每一輪重踩;skills 不會進化,你也永遠在收同一種 comment。

逐字稿原文(節錄)

59:19“sending agents through the 30 odd session transcripts and your 12 review comments... it's going to come back with a ranked list.”

1:02:02“prototype code was copied and not reimplemented.”

1:02:14“could you raise an issue on the Matt Pocock skills repo? By the way, this is often how my skills get improved.”

結算

你的判斷 vs Matt 的判斷

人最值錢的地方在兩端:前期對齊、尾段品味。中間交給 agent,不是因為中間不重要,而是因為兩端做足了,中間才敢不看。1:08:35

01

講 WHY,不講 WHAT

給原因,agent 才有創作空間;給規格,它只會照做,錯過更好的解。
5:36

02

語言即資料模型

先有名字,才有表;有表才有模組。詞彙進了 context,一句話勝過一段規格。
19:42

03

決策空間歸零,才敢 AFK

spec 定終點、tickets 定範圍、原型定手感——它沒有東西要猜,你才敢離開。
45:45

“Grilling and retro are really the two main points at which I interact with the system.” — 1:08:59

附錄

八份文件索引

#文件收掉的不確定影片位置
01glossary.md這個東西叫什麼?10:33
02ADR 003 / ADR 060為什麼當初這樣決定?16:17 · 21:13
03prototype branch用起來是什麼感覺?33:16
04spec(GitHub issue)做到哪算完成?哪些不做?43:00 · 46:04
05tickets(9 張)先後順序與每個 session 的範圍?43:53 · 46:23
06stacked PRs + feature flag合併風險怎麼拆?48:53 · 50:10
07lint rules / coding standards品味怎麼變成規則?52:50 · 56:08
08retro issue list系統哪裡在扯後腿?58:30 · 1:02:02

Skills 速查

Skill用途
grill-with-docs大型功能開工前的深度拷問:需求、領域語言、資料模型、邊界全部問清楚。
wayfindergrill 到一半發現比想像更大時,升級成跨多個 session 的長程構想管理。
prototype一次生成多個 UI 變體,選定一個後持續迭代。
to-spec把 grilling 對話寫成正式 spec(GitHub issue:user stories、決策、out-of-scope)。使用者手動呼叫,須放在輸入開頭。
to-ticket把 spec 拆成標注 blocked-by、可平行執行的 tickets。
implement-spec讀 spec+tickets+glossary+原型,平行 sub-agent 實作,產出單一 PR(AFK 約 45–60 分鐘)。
code-reviewagent 依 coding standards 自審 PR,回報硬違規與 scope creep 並自行修復。
retro掃全部 agent session 紀錄+人類 review comments,產出排序過的環境改進清單。
verify-cvm在瀏覽器裡實際驗證 CVM 的實作(影片中提到、用於 QA)。

術語表

術語定義
diagram一群 diagram snapshots 的集合(教學用的圖表實體)。
diagram snapshotclip 拍攝當下圖表的拷貝,不可變。
active diagram作者目前正在畫的圖。
preserved snapshot即使沒有 clip 使用,仍保留在圖表 timeline 裡的 snapshot。
thumbnail影片在 YouTube 上顯示的縮圖。
cutout去背後放在圖表上的作者大頭照。
thumbnail diagram縮圖專屬的圖。名字像 diagram,但靠 ADR 記錄它不是 diagram。
ADRArchitecture Decision Record:記錄「為什麼」的決策文件,與 glossary(記「是什麼」)互補。
soft delete以標記(如 archived=true)代替真刪除,資料可救回。
two-way / one-way door可隨時 merge/revert 的 PR vs 動到資料、外部服務而難以回頭的 PR。
stacked diffs把巨型 PR 拆成一串互相疊著的小 PR,逐張 review 與合併。
ratchet(棘輪)先立 lint 規則、現存違規漸進清零:只許變好、不許變壞。
smart / dumb zonecontext 較小時 agent 品質較佳;約 150k tokens 後品質下滑(概念出自 Dex Horthy)。
glossary全 repo 的領域詞彙表;進 agent context 後,讓簡短句子傳達豐富語意。

時間戳索引

時間發生了什麼
1:32摩擦起點:縮圖流程要切視圖、重截圖
3:00決策樹:diff 大小 → one-shot / grill / wayfinder
5:36講 WHY,不講 WHAT
10:33glossary.md:560 行的領域詞彙
12:13「不是 diagram,是單一 snapshot」
14:09主導權:是你在對話,不是它在拷問你
16:53Chesterton's Fence
18:18混流/不混流的糾結
22:39Scenario testing 驗證命名
30:07Soft delete 作為預設
33:16三個原型變體上桌
39:48260k tokens 的 sub-agent 已在 dumb zone
43:00to-spec:把對話變成 GitHub issue
45:45決策越多,選錯的機率越高
48:53拆 stacked diffs 的要求
52:50審「產生程式碼的系統」
58:30retro 開跑
59:49根因:standards 沒涵蓋、文件教相反
1:04:20註解審計:940 行可刪
1:08:35人最值錢的地方在兩端

來源與標記:本頁內容來自 YouTube 影片逐字稿(2,013 行);英文引文取自自動字幕,僅做最小整理(補標點、去口頭贅字)。時間戳可點回原片。PR 的內容、順序與票數依口述重建,屬近似;標題等 metadata 取自 YouTube oEmbed。尚未收錄:Smart / Dumb Zone 的機制細節、ghost face 與白邊 bug 的技術過程——它們在影片裡很精彩,但不是這頁的主軸。