{"slug": "quoting-geoffrey-huntley", "title": "Quoting Geoffrey Huntley", "summary": "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.", "body_md": "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.\n\n— [Geoffrey Huntley](https://ghuntley.com/agency/), nobody should type code by hand anymore. here's what's left.\n\nTags: [coding-agents](https://simonwillison.net/tags/coding-agents), [generative-ai](https://simonwillison.net/tags/generative-ai), [git](https://simonwillison.net/tags/git), [agentic-engineering](https://simonwillison.net/tags/agentic-engineering), [ai](https://simonwillison.net/tags/ai), [geoffrey-huntley](https://simonwillison.net/tags/geoffrey-huntley), [llms](https://simonwillison.net/tags/llms)", "url": "https://wpnews.pro/news/quoting-geoffrey-huntley", "canonical_source": "https://simonwillison.net/2026/Oct/13/geoffrey-huntley/", "published_at": "2026-10-13 13:32:00+00:00", "updated_at": "2026-10-15 05:17:45.365546+00:00", "lang": "en", "topics": ["ai-agents", "generative-ai", "ai-tools", "developer-tools"], "entities": ["Geoffrey Huntley", "git"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/quoting-geoffrey-huntley", "markdown": "https://wpnews.pro/news/quoting-geoffrey-huntley.md", "text": "https://wpnews.pro/news/quoting-geoffrey-huntley.txt", "jsonld": "https://wpnews.pro/news/quoting-geoffrey-huntley.jsonld"}}