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 drops from $125 to $100 per monthpricingClaude Code Team Standard drops from $25 to $20 per monthfeatureAdmin API gains new cost report endpoint for organization spend analyticsfeatureWeb and shell tool calls now prompt before sending email addresses to external networksfeatureSelf-hosted runners can now control nested session ID behavior with environment variable