Simon Willison·· 13 天前AI 评分63
Geoffrey Huntley 分享通过 git 钩子强制 Agent 规范编码的方法
Quoting Geoffrey Huntley
AI 导读
Geoffrey Huntley 提出通过编写 git pre-commit hook 来检测代码差异,若发现 Agent 直接调用绕过诊断模块的观测接口,则拦截提交并注入提示词,强制要求其使用指定的诊断库,从而提升 Agent 的代码输出质量。
来源:Simon Willison · simonwillison.net