跳到正文
Simon Willison·· 23 天前AI 评分65

Geoffrey Huntley:用 pre-commit hook 约束 AI 智能体遵守工程规范

Quoting Geoffrey Huntley

AI 导读

Geoffrey Huntley 提出,与其依赖 AGENTS.md 让智能体使用诊断库并面临漂移,不如写一个 pre-commit hook,检查 git diff 中绕过诊断模块直接调用可观测性模块的代码,失败即阻断提交并注入提示词要求智能体改用诊断库,他称效果从十分制跃升为十分。Simon Willison 转引了这段观点。

来源:Simon Willison · simonwillison.net