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 runs pass their exit code through a final step before exiting

Headless runs now hand their exit code to a final step before exiting, and each user turn carries two extra pieces of information

Under the hood Internal Changes
JSON All of v2.1.317
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Headless ModeArea: what it touches
Internal ChangesKind: in v2.1.317,
Internal ChangesSection of the release

Unclear What the new final step does with the exit code, and whether it changes what a headless run outputs or reports, is not known.

What

In headless mode, where Claude Code runs without its interactive screen, it used to exit directly when a run finished. It now passes the exit code (the number a program reports when it ends, used by scripts to tell success from failure) through a final step first. That step also receives the output format, the SDK address and the connection being used. The SDK is the kit for building your own programs on top of Claude Code.

Other changes in the same area:

  • each user turn now records whether ultrathink was typed
  • each user turn now carries information about widget views
  • Claude Code now handles a list of withdrawn files
Why

These are groundwork for capabilities that programs built on the SDK can use.

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 doubtWhat the new final step does with the exit code, and whether it changes what a headless run outputs or reports, is not known.

See this entry in the whole of v2.1.317 →

Feedback