Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.246 ·

Hook and MCP program trust checks look at a second PATH

Hook and MCP programs are checked against two PATHs, and any mismatch counts as risky.

Under the hood Improvements
JSON All of v2.1.246
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.246,
ImprovementsSection of the release
What

The check deciding whether a hook command or MCP stdio program is unreadable or in reach now resolves the program against both the base environment PATH and a separate MCP-specific path, and treats any disagreement between the two as in reach. Interpreted programs are probed as well.

Details
  • The shell prefix used to expand a hook command now comes from the calling context instead of being read from CLAUDE_CODE_SHELL_PREFIX in the environment.
  • The old launch-directory reach builder and its HostPathRefused error were removed, replaced by a routine that decides which settings scopes are in reach and treats a file with more than one hard link as reachable.
Evidence

program_in_reach

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.246 →

Feedback