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 ·

Claude Code can tell when a head command cut a file's output short

For a plain head command on a file, Claude Code now compares the lines returned with the number asked for to tell if the output was cut off

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

Unclear It is not clear what Claude Code does differently once it knows the output was cut short.

What

Claude Code runs shell commands through its Bash tool, which is how it types commands into a terminal for you. Its handling of the head command has changed. head shows only the first lines of a file. For a plain command of the form head -n N file, Claude Code now counts the lines that came back and compares that count with N, the number of lines asked for. This tells it whether head stopped early and the file has more lines than were shown.

It does not apply this check when the output begins with head: , which is how head starts its error messages.

Why

The check can be used to decide whether a command's result is only part of the file.

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 what Claude Code does differently once it knows the output was cut short.

See this entry in the whole of v2.1.317 →

Feedback