Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.77 Home All releases olderv2.0.76 v2.1.0newer
Claude Code v2.0.77

EPIPE Error Handling for Piped Output

What

Claude Code now gracefully handles broken pipe (EPIPE) errors when output is piped to another process that closes early.

Usage
claude -p "list files" | head -1  # No longer crashes if head closes early
Details
  • Prevents crashes when Claude Code's output is piped to a process that terminates before reading all output
  • Automatically destroys stdout/stderr streams on EPIPE instead of throwing an uncaught error
  • Improves CLI scripting reliability
Evidence

HS0() at line 519 (EPIPE handler, contains "EPIPE")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.0.77 →