Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Geoffrey Huntley on using pre-commit hooks to keep coding agents in line

AI summary

In a quote highlighted on Simon Willison's blog, Geoffrey Huntley describes how he keeps a coding agent using his diagnostics library: if the agent bypasses it, he writes a pre-commit hook that checks the git diff for direct calls to observability modules that skip the diagnostics module. The hook fails the commit and injects a prompt telling the agent to use the diagnostics library, which he says turns the outcome into "ten out of ten." He notes that introspecting and updating AGENTS.md instead still leaves a delta that will drift, and the quote sits alongside his view that nobody should type code by hand anymore.

In-depth insight

It illustrates a low-cost, repeatable pattern for teams using coding agents: enforce project conventions with automated checks rather than relying on prompts alone.

Geoffrey HuntleyAGENTS.md

Original · 1 min readRead the original
Group chat

No comments yet. Start the conversation.