Subagent Lifecycle Logger
Settings hooks 63
Audit trail for subagent invocations using SubagentStart and SubagentStop lifecycle hooks. Every time Claude spawns or finishes a subagent, a timestamped JSON entry is appended to .claude/agent-log.jsonl — recording the agent name, event type, and ISO timestamp. Provides an offline, zero-dependency log for debugging multi-agent workflows, tracking which agents ran and in what order, and estimating AI usage per session.
npx claude-code-templates@latest --setting hooks/subagent-lifecycle-logger claude-code — subagent-lifecycle-logger
Content
JSON
{
"description": "Audit trail for subagent invocations using SubagentStart and SubagentStop lifecy..."
"hooks": {
"SubagentStart": [1 item]
"SubagentStop": [1 item]
}
}