Follow Discord
Sweep 23 Oct 2026 · 21:48Z Build v2.1.310 529 read Stable v2.1.308 Latest v2.1.310 Next v2.1.310 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.310 ·

Organization hooks start without the repository's environment variables

Hooks set by your organization now start without the environment variables from a repository's settings, and a debug line says so

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

A hook is a command Claude Code runs automatically at a set moment, such as before a tool runs. When a hook comes from your organization rather than from a project, Claude Code now writes a debug line saying the hook starts without the environment variables set in the repository's settings file. Environment variables are named values passed to a program when it starts. A similar message already existed for plugin hooks.

Why

A repository's settings can be written by anyone who can change that repository. Keeping those values out of hooks your organization controls stops a repository from quietly changing how those hooks behave.

See this entry in the whole of v2.1.310 →

Feedback