Geoffrey Huntley:用 pre-commit 钩子约束 Agent 使用诊断库
Quoting Geoffrey Huntley
阅读原文
本站未展示全文,请前往来源网站阅读。
AI 导读
Geoffrey Huntley 提出,与其靠手动维护 AGENTS.md 让 Agent 使用诊断库,不如写一个 pre-commit 钩子检查 git diff 中绕过诊断模块直接调用可观测性模块的代码,直接让提交失败并注入提示词要求 Agent 改用诊断库。
来源:Simon Willison · simonwillison.net