InfoNewsLLM-specific
Quoting Geoffrey Huntley
- Published
- Record updated
Summary
Geoffrey Huntley describes using a pre-commit hook that inspects the git diff for direct calls to observability modules that bypass his diagnostics module. When it finds one, the hook fails the commit and injects a prompt telling the agent to use the diagnostics library instead.
Mitigation
Write a pre-commit hook that checks the git diff for direct calls to observability modules bypassing the diagnostics module, failing the commit and prompting the agent to use the diagnostics library.