Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.236 ·

Hooks and host applications can attach classifier context to tool results

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

Nothing to try yet Notable No documentation found In Development
JSON All of v2.1.236
Nothing to try yetTier: how much it should matter to you
2Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
HooksArea: what it touches
In DevelopmentKind: in v2.1.236,
What probably matters to youSection of the release

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

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.

Read from
Names in the bundleclassifierContext
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up classifierContext, on Choose a permission mode. You can annotate a call's result with a [PostToolUse hook's `classifierContext` field](/docs/en/hooks#annotate-a-result-for-the-auto-mode-classifier), which the classifier reads as application-provided context. The field requires Claude Co… permission-modes see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up classifierContext, on Choose a permission mode.

See this entry in the whole of v2.1.236 →

Feedback