Claude Code SettingHooks5 installs

Subagent Lifecycle Logger

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 with the Claude Code Templates CLI
$ npx claude-code-templates@latest --setting="hooks/subagent-lifecycle-logger" --yes

Requires Claude Code. The command adds this setting to your project's .claudedirectory — nothing runs on ToolZip's servers.

What's inside this setting

Component source

{

"description": "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.",

"hooks": {

"SubagentStart": [

{

"hooks": [

{

"type": "command",

"command": "mkdir -p .claude && printf '{\"event\":\"SubagentStart\",\"agent\":\"%s\",\"ts\":\"%s\"}\\n' \"${CLAUDE_AGENT_NAME:-unknown}\" \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\" >> .claude/agent-log.jsonl"

}

]

}

],

"SubagentStop": [

{

"hooks": [

{

"type": "command",

"command": "mkdir -p .claude && printf '{\"event\":\"SubagentStop\",\"agent\":\"%s\",\"ts\":\"%s\"}\\n' \"${CLAUDE_AGENT_NAME:-unknown}\" \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\" >> .claude/agent-log.jsonl"

}

]

}

]

}

}

Type
Setting
Category
Hooks
Installs
5
Source
GitHub ↗

Related Claude Code Settings

SettingStatusline

Context Monitor

Real-time Claude Code context usage monitor with visual progress bars, color-coded alerts, session analytics (cost, duration, lines changed), and auto-compact warnings. Tracks conversation context consumption and provides visual feedback to prevent session interruptions.

1.6k installsView →
SettingEnvironment

Performance Optimization

Optimize Claude Code performance by adjusting token limits and disabling non-essential features. Reduces API costs and improves response times for development workflows focused on code quality over conversational features.

710 installsView →
SettingEnvironment

Development Utils

Enhanced development environment configuration with useful utilities and debugging features. Includes built-in ripgrep usage, terminal title updates, and directory maintenance for improved developer experience.

406 installsView →
SettingStatusline

Colorful Statusline

Colorful status line with ANSI color codes for enhanced visual appeal. Uses colors to distinguish between different information types: blue for model, green for directory, yellow for git branch.

395 installsView →
SettingPermissions

Development Mode

Comprehensive permissions for active development. Allows most development tools and operations while maintaining security boundaries. Ideal for trusted development environments where productivity is prioritized.

323 installsView →
SettingPermissions

Allow Npm Commands

Allow common npm development commands (lint, test, build, start).

275 installsView →

Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.