Hooks for rules with no exceptions
Lesson 19 of 27 · Guardrails · 2 min Get the course to watchYour instruction file says never delete files recursively. The agent follows it again and again. Then one day, context is tight and the rule slips out of view. For a rule with no exceptions, you want something that does not depend on the model remembering.
The rest of this lesson
- What a hook is
- The script
- Register it
- Test it like code
- Where it is weak
The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Engineering with Coding Agents.