Claude Code✓ Confirmed in official docsAdded Dec 1
How to pass Claude Code's --allowedTools list as a single value
From Claude Code 2.1.333 (November 30), passing a tool list to --allowedTools or --tools as several separate values stops Claude Code from launching for some lists. If you run claude -p from scripts or CI, check where you use these flags.
- Join the tool names with commas and quote them as one value.
# Several values (may stop the launch on 2.1.333)
claude -p "fix the tests" --allowedTools Read Edit Write
# One value
claude -p "fix the tests" --allowedTools "Read,Edit,Write"
- Pass
--toolsthe same way.
claude -p "summarize the logs" --tools "Bash,Read"
The changelog doesn't say which lists stop the launch. The CLI reference still shows the --allowedTools example as several values, "Bash(git log *)" "Bash(git diff *)" "Read". If a script stops right at startup after updating, fix this first.
Sources
Get notified when a new tip lands
Tip alerts only go out in the app. Install it and turn notifications on.