{"version":"2.1.295","anchor":"grep-tool-input-normalization-also-accepts-l-c-and-r","canonical_anchor":"grep-tool-input-normalization-also-accepts-l-c-and-r","heading":"Grep tool now accepts -l, -c and -r flags","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.295\/e\/grep-tool-input-normalization-also-accepts-l-c-and-r","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.295","markdown":"### Grep tool now accepts -l, -c and -r flags\n\nClaude's Grep tool now understands `-l` and `-c` as output modes and ignores `-r`, noting each change, instead of failing\n\n**What**\n\nGrep is the tool Claude uses to search file contents. Claude sometimes calls it as if it were the command-line `grep` program. The tool already fixed one such mistake, a `file_path` given where `path` was meant. It now also handles:\n\n- `-l`: read as output_mode `files_with_matches`, listing only the files that match\n\n- `-c`: read as output_mode `count`, giving a count of matches\n\n- `-r`: ignored, because the tool always searches a folder recursively\n\nEach fix adds a note to the result saying what was changed.\n\n**Why**\n\nSearches that Claude writes with these familiar flags now run instead of failing because the input did not match what the tool expects.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}