{"version":"2.1.20","anchor":"hard-fail-mode","canonical_anchor":"hard-fail-mode","heading":"Hard Fail Mode","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.20\/e\/hard-fail-mode","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.20","markdown":"### Hard Fail Mode\n\n**What**\n\nNew `--hard-fail` CLI flag causes Claude Code to exit immediately on certain errors rather than attempting recovery.\n\n**Usage**\n\n`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\")`)"}