Anthropic Thariq 热门 prompt:AI写程序边记笔记
2026-05-19分类:人工智能 阅读()

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、也是这个方向的延伸。
Tags:
