⌨️Bash Tool
Also known as Bash, Claude Code Bash tool, Bash(npm run *)
The tool that runs shell commands on your computer.
Think of it like
It is like a friend who types on your keys for you.
Example
Emma asks Claude to fix a failing test. It runs the tests with Bash, reads the error, makes a fix, and runs them again until they pass.
Why it matters
It is what lets Claude check its own work by running it, not just reading it.
Definition
Example code
json
{"permissions": {"allow": ["Bash(npm run *)"]}}Common mistake
Key takeaways
- 1Runs commands. Tests, builds, git.
- 2Two minutes by default. Up to ten.
- 3Asks first. Unless a rule allows it.