feat(tools): add limit and case_sensitive parameters to searchFiles - #1855
Open
liangfung wants to merge 1 commit into
Open
feat(tools): add limit and case_sensitive parameters to searchFiles#1855liangfung wants to merge 1 commit into
liangfung wants to merge 1 commit into
Conversation
Enhance the searchFiles tool by introducing `limit` and `case_sensitive` options. By default, the ripgrep search is now case-insensitive, and stops early when a custom limit is specified. The UI and CLI renderers have also been updated to display the custom limit independently from the match count. 🤖 Generated with [Pochi](https://getpochi.com) | [Task](https://app.getpochi.com/share/p-983b915a89a94ac6b45d35db9ed210ab) Co-Authored-By: Pochi <noreply@getpochi.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1855 +/- ##
==========================================
+ Coverage 28.43% 33.47% +5.04%
==========================================
Files 761 760 -1
Lines 78790 78811 +21
Branches 3684 3275 -409
==========================================
+ Hits 22400 26385 +3985
+ Misses 56268 52313 -3955
+ Partials 122 113 -9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
zhanba
reviewed
Jul 31, 2026
| .describe( | ||
| "Limit output to the first N matching lines. The host already applies an internal safety limit when omitted, so only specify this when a smaller result set is necessary.", | ||
| ), | ||
| case_sensitive: z |
Member
There was a problem hiding this comment.
Suggested change
| case_sensitive: z | |
| caseSensitive: z |
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.
Summary
limitandcase_sensitiveparameters to thesearchFilestool schema.searchFilesWithRipgrep) to support case-insensitive searching by default, case-sensitive on demand, and early termination at the specified limit.Screenshot
Test plan
bun testinpackages/toolsto verify schema validation and JSON schema generation.bun run testinpackages/commonandpackages/clito verify ripgrep behavior and renderer updates.🤖 Generated with Pochi | Task