Improve GREP tool
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Our GREP tool doesn't return content of matching rows (or logical block). Would be nice to improve and make it more similar to GREP tool here: https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools/blob/main/Anthropic/Claude%20Code/Tools.json
Interesting, I can do that, @zikajk do you think we should have the same args of the grep tool from that link? like -B, output_mode etc?
I think it wouldn't hurt. But tbh. I don't know why GREP tool exist and why BASH tool is not used instead. Is it because this tool can do more thinks then simple GREP? I know that CC uses ripgrep by default if it exist on the system so maybe the tool just finds out if the system has GREP or RIPGREP installed and then adapts args based on that?
At least for eca, we check ripgrep, then grep, and then grep via java, I think the output control is a plus and important piece of having it
Added output_mode