⌨️SubagentStart Hook
Also known as SubagentStart
The event when Claude starts a helper agent.
Think of it like
It is like a sheet at the door. Each helper signs it when they come in.
Example
Lucy wants to know how often Claude hands work to her reviewer subagent. A SubagentStart hook counts each one.
Why it matters
Subagents work out of sight. This is a window onto when they begin.
Definition
Example code
json
{
"hooks": {
"SubagentStart": [
{ "matcher": "code-reviewer", "hooks": [{ "type": "command", "command": "./log-agent.sh start" }] }
]
}
}Common mistake
Key takeaways
- 1When a helper starts. Or resumes.
- 2Match the name. Explore, Plan, yours.
- 3Gets an id. For logs.