# coding-agents 257

Published articles for coding-agents 257.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Using a pre-commit hook to keep coding agents on a diagnostics library

DevFeed: [Using a pre-commit hook to keep coding agents on a diagnostics library](<https://devfeed.tech/articles/quoting-geoffrey-huntley-85925.md>)

Original publisher: [Read original article](<https://simonwillison.net/2026/Oct/13/geoffrey-huntley/>)

Author: Simon Willison

Published: 2026-10-13T13:32:00Z

Content type: article

Language: en

Sources: [Simon Willison's Weblog](<https://devfeed.tech/sources/simon-willison-s-weblog.md>)

Topics: [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [pre-commit](<https://devfeed.tech/topics/pre-commit.md>), [agent observability](<https://devfeed.tech/topics/agent-observability.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-engineering](<https://devfeed.tech/tags/agentic-engineering.md>), [agentic-engineering-65](<https://devfeed.tech/tags/agentic-engineering-65.md>), [agents-md](<https://devfeed.tech/tags/agents-md.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-2-276](<https://devfeed.tech/tags/ai-2-276.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [coding-agents-257](<https://devfeed.tech/tags/coding-agents-257.md>), [commit](<https://devfeed.tech/tags/commit.md>), [diagnostics](<https://devfeed.tech/tags/diagnostics.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [engineering-ai](<https://devfeed.tech/tags/engineering-ai.md>), [fail](<https://devfeed.tech/tags/fail.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [generative-ai-2-018](<https://devfeed.tech/tags/generative-ai-2-018.md>), [geoffrey-huntley](<https://devfeed.tech/tags/geoffrey-huntley.md>), [geoffrey-huntley-4](<https://devfeed.tech/tags/geoffrey-huntley-4.md>), [git](<https://devfeed.tech/tags/git.md>), [git-57](<https://devfeed.tech/tags/git-57.md>), [library](<https://devfeed.tech/tags/library.md>), [llms](<https://devfeed.tech/tags/llms.md>), [llms-1-984](<https://devfeed.tech/tags/llms-1-984.md>), [module](<https://devfeed.tech/tags/module.md>), [modules](<https://devfeed.tech/tags/modules.md>), [observability](<https://devfeed.tech/tags/observability.md>), [pre-commit](<https://devfeed.tech/tags/pre-commit.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [type](<https://devfeed.tech/tags/type.md>)

### AI overview

Geoffrey Huntley describes using a pre-commit hook to detect when a coding agent calls observability modules directly instead of using a diagnostics library. The hook fails the commit and prompts the agent to use the library.

### Source excerpt

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, nobody should type code by hand anymore. here's what's left. Tags: coding-agents, generative-ai, git, agentic-engineering, ai, geoffrey-huntley, llms