跳到正文
原文
Simon Willison·· 3 天前AI 评分15

Geoffrey Huntley:用 pre-commit hook 强制 AI 智能体调用诊断库

Quoting Geoffrey Huntley

AI 导读

Geoffrey Huntley 提出用 pre-commit hook 检查 git diff 中绕过诊断模块、直接调用可观测性模块的代码,一旦发现就拒绝提交并注入提示词,要求 AI 智能体改用诊断库。他认为仅靠更新 AGENTS.md 仍会有偏差并逐渐漂移,而这种方式能让智能体表现达到十全十美。

来源:Simon Willison · simonwillison.net