Geoffrey Huntley: enforce diagnostics library usage with a pre-commit hook, not AGENTS.md
Simon Willison · rss · 2026-10-13
Simon Willison quotes Geoffrey Huntley's technique from "nobody should type code by hand anymore": when an agent bypasses your diagnostics library, editing AGENTS.md still leaves drift. Instead, write a pre-commit hook that inspects the git diff for direct calls to observability modules that bypass the diagnostics module — fail the commit and inject a prompt telling the agent to use the library. "Boom: it's ten out of ten." A textbook case of replacing prompt constraints with deterministic engineering guardrails.
More from coding & agent
- How Every cut its AI agent's token costs: caching, less reading, Opus 5.5 — every · 2026-10-13
- 81% of engineering leaders hit AI-related production incidents in six months — sanjaykalra · 2026-10-13
- Agent Buddy: an open-source ESP32 desk device that watches your coding agents — DanWahlin · 2026-10-13
- mitsuhiko on mixing models: GPT 5.6 works, Astra didn't make the cut — mitsuhiko · 2026-10-13
- Full-chain Chrome exploit with all bugs found by agents in six days — moyix · 2026-10-13
- RCM agent build: 59/60 accurate, $250/month, 6 weeks on safety not tokens — alex_verem · 2026-10-13