Simon Willison·· 4 小时前AI 评分49
Geoffrey Huntley 谈用 pre-commit hook 约束 AI 智能体使用诊断库
Quoting Geoffrey Huntley
AI 导读
Geoffrey Huntley 分享了一个让 AI 智能体使用诊断库的做法:编写 pre-commit hook 检查 git diff,拦截绕过诊断库、直接调用 observability 模块的代码。检查失败时,hook 会阻止提交并注入提示词,要求智能体使用诊断库;他称效果达到“十 out of ten”。
来源:Simon Willison · simonwillison.net