diff --git a/internal/llm/tools/grep.go b/internal/llm/tools/grep.go index f20d61ef1ed44f50235f4ba19b8ea44ba7043eb6..1d2d008cf3d641f03cebcd97b73956d11e84a2a1 100644 --- a/internal/llm/tools/grep.go +++ b/internal/llm/tools/grep.go @@ -211,7 +211,7 @@ func searchWithRipgrep(pattern, path, include string) ([]grepMatch, error) { } // Use -n to show line numbers and include the matched line - args := []string{"-n", pattern} + args := []string{"-H", "-n", pattern} if include != "" { args = append(args, "--glob", include) }