Skip to content
BENIBIX Learn

CLAUDE_CODE_GLOB_TIMEOUT_SECONDS

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_GLOB_TIMEOUT_SECONDS environment variable

It sets how long a file search may run, in seconds.

Think of it like

It is like how long you look for a lost sock before you stop.

Example

Emma's repo has millions of files, and searches kept stopping halfway. She gives them 90 seconds, and they finish.

Why it matters

A search that stops early can miss the file Claude needs, with no sign it did.

Definition

CLAUDE_CODE_GLOB_TIMEOUT_SECONDS sets how long a Glob or Grep search may run. Unlike most timeouts, it is in seconds. The default is 20 seconds, or 60 seconds on WSL.

Example code

bash
export CLAUDE_CODE_GLOB_TIMEOUT_SECONDS=90
claude
Give searches in a huge repo more time.

Common mistake

Writing it in milliseconds. This one counts in seconds, not like the rest.

Key takeaways

  1. 1
    Seconds. Not milliseconds.
  2. 2
    Default 20. 60 on WSL.
  3. 3
    Glob and Grep. Both.