You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Headless ModeArea: what it touches
ImprovementsKind: in v2.1.299,
ImprovementsSection of the release
What
When Claude Code runs headless (without its interactive screen, for example driven by another program), the run now ends with one of these stated reasons:
The last one is new: when the program feeding Claude Code its input closes that input, the run ends. Claude Code also keeps count of the turns the host asked for.
Why
This changes when sessions that take their input from another program come to a stop. If you drive Claude Code from a script, closing its input is now a way the run ends, and the stop reason tells you which limit was hit.
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeFixed a mod that submits a prompt at the end of every turn keeping a headless run going past --max-turns, --max-budget-usd, an interrupt, or…