⌨️--allowedTools Flag
Also known as claude --allowedTools, --allowed-tools
It lists tools that run without asking you first.
Think of it like
It is like a list of games you may play. You do not have to ask first.
Example
Jack's CI job only needs git log and file reads. He lists just those in --allowedTools, so the job never stops to ask about them.
Why it matters
A run with no one watching cannot answer a prompt. The allow list keeps it moving.
Definition
Example code
bash
claude -p "Show what changed" --allowedTools "Bash(git log *)" "Bash(git diff *)" "Read"Common mistake
Key takeaways
- 1Runs without asking. Just these.
- 2Permission rules. Read, Bash(git log *).
- 3Others still exist. They ask.