Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Encourage agent to edit files it just created (#28372)
Antonio Scandurraac958d4a2d74
diff --git a/crates/assistant_tools/src/find_replace_tool/description.md b/crates/assistant_tools/src/find_replace_tool/description.mdindex 63308cf7ab8..1b01b7f5573 100644--- a/crates/assistant_tools/src/find_replace_tool/description.md+++ b/crates/assistant_tools/src/find_replace_tool/description.md@@ -7,3 +7,5 @@ You should use this tool when you want to edit a subset of a file's contents, buDO NOT call this tool until the code to be edited appears in the conversation! You must use another tool to read the file's contents into the conversation, or ask the user to add it to context first.Never call this tool with identical "find" and "replace" strings. Instead, stop and think about what you actually want to do.++REMEMBER: You can use this tool after you just used the `create_file` tool. It's better to edit the file you just created than to recreate a new file from scratch.