You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release
What
A hook is a command you set up to run at certain points while Claude Code works. A Stop hook runs when Claude is about to finish, and it can block the finish to make Claude keep going. Claude Code already capped how many times in a row this can happen before it ends the turn anyway.
When that cap is reached, the turn now ends with a message explaining what happened. It says: "Set CLAUDE_CODE_STOP_HOOK_BLOCK_CAP to raise this limit." You set CLAUDE_CODE_STOP_HOOK_BLOCK_CAP as an environment variable, a value you set in your shell before starting Claude Code.
Why
If your Stop hook gets stuck in a loop, you are now told why the turn stopped and how to change the limit, instead of the turn simply ending.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added sinceA small documentation edit on Continue local sessions from any device with Remote Control touched a line naming Stop after this was published.When the program file is gone and Claude Code finds no newer version to run, new sessions fail. The terminal shows an error such as `Session failed: program not found:`, or `Session failed: spawn error:` with `ENOENT`. Stop the server, [in…remote-controlsee the edit
Confirmed sinceAnthropic's documentation has since written up Stop, on Claude Code changelog.* Fixed `/goal` removing a skill's Stop hook, or ending early on another hook's result, when both had the same wordingchangelogsee the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up Stop, on Claude Code changelog.