continuing my HTML era, I had so much fun talking with Claire at Code w/ Claude about staying in the loop with long running agents
继续我的 HTML 时代,我在 Code w/ Claude 和 Claire 聊如何在长时间运行的 agent(代理)执行过程中持续掌握进展,聊得特别开心
okay this is going kinda viral and tbh my original text was kind of messy, so here's a second pass with the help of Claude: -- Implement <SPEC>. As you work maintain a running implementation-notes.html file that captures anything I should know about how the implementation diverges from or interprets the spec, including: - Design decisions: choices you made where the spec was ambiguous - Deviations: places where you intentionally departed from the spec, and why - Tradeoffs: alternatives you considered and why you picked what you did - Open questions: anything you'd want me to confirm or revise
好吧,这条内容有点要 viral(爆火)了,说实话我原来的文本也确实有点乱,所以这是在 Claude 帮助下整理出的第二版:——实现 <SPEC>。在工作过程中,持续维护一个 implementation-notes.html 文件,记录任何我需要了解的、关于实现如何偏离 spec(规范)或如何解释 spec 的内容,包括:- Design decisions(设计决策):当 spec 存在歧义时你做出的选择 - Deviations(偏离项):你有意不按 spec 来实现的地方,以及原因 - Tradeoffs(权衡):你考虑过哪些替代方案,以及为什么选择现在的做法 - Open questions(待确认问题):任何你希望我确认或修改的事项
as much as you spec there are always still ambiguities and unknown unknowns that come up and this gives the model a good out to make decisions but keep you in the loop
不管你把 spec 写得多详细,总还是会出现各种歧义和未知中的未知,而这样做能让 model(模型)在做决策时有一个很好的出口,同时又能让你始终 stay in the loop(掌握进展)