跳到正文
Simon Willison·AI 评分56

Simon Willison 引述 Geoffrey Huntley 关于用 pre-commit hook 约束智能体编码的观点

Quoting Geoffrey Huntley

AI 导读

Geoffrey Huntley 表示,若智能体未使用他的 diagnostics library,更新 AGENTS.md 仍会留下差异并逐渐偏离,因此他改用 pre-commit hook 检查 git diff 中绕过该库、直接调用 observability modules 的代码。检查失败时,hook 会阻止提交并注入提示,要求智能体使用 diagnostics library。

来源:Simon Willison · simonwillison.net