Anthropic Claude Code 团队工程师 Thariq Shihipar(@trq212)于 5/19 在 X 平台分享了他近期常用的一条 Prompt:要求 AI Agent 在编写程序的同时,实时维护一份「implementation notes」文件,将自主决策与设计取舍逐一记录。该推文累计获得 951 个赞、44 次转发,引发了 AI 工程社群的广泛讨论。
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 在规格外做的判断。
Thariq 是 Anthropic 内部 Claude Code 团队工程师、X 帐号 23 万+ 追随者。当他公开分享日常工作流,等于透露 Anthropic 对「agent 自主性 vs 人类审查」的内部设计倾向—倾向 agent 主动暴露决策、而非被动隐藏。实务应用上,这份 implementation-notes 可作为 PR review 补充、抓 hallucination、debugging 回溯。Thariq 同时也是「以 HTML 取代 Markdown 作为规格与互动介面」的积极倡议者;本次 prompt 范例直接使用 implementation-notes.html、也是这个方向的延伸。