技巧

用 AGENTS.md 加“防跑偏”指令,治 coding agent 过度纠结

精选理由

写代码的 agent 完成正事之后开始无限纠结?这位用户在 AGENTS.md 里加一句防跑偏指令,挺实用的思路。

一条来自 X 用户的实战分享指出,coding agent 前期准备和核心项目执行很高效,10 分钟内能完成核心工作,但之后容易陷入无意义的反复微调。作者的应对方法是在 AGENTS.md 中加入类似“SPAWN AN ANTI-RABBITHOLE GOVERNOR”的指令,让 agent 自我约束、避免跑偏。

原文 · Teortaxes

It really doesn't It thinks a good deal, then does all of the core of the project in <10 minutes. Its initial preparations are usually very competent… And it instantly falls into useless OCD fiddling. I need to add something like "SPAWN AN ANTI-RABBITHOLE GOVERNOR!" to AGENTS.md https://t.co/SqcwSZZy7L