{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block content %}
Comprehensive guide to all available Claude Code hooks
Claude Code Tracker supports comprehensive development intelligence through these hook categories:
Core hooks that every user should enable for basic session and development tracking.
session_start
Triggered when a new Claude Code session begins
session_end
Triggered when a Claude Code session ends
conversation_update
Logs conversation messages and interactions
tool_call
Tracks which tools are used and their performance
file_modified
Records file creations, modifications, and deletions
Monitor system performance and track debugging activities.
Purpose: Record when tools fail with detailed error information.
"tool_error": "curl -X POST http://localhost:8000/api/hooks/tool-error -H 'Content-Type: application/json' -d '{\"tool_name\": \"$TOOL_NAME\", \"error_type\": \"$ERROR_TYPE\", \"error_message\": \"$ERROR_MESSAGE\", \"stack_trace\": \"$STACK_TRACE\"}'"
Variables: $TOOL_NAME
, $ERROR_TYPE
, $ERROR_MESSAGE
, $STACK_TRACE
Purpose: Monitor periods when Claude is processing vs actively working.
"waiting_period_start": "curl -X POST .../api/hooks/waiting-period -d '{\"reason\": \"thinking\", \"context\": \"$CONTEXT\"}'"
"waiting_period_end": "curl -X POST .../api/hooks/waiting-period -d '{\"duration_ms\": $DURATION_MS, \"end_time\": \"$TIMESTAMP\"}'"
Use Cases: Identify bottlenecks, optimize prompts, understand processing patterns
Purpose: Track memory, CPU, and disk usage during development.
"memory_usage": "curl -X POST .../api/hooks/performance -d '{\"metric_type\": \"memory\", \"value\": $MEMORY_MB, \"unit\": \"MB\", \"threshold_exceeded\": $THRESHOLD_EXCEEDED}'"
Metrics: memory, cpu, disk, network
Track linting, testing, builds, and dependency changes.
code_analysis
ESLint, Prettier, type checking results
test_execution
Unit tests, integration tests, coverage
build_process
Compilation, bundling, deployment
dependency_change
Package installs, updates, removals
Understand development patterns and workflow efficiency.
context_switch
Track project/context changes
search_query
What you search for in code/files
browser_tab
Documentation, StackOverflow visits
copy_paste
Code copying patterns
Download ready-to-use configurations for different development styles:
$SESSION_ID
$TOOL_NAME
$TIMESTAMP
$FILE_PATH
$ERROR_MESSAGE