Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.48 Home All releases olderv2.1.47 v2.1.49newer
Claude Code v2.1.48

HTTP Hooks

What

A new hook type that sends HTTP POST requests instead of executing shell commands, enabling webhook-style integrations.

Usage (in settings.json or CLAUDE.md):

{
  "hooks": {
    "PreToolUse": [{
      "type": "http",
      "url": "https://your-server.com/hook",
      "headers": {
        "Authorization": "Bearer $MY_TOKEN"
      },
      "timeout": 30
    }]
  }
}
Details
  • Supports environment variable expansion in headers ($VAR_NAME or ${VAR_NAME} syntax)
  • Configurable timeout per request
  • JSON response parsing with optional logging
  • Works with all hook events including the new ConfigChange event
Evidence

New http hook type definition (search for "HTTP hook type")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.48 →