Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.317 ·

Headless mode can write streamed text out as soon as it arrives

Headless and SDK runs gain a step that writes each piece of streamed text immediately, plus a new CLAUDE_CODE_PLAIN_DELTA_TAKE_AT_SOURCE variable

You'll notice Improvements
JSON All of v2.1.317
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Headless ModeArea: what it touches
ImprovementsKind: in v2.1.317,
ImprovementsSection of the release

Unclear It is not clear whether setting CLAUDE_CODE_PLAIN_DELTA_TAKE_AT_SOURCE changes how text is streamed or is only recorded in the report.

What

In headless mode (running Claude Code without its interactive screen, for example from a script or through the Agent SDK), Claude Code streams its answer as small pieces of plain text. These pieces used to go out only through Claude Code's usual event path. A new step can now write each piece out immediately.

A new environment variable, CLAUDE_CODE_PLAIN_DELTA_TAKE_AT_SOURCE, is part of this setup. An environment variable is a named value you set in your shell before starting a program. The end-of-run report now also counts how many text pieces were written immediately and how many were taken at their source.

Why

Programs that read Claude Code's streamed output may receive text sooner.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether setting CLAUDE_CODE_PLAIN_DELTA_TAKE_AT_SOURCE changes how text is streamed or is only recorded in the report.

See this entry in the whole of v2.1.317 →

Feedback