Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

New shell_cwd message can replace hooks that only read the shell's folder

SDK hosts that mark a hook matcher replacedByFrame: 'shell_cwd' get a shell_cwd system message with the shell's folder instead of a hook callback

Group of 2 Use it now No documentation found New Features
JSON All of v2.1.327
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SDKArea: what it touches
New FeaturesKind: in v2.1.327,
What probably matters to youSection of the release

What

Programs that host Claude Code through the SDK can register hooks, which are their own code that Claude Code calls at set points. One such point is PostToolUse, which runs after a tool call succeeds. This release adds a cheaper way to learn which folder a shell command left you in.

  • shell_cwd is a new system message. It reports the folder a Bash or PowerShell call left its shell in.
  • contextOnly and replacedByFrame are two new internal fields on SDK hook callbacks (hook matchers).
  • When a host marks a hook matcher replacedByFrame: 'shell_cwd', Claude Code sends system/shell_cwd instead of calling callbacks that only read the shell folder. Only those hosts receive the message.

Why

This changes the contract between Claude Code and the programs that host it, such as desktop apps. A host that only needs the shell's current folder can receive it as a message instead of running a hook after every command.

Read from
Names in the bundleshell_cwd

See this entry in the whole of v2.1.327 →

Feedback