Files
claude-code-system-prompts/system-prompts/tool-description-grep-compact.md
T
2026-07-20 15:26:30 -06:00

757 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.