Anthropic Thariq 熱門 prompt:AI 寫程式邊記筆記

Elponcrab
分享
Anthropic Thariq 熱門 prompt:AI 寫程式邊記筆記

Anthropic Claude Code 團隊工程師 Thariq Shihipar(@trq212)5/19 在 X 分享他自己最近常用的一個 prompt,要求 AI agent 寫程式的同時、邊寫邊維護一份「implementation notes」文件、把自主決策與設計取捨記下來。推文累積 951 個讚、44 次轉發,引發 AI 工程社群討論。

原始 prompt:實作的同時,寫下決策、改動與取捨

Thariq 的 prompt 原文:「implement <SPEC> and while you do, keep a running implementation-notes.html file (or markdown) with decisions you had to make weren’t in the spec, things you had to change, tradeoffs you had to make or anything else I should know.」翻譯:「實作 <SPEC>,同時邊做邊維護一份 implementation-notes.html(或 markdown)檔,記下你做了哪些 spec 沒寫的決策、你改動了什麼、做了什麼權衡、以及任何我應該知道的事。」這個技巧把 agent 自主行為「黑盒子白盒化」,讓人類審查者能追蹤 agent 在規格外做的判斷。

為什麼這條 prompt 來自 Anthropic 視角更有份量

Thariq 是 Anthropic 內部 Claude Code 團隊工程師、X 帳號 23 萬+ 追隨者。當他公開分享日常工作流,等於透露 Anthropic 對「agent 自主性 vs 人類審查」的內部設計傾向—傾向 agent 主動暴露決策、而非被動隱藏。實務應用上,這份 implementation-notes 可作為 PR review 補充、抓 hallucination、debugging 回溯。Thariq 同時也是「以 HTML 取代 Markdown 作為規格與互動介面」的積極倡議者;本次 prompt 範例直接使用 implementation-notes.html、也是這個方向的延伸。

廣告 - 內文未完請往下捲動

風險提示

加密貨幣投資具有高度風險,其價格可能波動劇烈,您可能損失全部本金。請謹慎評估風險。