Skip to content

Back to the catalog

simonwillison.netarticle

Quoting Geoffrey Huntley

Simon Willison quotes Geoffrey Huntley on keeping coding agents compliant with a project's conventions. Instead of updating AGENTS.md, which drifts, he adds a pre-commit hook that scans the git diff for direct calls to observability modules that bypass his diagnostics library. The hook fails the commit and injects a prompt telling the agent to use the library, which he says took compliance to ten out of ten.

TL;DR Huntley enforces coding-agent conventions with a pre-commit hook that fails the commit and injects a corrective prompt, rather than relying on AGENTS.md.

Organisations named here

  • Geoffrey Huntley
  • Simon Willison

Technologies named here

  • AGENTS.md
  • Pre-commit hook
  • Diagnostics library
  • Git