Prompt capture
Grep tool description
27 model strings share this prompt, byte for byte.
1A powerful search tool built on ripgrep
3 Usage:
4 - ALWAYS use Grep for search tasks. NEVER invoke `grep` or `rg` as a Bash command. The Grep tool has been optimized for correct permissions and access.
5 - Supports full regex syntax (e.g., "log.*Error", "function\s+\w+")
6 - Filter files with glob parameter (e.g., "*.js", "**/*.tsx") or type parameter (e.g., "js", "py", "rust")
7 - Output modes: "content" shows matching lines, "files_with_matches" shows only file paths (default), "count" shows match counts
8 - Use Agent tool for open-ended searches requiring multiple rounds
9 - Pattern syntax: Uses ripgrep (not grep) - literal braces need escaping (use `interface\{\}` to find `interface{}` in Go code)
10 - Multiline matching: By default patterns match within single lines only. For cross-line patterns like `struct \{[\s\S]*?field`, use `multiline: true`