The current search tool operates on one file only. It should be possible to specify a directory or a pattern. For files which are not tracked, this should use the file content from the FS. For tracked files, it should use the buffer content.
Otherwise, agents may fall back to using standard FS tools for multi-file/directory search, thereby getting stale results in case some files have been edited but not yet saved.
The current search tool operates on one file only. It should be possible to specify a directory or a pattern. For files which are not tracked, this should use the file content from the FS. For tracked files, it should use the buffer content.
Otherwise, agents may fall back to using standard FS tools for multi-file/directory search, thereby getting stale results in case some files have been edited but not yet saved.