Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Improve the `read_file` tool prompt for long files (#34542)
Adam313f5968ebc2
diff --git a/crates/assistant_tools/src/read_file_tool.rs b/crates/assistant_tools/src/read_file_tool.rsindex 6bbc2fc0897..dc504e2dc4a 100644--- a/crates/assistant_tools/src/read_file_tool.rs+++ b/crates/assistant_tools/src/read_file_tool.rs@@ -285,7 +285,10 @@ impl Tool for ReadFileTool {Using the line numbers in this outline, you can call this tool againwhile specifying the start_line and end_line fields to see the- implementations of symbols in the outline."+ implementations of symbols in the outline.++ Alternatively, you can fall back to the `grep` tool (if available)+ to search the file for specific content."}.into())}