{"version":"2.1.332","anchor":"grep-content-mode-cap-and-fast-path","canonical_anchor":"grep-content-mode-cap-and-fast-path","heading":"Grep applies its result limit and offset earlier when showing matching lines","tier":"notice","area":"Grep Tool","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/grep-content-mode-cap-and-fast-path","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Grep applies its result limit and offset earlier when showing matching lines\n\nWhen Grep returns matching lines, it now applies the result limit and starting offset earlier, with a shortcut when ripgrep ignores its config file\n\n**What**\n\nGrep is the built-in tool Claude uses to search inside files. In content mode, where it returns the matching lines themselves, it now applies two values earlier in its work:\n\n- the limit on how many results to return\n\n- the offset, meaning how many results to skip before it starts returning them\n\nBefore, the limit was worked out inside the loop that collects results.\n\nThere is also a shortcut for when ripgrep runs with `--no-config`. Ripgrep is the search program Grep runs, and `--no-config` tells it to ignore any personal ripgrep configuration file. In that case Grep uses the list of matched lines that ripgrep returns directly.\n\n**Why**\n\nThis mainly affects searches that return a large number of matching lines, where cutting the results down sooner saves work.\n\n- Area: Grep Tool\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}