Simon Willison · Engineering Notes·· 14 小时前AI 评分37
Simon Willison 引述 Geoffrey Huntley:用 pre-commit hook 阻止智能体绕过诊断库
Quoting Geoffrey Huntley
AI 导读
Geoffrey Huntley 用 pre-commit hook 检查 git diff,拦截绕过其诊断库、直接调用 observability 模块的代码。检查失败时,钩子会向智能体注入使用诊断库的提示。
来源:Simon Willison · Engineering Notes · simonwillison.net