[PR #5266] glob: stop ripgrep when results sufficient and ignore heavy dirs #11316

Open
opened 2026-02-16 18:16:08 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5266

State: open
Merged: No


  • Ripgrep file listing now stops the underlying rg --files process when consumers exit early (e.g., after hitting the 100-result cap), preventing full-tree scans from pegging CPU.
  • Glob tool now ignores common heavy directories by default (node_modules, .venv, .direnv, .cache, dist, build, out, .next, target, coverage, tmp, temp, pycache), reducing work for typical searches.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5266 **State:** open **Merged:** No --- - Ripgrep file listing now stops the underlying rg --files process when consumers exit early (e.g., after hitting the 100-result cap), preventing full-tree scans from pegging CPU. - Glob tool now ignores common heavy directories by default (node_modules, .venv, .direnv, .cache, dist, build, out, .next, target, coverage, tmp, temp, __pycache__), reducing work for typical searches.
yindo added the pull-request label 2026-02-16 18:16:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11316