Skip to main content

Claude Code Integration

Integrate A24Z with Claude Code for comprehensive observability.

Quick Setup

# Install A24Z
npm install -g a24z

# Login
a24z login

# Install Claude Code hooks
a24z install claude-code

How It Works

A24Z integrates with Claude Code through hooks:
  1. PreToolUse - Before tool execution
  2. PostToolUse - After tool execution
  3. UserPromptSubmit - When you submit prompts
  4. SessionStart/End - Session lifecycle
  5. And more…

Configuration

A24Z automatically configures ~/.claude/settings.json:
{
  "hooks": {
    "PreToolUse": [{
      "matcher": "*",
      "hooks": [{
        "type": "command",
        "command": "a24z hook --type PreToolUse"
      }]
    }]
  }
}

What’s Captured

  • Tool executions and results
  • Success/failure status
  • Execution times
  • Token usage
  • Error messages
  • Session metadata

Performance Impact

A24Z has minimal performance impact:
  • Async hook execution
  • <10ms overhead
  • Non-blocking operations
  • Graceful failure handling

Troubleshooting

See Troubleshooting Guide for common issues.

Next Steps