feature
Claude Code

Agent SDK hook callbacks now support onFailure block to prevent action execution

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.

Claude Code MCP setup
Code · Agent setup
$50/mo
Claude Code setup
Code · Agent setup
$50/mo
Claude Code only
Code · Workflow
$50/mo
Ship code with AI
Code · Workflow
$50/mo
All Claude Code changes and pricing

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