{"version":"2.1.330","anchor":"promptagent-hooks-pick-model-with-fallback-chain-and-a-clea","canonical_anchor":"promptagent-hooks-pick-model-with-fallback-chain-and-a-clea","heading":"Prompt and agent hooks fall back to another model, and block when none can run","tier":"notice","area":"Hooks","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/promptagent-hooks-pick-model-with-fallback-chain-and-a-clea","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Prompt and agent hooks fall back to another model, and block when none can run\n\nPrompt and agent hooks now retry on a fallback model, and a PreToolUse hook that cannot run blocks the tool call with an explanation\n\n**What**\n\nSome hooks ask a Claude model to make a decision, either with a single prompt or by running an agent. These hooks now:\n\n- retry on a fallback model when the first model call fails\n\n- report which models failed\n\n- explain when the model requires usage credits and no other model is allowed to run the hook\n\nA `PreToolUse` hook runs before a tool call, which is an action Claude takes such as editing a file, and it can block that call. When such a hook cannot run, it now returns a blocking error. The call is stopped, and a retry is blocked the same way. Before, these hooks used one model and made a single attempt.\n\nThe `CLAUDE_CODE_NO_MODEL_FALLBACK` environment variable is checked in more places as part of this change.\n\n**Why**\n\nIf a safety check cannot run, the tool call is no longer let through quietly. Claude Code stops the call and says why.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}