Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.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

TierUse it nowhow much it should matter to you
Useful3my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaStream JSONwhat it touches
KindNew Featuresin v2.1.268,
Use it now

Streamed JSON output now includes a result_index showing delivery order

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

See this entry in the whole of v2.1.268 →

Feedback