Claude Code Stop hook tip: use exit 2 to trigger auto-retry
Lydia Hallie shared a Claude Code technique using Stop hooks to auto-retry on failed checks, adding that exit 1 may signal a hook script error, so exit 2 should be used to trigger retries.
2026-11-14 ~ 2026-11-14 · 2 related posts
- Claude Code tip: use Stop hooks with exit 2 to auto-retry on failed checks — lydiahallie · 2026-11-14
- Exit 1 can mean the hook itself errored — use exit 2 for Claude Code retries — lydiahallie · 2026-11-14