Alex Volkov· @altryne · X·· 15 天前AI 评分48
AI 导读
Alex Volkov 提出将提示词“你对所做的工作感到自豪吗?”(Are you proud of the work you did?)视作新的“逐步思考”(let's think step by step)。该观点转发引述了 @shadcn 的建议,后者此前表示在智能体编写代码前询问“你确定吗?”(are you sure?)能每次都带来更好的 API 与更简洁的代码。
正文 · AI 翻译
“你为自己所做的工作感到骄傲吗?”
这是新版 "let's think step by step"
一个被低估的技巧:在你的 agent 写任何代码之前,问一句“你确定吗?”API 更好。代码更干净。每次都管用。
原文
underrated tip: before your agent writes any code, ask “are you sure?” Better APIs. Cleaner code. Every time.
来源:Alex Volkov · x.com