⌨️InstructionsLoaded Hook
Also known as InstructionsLoaded, load_reason
The event when a rule file is loaded for Claude.
Think of it like
It is like a library card. It logs each book you take out.
Example
Lucy wonders why Claude follows a rule she forgot about. Her hook logs each file, and she finds an old CLAUDE.md in a subfolder.
Why it matters
It shows which notes Claude is truly reading.
Definition
Example code
json
{
"hooks": {
"InstructionsLoaded": [
{ "matcher": "path_glob_match|nested_traversal", "hooks": [{ "type": "command", "command": "./log-instructions.sh" }] }
]
}
}Common mistake
Key takeaways
- 1When a file loads. CLAUDE.md, rules.
- 2Now or later. Five reasons.
- 3Log only. No block.