Quoting Geoffrey Huntley

Simon Willison's Blog News

Summary

Simon Willison quotes Geoffrey Huntley on enforcing AI coding agent behavior by using pre-commit hooks that block direct observability calls and inject prompts to make agents use his diagnostics library, achieving 'ten out of ten' results.

No content available
Original Article
View Cached Full Text

Cached at: 10/13/26, 02:46 PM

# A quote from Geoffrey Huntley Source: [https://simonwillison.net/2026/Oct/13/geoffrey-huntley/](https://simonwillison.net/2026/Oct/13/geoffrey-huntley/) 13th October 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](https://ghuntley.com/agency/),nobody should type code by hand anymore\. here's what's left\. Posted[13th October 2026](https://simonwillison.net/2026/Oct/13/)at 1:32 pm ## Recent articles - [Hello Python 3\.15, goodbye 3\.10, and now I can use 3\.11](https://simonwillison.net/2026/Oct/12/python-3-15/)\- 12th October 2026 - [A new feature for my blog, built using my voice](https://simonwillison.net/2026/Oct/9/built-using-my-voice/)\- 9th October 2026 - [Claude Haiku 5\.5](https://simonwillison.net/2026/Oct/7/claude-haiku-5-5/)\- 7th October 2026 - [We're going to need default hard budget caps on pretty much everything](https://simonwillison.net/2026/Oct/3/default-hard-budget-caps/)\- 3rd October 2026 This is a**quotation**collected by Simon Willison, posted on[13th October 2026](https://simonwillison.net/2026/Oct/13/)\. [git57](https://simonwillison.net/tags/git/)[ai2,276](https://simonwillison.net/tags/ai/)[generative\-ai2,018](https://simonwillison.net/tags/generative-ai/)[llms1,984](https://simonwillison.net/tags/llms/)[coding\-agents257](https://simonwillison.net/tags/coding-agents/)[geoffrey\-huntley4](https://simonwillison.net/tags/geoffrey-huntley/)[agentic\-engineering65](https://simonwillison.net/tags/agentic-engineering/)

Similar Articles

Best patterns for evaluating AI agents?

Reddit r/AI_Agents

A practitioner shares their deterministic evaluation harness for QA/coding agents — fixed corpora, injected bugs, hidden tests, and pass^k/token metrics — and asks the community how others balance smoke tests vs full benchmarks, whether LLM-as-a-judge adds value, and whether tools like Promptfoo or DeepEval reduce maintenance burden.

Instructions didn't stop my agents. Checks on the call did. Four patterns that held up

Reddit r/AI_Agents

A practitioner shares four hard guardrail patterns that enforce checks on AI agent tool calls themselves—rather than relying on prompt instructions—validated against two months of Claude Code history, showing that runtime argument validation, ordering constraints, worst-case budget reservation, and explicit refusal messages prevent agents from bypassing instructions.