opencode
opencode copied to clipboard
glob: stop ripgrep when results sufficient and ignore heavy dirs
- 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.