PreToolUse or PostToolUse? Where to Put a Check in the Claude Agent SDK
A developer explains that in the Claude Agent SDK, checks that must prevent a side effect belong in the PreToolUse hook, since PostToolUse runs after the tool executes and cannot undo it. The writeup notes that async hoo…