Simon Willison·· 2 小时前
Geoffrey Huntley 分享用 pre-commit hook 约束 AI 智能体调用诊断库的方法
Quoting Geoffrey Huntley
SI 导读
Geoffrey Huntley 提出用 pre-commit hook 检查 git diff 中绕过诊断模块的直接调用,失败提交并注入提示词让 agent 使用诊断库。该方法使 agent 使用诊断库达到 ten out of ten。
SI 评分69
来源:Simon Willison · simonwillison.net