Vibeleaderboard
← All Intel
Intel / article

Quoting Geoffrey Huntley

Source
simonwillison.net
Date

Context

A coding convention becomes enforceable when breaking it stops a commit and tells the agent what to fix. In a passage quoted by Simon Willison, Geoffrey Huntley explains that writing the rule into , the agents read, still leaves room for drift. Huntley instead writes a pre-commit , a check that runs before changes are recorded in . It inspects the diff for direct calls to observability modules that bypass the project's diagnostics library, fails the commit, and gives the agent a prompt telling it to use the library. Huntley describes compliance then reaching ten out of ten. The mechanism is immediate, specific feedback the agent can act on. The account describes one developer's experience, not a measured study.

Terms in this piece · Glossary
  • Repository instructions — Versioned guidance that tells agents how a repository is structured and verified.
  • Instruction file — A text file whose instructions a harness loads into the model’s context, such as AGENTS.md or CLAUDE.md.
  • agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.
  • Git and version control — A system for recording and comparing changes to a codebase.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source simonwillison.net
Recommended reads