跳到正文
Simon Willison·· 4 小时前AI 评分62

Simon Willison 引用 Geoffrey Huntley:用 pre-commit hook 让 agent 遵守 diagnostics 库规范

Quoting Geoffrey Huntley

AI 导读

Simon Willison 引用 Geoffrey Huntley 的话:与其手动更新 AGENTS.md 并接受漂移,不如写一个 pre-commit hook 检查 git diff,拦截绕过 diagnostics 模块直接调用 observability 模块的提交,并注入 prompt 让 agent 改用 diagnostics 库;这样 agent 的遵守情况变成十次全对。

来源:Simon Willison · simonwillison.net