Claude Code's --allowedTools doesn't block Bash; use --tools to restrict tools
11/30/2026
Claude Code's --allowedTools does not restrict which tools are available; use --tools instead.
Loading news...
Merry Christmas & Happy New Year!
Opening article...
11/30/2026
Claude Code's --allowedTools does not restrict which tools are available; use --tools instead.
claude -p, and users can specify which tools the model may use.2.1.308 and 2.1.319: with only --allowedTools Read, Bash still ran date.--tools Read, the tool list contained only Read, and Bash calls dropped to 0.permissions.allow in .claude/settings.json is ignored.--allowedTools for read-only isolation may still call Bash.claude -p in temporary directories are affected by the ignored configuration.--tools Read --allowedTools Read.settings.json.