Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.20 ·

Hard Fail Mode

Entry
JSON All of v2.1.20
EntryKind: in v2.1.20,
ChangesSection of the release
What

New --hard-fail CLI flag causes Claude Code to exit immediately on certain errors rather than attempting recovery.

Usage
claude --hard-fail
Details
  • Useful for CI/CD pipelines and automated testing
  • Ensures failures are detected rather than silently handled
Evidence

Detection at line 5582 (return process.argv.includes("--hard-fail"))

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

See this entry in the whole of v2.1.20 →

Feedback