Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Commands are refused if the shell starts in a different folder than expected

Claude Code can now refuse to run a command when the shell started in another folder than the one it checked, and asks Claude to re-issue it

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

Claude Code can now record the folder a shell command is meant to start in, using __CLAUDE_CC_START_DIR and related environment variables. Before the command runs, the shell checks it is really in that folder. If not, the command stops with exit code 126 and the message "Not run: the shell started in another directory than the one that was checked. Re-issue the command."

This is tied to a setting controlled from Anthropic's servers, tengu_precious_kite.

Why

Shell startup files, the scripts your shell runs every time it opens, can change folder. This stops a command from running somewhere other than where Claude Code checked it was safe to run.

Read from
Names in the bundle__CLAUDE_CC_START_DIR

See this entry in the whole of v2.1.333 →

Feedback