Back to Settings

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.

Install Command
npx claude-code-templates@latest --setting hooks/subagent-lifecycle-logger
View on GitHub
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]
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.