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.236 Home All releases olderv2.1.235 v2.1.237newer
Claude Code v2.1.236

Hooks and host applications can attach classifier context to tool results

Not switched on
Useful2 Signal4
Hooks Notable not in their notes

Hooks can attach extra context to a tool result that shows on its own transcript line.

Hook responses can carry a classifierContext field that rides along with tool results, but the path is guarded before it is consumed.

classifierContext
What

The application embedding Claude Code, or a hook running inside it, can now supply extra context that travels with a tool's result message and is shown on its own line in the transcript. Hook output handling copies a classifierContext field out of a hook's response alongside the additional-context and rewritten-output fields it already reads, and messages carry a matching field that is read back when the tool result is assembled. Nothing changes for anyone who does not supply that context, and the path is guarded further before it is consumed.

Details
  • Requires a host application or hook to actually provide the context; with none supplied the tool result is built exactly as before.
  • Skipped for tools coming from MCP servers, the external tool servers Claude Code connects to, unless they are running inside the SDK.
  • Each piece of context is paired to a rewrite sequence number, and entries whose rewrite never landed are discarded and logged rather than attached to the wrong result.
  • When the joined context text is too long and gets truncated, that truncation is reported separately rather than silently swallowed.
Evidence

auto_mode_host_context, classifierContext

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

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.236 →