Skip to content
Trending storySettled

Lydia Hallie explains Claude Stop hook exit codes

1 article1 sourcesince Nov 13Last article

Overview

AISummary of 1 article

Lydia Hallie says Claude retries a failed check when a Stop hook exits with code 2, using the hook’s stderr to guide the retry.

Exit code 1 is non-blocking, so Claude finishes even if the check failed.

Written by AI from the articles below · updated Nov 15, 6:28 AM ET

Check the sources:

Latest developmentNov 13, 1:43 PM ET
Lydia Hallie explains Claude Stop hook exit codes

Article timeline

The articles in this story. Times are ET.

Nov 13
  1. Lydia Hallie ✨X
    Lydia Hallie explains Claude Stop hook exit codes

    AILydia Hallie explains that Claude retries a failed check when a Stop hook exits with code 2, using the hook’s stderr. Exit code 1 is non-blocking, so Claude finishes even if the check failed.

    Image from @lydiahallie's post