⌨️BASH_MAX_TIMEOUT_MS
Also known as BASH_MAX_TIMEOUT_MS environment variable
It sets the longest time Claude may ask a command to run.
Think of it like
It is like the latest time you may stay out. You can ask, but not past it.
Example
Jack's full build takes 20 minutes. He raises the top to 30 minutes, so Claude can ask for enough time on that one command.
Why it matters
Most commands stay short, while the few long ones can still finish when Claude asks.
Definition
Example code
bash
export BASH_MAX_TIMEOUT_MS=1800000
claudeCommon mistake
Key takeaways
- 1The top. Claude can ask up to it.
- 2Default 10 minutes. 600,000.
- 3Larger of the two. This or the default.