What
Grep and Glob are the tools Claude uses to search inside files and to find files by name. These searches have a time limit, and their results now say when that limit cut them short:
- When ripgrep, the search program behind Grep, times out, Grep now returns the partial matches it had collected and sets
timedOut, instead of failing. In that casecountIsCompleteis false. - Grep results, including the files_with_matches mode alongside
appliedLimitandappliedOffset, gain an optionaltimedOutfield. - The Glob output also gains an optional
timedOutfield. It is true when the time limit stopped the search after the listed paths were read, so more matches may exist, and absent otherwise. - When Glob's
timedOutis set, the result text starts with a notice, including on a 'No files found' result. - ripgrep can now be started with a directory handle (
spawnDirFd), and when it cannot be started it raises errors beginning 'The search did not run: …'.
Before, a Grep timeout was an error, and neither tool's result said whether it had been cut short.
Why
A search that ran out of time is no longer mistaken for one that found nothing. In a large project, a slow search now gives usable partial results, and Claude can tell they may be incomplete.
Names in the bundletimedOut
Documented inapi/agents-and-tools/tool-use/bash-tool