{"version":"2.0.77","anchor":"epipe-error-handling-for-piped-output","canonical_anchor":"epipe-error-handling-for-piped-output","heading":"EPIPE Error Handling for Piped Output","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.77\/e\/epipe-error-handling-for-piped-output","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.77","markdown":"### EPIPE Error Handling for Piped Output\n\n**What**\n\nClaude Code now gracefully handles broken pipe (EPIPE) errors when output is piped to another process that closes early.\n\n**Usage**\n\n`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\"`)"}