feature
Agent SDK hook callbacks now support onFailure block to prevent action execution
code.claude.comagent
Added onFailure: "block" option for Agent SDK hook callbacks, allowing callbacks to block an action if they fail rather than allowing it to proceed. This gives SDK users more control over critical operations.
Stacks this affects
Claude Code ships in 4 tested stacks here.
More Claude Code
pricingClaude Code Team Premium rises from $100 to $125 per monthpricingClaude Code Team Standard rises from $20 to $25 per monthfeatureCode Mode: Claude writes JavaScript to call tools in an experimental opt-in modefeaturePlugin version compatibility with engines["claude-code"] in plugin.jsonfeatureType checking added to plugin TypeScript hooks module validationfeatureVSCode Claude Code trust prompt for untrusted folders