cd /news/ai-agents/quoting-geoffrey-huntley · home › topics › ai-agents › article
[ARTICLE · art-150306] src=simonwillison.net ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Quoting Geoffrey Huntley

Geoffrey Huntley described a technique for enforcing coding-agent behavior by writing a pre-commit hook that checks the git diff for direct calls to observability modules that bypass his diagnostics module, failing the commit and injecting a prompt telling the agent to use the diagnostics library. Huntley said the approach took the agent from a persistent drift problem to "ten out of ten," arguing that introspecting and updating AGENTS.md still leaves a delta that drifts over time.

read1 min views1 publishedOct 13, 2026

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

── more in #ai-agents 4 stories · sorted by recency
── more on @geoffrey huntley 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/quoting-geoffrey-hun…] indexed:0 read:1min 2026-10-13 · —