Don't rely on instructions; use Agent Hooks to enforce guardrails (opens in new tab)
This post is for developers who use AGENTS.md or CLAUDE.md to provide guardrails for agent-generated code, but find that the agent sometimes ignores rules.
Read the original article