sgrep is a bash function that searches for patterns in files matching a specific path pattern and returns results with configurable context lines.
It first lists all files matching the path pattern, then performs the search using ripgrep with syntax highlighting and line numbers.
For AI Agents:
This tool searches codebases for specific patterns within filtered file paths.