preTool fires before each tool execution; exit 2 blocks the call and returns the hook's stderr as the tool error result. postTool fires after; exit 0 appends context to the result, exit 2 replaces it entirely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| commands.go | ||
| core.go | ||
| core_test.go | ||
| fifo_test.go | ||
| hooks.go | ||
| loop.go | ||
| session.go | ||
| state.go | ||
| types.go | ||
| waitchange_test.go | ||