Geoffrey Huntley uses pre-commit hooks to force agents onto his diagnostics library
Overview
Geoffrey Huntley says a pre-commit hook scans the git diff for direct calls to observability modules that bypass his diagnostics library.
When it finds one, the hook fails the commit and injects a prompt telling the agent to use the diagnostics library instead. Huntley says this brought agent compliance to ten out of ten, as reported by Simon Willison.
Written by AI from the articles below · updated Oct 13, 10:12 AM ET
Check the sources:
Article timeline
The articles in this story. Times are ET.
- Simon WillisonBlogGeoffrey Huntley uses pre-commit hooks to force agents onto his diagnostics library
AIGeoffrey Huntley says a pre-commit hook checks 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 diagnostics library instead, which he says brought agent compliance to ten out of ten.
Heat trend
Not enough continuous observations to show a trend yet.