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.