Unclear What switches this stricter mode on, and whether it is on for a given user, is not stated.
What
Claude Code approves some read-only shell commands automatically, without asking you. The checks for date, stat and several zsh built-in commands have changed:
- Under a safe-mode gate,
daterejects the%Nand%qformats and records the refusal. - Under the same gate,
stat -cwith a%format is allowed only in a narrow form, andstatpaths that are dynamic or start with~are refused. - New messages explain these refusals. A word given to
statmay turn into--help, anddate%N/%qbehave differently between versions. The messages suggeststat -c FORMAT -- "PATH", ordate +%s, or doing the sum inbcorawk. - zsh's own
statwith-Aor-His rejected, because zsh's stat builtin stores its result in the variable that option names, so the value cannot be checked in advance. - A set of zsh module builtins, including
zformat,zparseopts,zstyle,zregexparse,getln,vared,strftimeandzstat, is now blocked only when a further check says so. Before, they were blocked every time with a "can bypass security checks" refusal.
Why
Some date and stat commands that used to run automatically may now ask for permission or be refused, and Claude is told how to rewrite them so they pass. Commands that use the listed zsh builtins may also be rejected or prompt.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What switches this stricter mode on, and whether it is on for a given user, is not stated.