← Back to catalog
SettingEnvironment↓ 396

Bash Command Timeouts

Sets the time and output limits for running bash commands.

Installation
npx claude-code-templates@latest --setting environment/bash-timeouts --yes

This setting tunes how long a bash command can run before it’s stopped, defining both a default and a hard maximum.

It also limits the size of captured output, avoiding huge logs in the context.

That way stuck commands don’t hold the session forever, while long builds and deploys still get time to finish.

When to use

  • When builds, tests, or deploys exceed the default timeout.
  • To keep a hung command from blocking the session.
  • When very large outputs clutter the context.

How to use

Apply the setting and adjust the millisecond values to match the typical length of your tasks.