claude-code-system-prompts/system-prompts/tool-description-grep-compact.md
2026-06-15 18:28:45 -06:00

751 B

Content search built on ripgrep. Prefer this over grep/rg via ${BASH_TOOL_NAME} — results integrate with the permission UI and file links.

  • Full regex syntax (e.g. "log.*Error", "function\s+\w+"). Ripgrep, not grep — escape literal braces (interface\{\}).
  • Filter with glob (e.g. "**/*.tsx") or type (e.g. "js", "py", "rust").
  • output_mode: "content" (matching lines), "files_with_matches" (paths only, default), or "count".
  • multiline: true for patterns that span lines.