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 num_turns-adjacent 'seq' field documented for stream-json results

Stream-json results from claude -p now document a 'seq' delivery-order field

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

Stream-json results from claude -p now document a 'seq' delivery-order field

What

Results returned in stream-json format (used with claude -p) now have a documented seq field, a delivery sequence number counting how many results the run has numbered before this one, starting at 0. It counts in the order results are written, not the order they were produced, and it still increments even if a particular write fails, so a gap in the sequence means a result was lost. This field is absent from the in-process engine surface and from error results built locally by cloud-relay clients.

Why

This gives consumers of stream-json output a way to detect whether any results were dropped in transit, by watching for gaps in the sequence numbers.

Read from
Names in the bundleseqclaude -p
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 claude -p, on Claude Code changelog. * Fixed resumed `claude -p` sessions whose tools all come from MCP servers failing with "At least one tool must have defer\_loading=false" changelog see the edit
Confirmed since Anthropic's documentation has since written up seq, on preserved-thinking. Earlier thinking blocks aren't in the prefix, but each thinking block records which thinking block came before it, across turns. You can remove thinking blocks from the start of the history (oldest first), from the end, or all of them. Wha… build-with-claude/preserved-thinking 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 seq, on preserved-thinking.

See this entry in the whole of v2.1.268 →

Feedback