You'll notice
Grep searches now report distinct errors when ripgrep output is too large or fails to collect
What
When Claude Code's grep tool runs a search internally using ripgrep, collecting the output can now fail in two clearly distinct ways:
- a general
RipgrepOutputError, which includes a suggestion to narrow the search - a
RipgrepOutputTooLargeError, which fires when the search output exceeds a size cap before even a single complete line was produced, with separate messages depending on whether it was standard output or error output that overflowed
Why
This gives clearer, more specific error messages when a search produces too much output, and points toward the fix (narrowing the search) instead of a generic failure.