Stop Claude Code from saying "done" while the build is still red, with a Stop hook
This story is from 2026-10-13. It is preserved in the archive; the latest stories are on the live feed.
The most annoying agent failure is not a bad edit. It is the agent announcing "all done" while the type checker is still failing. Claude Code has a Stop hook that runs when the agent is about to finish its turn. If the hook exits with status 2, the stop is blocked and whatever the hook printed to s…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-13 01:17 · DEV Community — AI
Stop Claude Code from saying "done" while the build is still red, with a Stop hook