From fc99557952bc0811d71bc1ffb8a0e66df5350daf Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 27 Mar 2025 14:27:28 -0400 Subject: [PATCH] Explicitly prefer find-replace over edit-files (#27503) `edit-files` is still enabled for now, but this makes it less likely to be used. Release Notes: - N/A --- crates/assistant_tools/src/edit_files_tool/description.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/assistant_tools/src/edit_files_tool/description.md b/crates/assistant_tools/src/edit_files_tool/description.md index 76e242a15d..0a70713a36 100644 --- a/crates/assistant_tools/src/edit_files_tool/description.md +++ b/crates/assistant_tools/src/edit_files_tool/description.md @@ -1,5 +1,7 @@ Edit files in the current project by specifying instructions in natural language. +IMPORTANT NOTE: If there is a find-replace tool, use that instead of this tool! This tool is only to be used as a fallback in case that tool is unavailable. Always prefer that tool if it is available. + When using this tool, you should suggest one coherent edit that can be made to the codebase. When the set of edits you want to make is large or complex, feel free to invoke this tool multiple times, each time focusing on a specific change you wanna make.