Cli
2 articles
Claude Code Now Runs Your .zshrc Before You Answer the Prompt
Claude Code 2.1.327, published 17 November, starts your login shell and runs your shell startup files as soon as Claude begins its first Bash call in an interactive session, about 0.2 seconds before the permission prompt appeared in my runs. Refusing the command, a deny rule and don't-ask mode did not stop it, while claude -p and a PreToolUse hook on Bash did.
One Space in --allowedTools Turns Your Rule Into All of Bash
A space before the parenthesis in --allowedTools 'Bash (make *)' made a headless Claude Code run allow every shell command, and four other typos in --disallowedTools blocked nothing while the job exited 0. Claude Code 2.1.326, published 16 November, adds a startup warning for most of them, but in 88 runs on 2.1.325 and 2.1.326 it printed in text mode only: with --output-format json, stderr stayed empty.