{
  "_comment": "ClaudeAll hooks v3.8 — Advanced workflow automation with smart commits, deployment, health monitoring, context injection, and auto-documentation",
  "hooks": {
    "SessionStart": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "python3 $HOME/.claude/hooks/health-monitor.py",
            "timeout": 15,
            "async": true
          },
          {
            "type": "command",
            "command": "python3 $HOME/.claude/hooks/smart-context.py",
            "timeout": 10
          },
          {
            "type": "command",
            "command": "bash $HOME/.claude/hooks/ai-memory.sh pull",
            "timeout": 10
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "bash $HOME/.claude/hooks/smart-hooks.sh intent-classifier",
            "timeout": 5
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "bash $HOME/.claude/hooks/smart-hooks.sh blast-radius-warner",
            "timeout": 5
          }
        ]
      },
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "bash $HOME/.claude/hooks/smart-hooks.sh secret-scanner",
            "timeout": 5
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit|Write|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "bash $HOME/.claude/hooks/smart-hooks.sh auto-format",
            "timeout": 10
          },
          {
            "type": "command",
            "command": "python3 $HOME/.claude/hooks/auto-doc.py",
            "timeout": 15,
            "async": true
          },
          {
            "type": "command",
            "command": "python3 $HOME/.claude/hooks/smart-commit.py",
            "timeout": 20,
            "async": true
          }
        ]
      },
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "bash $HOME/.claude/hooks/smart-hooks.sh auto-test-runner",
            "timeout": 30,
            "async": true
          }
        ]
      }
    ],
    "Stop": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "python3 $HOME/.claude/hooks/deploy-pipeline.py",
            "timeout": 60,
            "async": true
          },
          {
            "type": "command",
            "command": "bash $HOME/.claude/hooks/ai-memory.sh push",
            "timeout": 10
          },
          {
            "type": "command",
            "command": "bash $HOME/.claude/hooks/smart-hooks.sh lessons-extractor",
            "timeout": 5,
            "async": true
          }
        ]
      }
    ],
    "SubagentStop": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "bash $HOME/.claude/hooks/smart-hooks.sh result-summarizer",
            "timeout": 5
          }
        ]
      }
    ]
  }
}