Stop writing rules in AGENTS.md: use agent hooks and nano-staged instead (opens in new tab)
Move LLM safeguards out of AGENTS.md: how agent hooks plus nano-staged run linters on changed files only, cut tokens, and tighten the agent's feedback loop
Read the original article