Simon Willison 博客· Simon Willison 博客·· 4 小时前AI 评分62
Geoffrey Huntley 提出用 pre-commit hook 约束编码智能体调用诊断库
Geoffrey Huntley:用 pre-commit hook 约束编码智能体调用诊断库
AI 导读
Geoffrey Huntley 提出,当编码智能体不使用他的诊断库时,与其更新 AGENTS.md(仍会有偏差和漂移),不如写一个 pre-commit hook 检查 git diff 中绕过诊断模块直接调用可观测性模块的代码,失败即拒绝提交并向智能体注入提示词要求其使用诊断库,他称效果从失败提升到十分满分。Simon Willison 在博客中引述了这段话。
来源:Simon Willison 博客 · simonwillison.net