Skip to main content

Module grep_search

Module grep_search 

Source
Expand description

Grep search tool - searches file contents using regex patterns.

When ripgrep (rg) is installed, it is used for fast searches with automatic exclusion of VCS/build directories and binary files. If rg is not available the tool falls back to a built-in regex walker.

Modules§

prompt
Rich LLM-facing descriptions for the grep_search tool.

Structs§

GrepMatch
A single match result from grep search.
GrepSearch
Searches file contents for regex patterns, returning matching lines with context.
GrepSearchResult
Result of a grep search operation.

Functions§

grep_search
Standalone function for grep search (for use in tests and other modules). Attempts ripgrep first, then falls back to the built-in walker.