Quoting Geoffrey Huntley
如果代理没有使用我的诊断库,我可以进行内省并更新 AGENTS.md,但仍然存在差异,而且会逐渐偏离。相反,我编写了一个提交前钩子,用于检查 git diff 中直接调用可观测性模块而绕过我的诊断模块的代码。砰!提交失败,并注入一个提示,告诉代理使用诊断库。突然之间,成功率变成了十分十全。——Geoffrey Huntley,没有人应该再手动输入代码了。这就是剩下的内容。标签:coding-agents,generative-ai,git,agentic-engineering,ai,geoffrey-huntley,llms
If the agent isn't using my diagnostics library, I could introspect and update AGENTS.md, but there's still a delta, and it'll drift. Instead, I write a pre-commit hook that checks the git diff for direct calls to observability modules that bypass my diagnostics module. Boom: fail the commit, inject a prompt telling the agent to use the diagnostics library. All of a sudden it's ten out of ten. — Geoffrey Huntley , nobody should type code by hand anymore. here's what's left. Tags: coding-agents , generative-ai , git , agentic-engineering , ai , geoffrey-huntley , llms