跳到正文
原文
Simon Willison·· 3 小时前AI 评分41

Geoffrey Huntley:用 pre-commit hook 约束 AI agent 使用 diagnostics library

Quoting Geoffrey Huntley

AI 导读

Geoffrey Huntley分享了一种做法:用 pre-commit hook 检查 git diff,拦截绕过 diagnostics module、直接调用 observability modules 的提交。钩子会使提交失败并注入提示词,要求 AI agent 使用 diagnostics library;他还称“没人应该再手写代码”。

来源:Simon Willison · simonwillison.net