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 ·

Security-hook shortcut now also depends on a server-side switch

The shortcut used when only security hooks remain is now also tied to a remote switch; CLAUDE_CODE_DISABLE_LONE_SEC_DEFAULT_SHORTCUT still turns it off

Under the hood Internal Changes
JSON All of v2.1.321
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HooksArea: what it touches
Internal ChangesKind: in v2.1.321,
Internal ChangesSection of the release

Unclear What the shortcut does when the server sends no value for its switch is not known.

What

Hooks are your own commands that run when certain events happen, and some of them check a tool before it runs. Claude Code has a shortcut that skips the usual handling of those checks when every remaining hook is a security hook. That shortcut now also depends on a switch controlled from Anthropic's servers.

Setting the environment variable CLAUDE_CODE_DISABLE_LONE_SEC_DEFAULT_SHORTCUT still turns the shortcut off.

Why

This changes which tool-checking hooks actually run in the plugin runtime. If you rely on every one of those hooks running, set the environment variable.

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 doubtWhat the shortcut does when the server sends no value for its switch is not known.

See this entry in the whole of v2.1.321 →

Feedback