feat: Add Grep tool with ripgrep-powered search functionality#57
Merged
feat: Add Grep tool with ripgrep-powered search functionality#57
Conversation
Implement comprehensive Grep tool as specified in issue #56: - Complete JSON schema specification with all required parameters - Support for multiple output modes: files_with_matches, content, count - Full ripgrep integration with context flags (-A, -B, -C), line numbers (-n), case-insensitive search (-i) - File filtering via glob patterns and type filters - Multiline search support with dotall semantics - head_limit parameter for result truncation - Security features: path exclusions, parameter validation - Comprehensive test suite with 100% coverage - Configuration integration with approval system - Tool registration and documentation updates The tool provides fast, permission-safe, regex-capable search that replaces the need to shell out to grep/rg from Bash tools, with consistent JSON outputs for downstream processing. Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
…ripgrep Signed-off-by: Eden Reich <eden.reich@gmail.com>
- Updated manifest.lock and manifest.toml to include ripgrep version 14.1.1. - Enhanced config.yaml to enable grep tool with auto backend detection. - Introduced new commands in config.go for managing grep tool settings, including enabling/disabling and setting backend. - Modified grep.go to support ripgrep as a backend option, with logic for fallback to Go implementation. - Added tests in grep_test.go to validate ripgrep detection and hybrid search functionality. - Implemented benchmarks for performance comparison between GrepTool and native ripgrep. Signed-off-by: Eden Reich <eden.reich@gmail.com>
…n configuration and documentation Grep is more powerful then a standard FileSearch. Signed-off-by: Eden Reich <eden.reich@gmail.com>
|
🎉 This PR is included in version 0.19.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement comprehensive Grep tool as specified in issue #56:
The tool provides fast, permission-safe, regex-capable search that replaces the need to shell out to grep/rg from Bash tools, with consistent JSON outputs for downstream processing.
Closes #56
Generated with Claude Code