Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.321 ·

Some Stop hooks no longer run outside a git repository

Certain Stop hooks are now skipped when there is no git repository in the current folder or any folder above it

You'll notice Improvements
JSON All of v2.1.321
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.321,
ImprovementsSection of the release

Unclear Which Stop hooks are affected is not stated; it may be only some built-in ones rather than hooks you write.

What

A Stop hook is a script you can configure to run when Claude finishes responding. Certain Stop hooks are now skipped when Claude Code finds no .git folder or HEAD file in the current folder or any folder above it, which means you are not inside a git repository.

When this happens, the debug log records "no .git or HEAD at or above".

Why

Outside a git repository, some Stop hooks can now quietly not run. If a hook seems to be ignored, check the debug log for that line.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhich Stop hooks are affected is not stated; it may be only some built-in ones rather than hooks you write.

See this entry in the whole of v2.1.321 →

Feedback