Suggestion: Refine search_files to improve output formatting and derisk large output #548
Closed
nissa-seru
started this conversation in
Feature Requests
Replies: 1 comment
-
Implemented in #709 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current search_files implementation can result in huge output if a model searches for a commonly used term. I have not seen Claude-Sonnet search for something trivially large like ".", but I commonly see it search for
test|tests
etc. The very first time I used Roo, actually, it errored itself very quickly with a search_files call yielded approx 206k tokens in response. Below is a tweaked implementation that has worked well for me - there is very likely room for improvement (for example, I thin the amount of context provided around each result, which may not be optimal wrt enabling accurate diffs.)Beta Was this translation helpful? Give feedback.
All reactions