Simon Willison·· 3 小时前AI 评分66
Simon Willison 引用 Geoffrey Huntley 谈用 pre-commit hook 约束编码智能体
Quoting Geoffrey Huntley
AI 导读
Simon Willison 摘录 Geoffrey Huntley 分享的做法,用 pre-commit hook 检查 git diff 里绕过诊断模块的可观测性调用。发现这类直接调用就让提交失败,并向编码智能体注入提示词,要求它改用诊断库;Huntley 称这样处理后效果一下子变成十分。
来源:Simon Willison · simonwillison.net