⌨️Agent Hook
Also known as type: agent
A hook that sends a helper to look at files. Then it answers.
Think of it like
It is like you send a helper to go and look. Then they say yes or no.
Example
Emma wants Claude to stop only when every new file has a test. Her agent hook looks through the folder before it says yes.
Why it matters
Definition
Example code
json
{
"type": "agent",
"prompt": "Check that every changed file has a matching test file."
}Common mistake
Key takeaways
- 1Starts a helper. With tools.
- 2Up to 50 turns. Then ok or not.
- 3Experimental. May change.