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.196 Home All releases olderv2.1.195 v2.1.197newer
Claude Code v2.1.196

Prompt ID in Hook Events

Hook events now carry a prompt_id field: a UUID that correlates all events generated within a single user prompt turn. The same value appears as the prompt.id attribute on OpenTelemetry events, allowing hook output to be joined with OTel traces at prompt granularity.

Details
  • Absent until the first user input of the process lifetime.
  • Consistent across tool calls, notifications, and other events triggered by the same prompt.
Evidence

New hook field (search for "UUID correlating a user prompt with all subsequent events until the next prompt")

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.196 →