Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.268 ·

New stream-json result_index field, live for -p/headless output

Streamed JSON output now includes a result_index showing delivery order

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

When running Claude Code in headless or -p (print) mode with streamed JSON output, both successful and error result objects can now include a result_index field. This field is actually populated, counting up for each result delivered during a run.

Why

This gives tools consuming streamed JSON output a reliable way to know the order in which results were delivered.

Read from
Names in the bundleresult_index
What the documentation says
Documented inapi/api/beta
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 result_index, on Agent SDK reference - TypeScript. result_index?: number; agent-sdk/typescript 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 result_index, on Agent SDK reference - TypeScript.

See this entry in the whole of v2.1.268 →

Feedback