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.242 ·

New tool_host_result system message in stream-json output

Tool host output arrives as its own system message in stream-json, easier to script against.

Use it now New Features
JSON All of v2.1.242
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
AgentsArea: what it touches
New FeaturesKind: in v2.1.242,
What probably matters to youSection of the release
What

Output from a tool host (a separate process that runs a tool on Claude Code's behalf) now arrives as its own system message in --output-format stream-json, so scripts can read it directly instead of parsing it out of an attachment.

Details
  • The message carries the tool_use_id, the host name and its working directory, an optional disposition and label, an unverified flag, and the output lines.
  • No flag gates it; it is emitted whenever the underlying attachment appears.
Evidence

tool_host_result

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

Read from
Names in the bundle--output-format stream-json
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.

Added since A small documentation edit on Run Claude Code programmatically touched a line naming --output-format after this was published. With `--output-format json`, the response payload includes `total_cost_usd` and a per-model cost breakdown, so scripted callers can track spend without consulting the [usage dashboard](/docs/en/costs). When you continue an earlier conversa… headless see the edit
Confirmed since Anthropic's documentation has since written up --output-format, on Claude Code changelog. * Fixed `permission_denials` in `--output-format stream-json` results omitting Read, Edit and Write calls blocked by a path-scoped deny rule changelog 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 --output-format, on Claude Code changelog.

See this entry in the whole of v2.1.242 →

Feedback