From 9bc187abe5ef318284a8d02974d557989f07018f Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 8 Jul 2025 13:58:07 -0400 Subject: [PATCH] refactor(llm): update glob and grep system prompts to remove ripgrep dependency --- internal/llm/tools/glob.go | 2 +- internal/llm/tools/grep.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/llm/tools/glob.go b/internal/llm/tools/glob.go index 0c1ac102c2f76f6abc7fb25a2e4c11e38e125444..eaf3707d0d1cd67b29e477e9b28990544ddfae05 100644 --- a/internal/llm/tools/glob.go +++ b/internal/llm/tools/glob.go @@ -43,7 +43,7 @@ LIMITATIONS: WINDOWS NOTES: - Path separators are handled automatically (both / and \ work) -- Uses ripgrep (rg) command if available, otherwise falls back to built-in Go implementation +- Uses built-in Go implementation and bmatcuk/doublestar/v4 for globbing TIPS: - Patterns should use forward slashes (/) for cross-platform compatibility diff --git a/internal/llm/tools/grep.go b/internal/llm/tools/grep.go index 3f3c43c6173c26663a8b9356dd3d34157dd7f465..f91a178a32d6c8e96799408a7f53cce14465b964 100644 --- a/internal/llm/tools/grep.go +++ b/internal/llm/tools/grep.go @@ -124,8 +124,7 @@ LIMITATIONS: - Hidden files (starting with '.') are skipped CROSS-PLATFORM NOTES: -- Uses ripgrep (rg) command if available for better performance -- Falls back to built-in Go implementation if ripgrep is not available +- Uses built-in Go implementation that is based on regexp - File paths are normalized automatically for cross-platform compatibility TIPS: