Simon Willison·· 3 天前AI 评分57
Geoffrey Huntley 用 pre-commit hook 约束 Agent 使用诊断库
Quoting Geoffrey Huntley
AI 导读
Geoffrey Huntley 提出编写 pre-commit hook,检查 git diff 是否直接调用 observability 模块而绕过 diagnostics library,并在提交失败时注入提示,要求 Agent 使用诊断库。作者称这样可将执行效果提升到 ten out of ten。
来源:Simon Willison · simonwillison.net