You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"You should always prefer using other editing tools over write_to_file when making changes to existing files since write_to_file is much slower and cannot handle large files.",
641
596
)
642
-
expect(prompt).toContain("The insert_content tool adds lines of text to files")
643
597
expect(prompt).toContain("The search_and_replace tool finds and replaces text or regex in files")
Copy file name to clipboardExpand all lines: src/core/prompts/sections/rules.ts
-11Lines changed: 0 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,6 @@ function getEditingInstructions(diffStrategy?: DiffStrategy, experiments?: Recor
16
16
17
17
availableTools.push("append_to_file (for appending content to the end of files)")
18
18
19
-
if(experiments?.["insert_content"]){
20
-
availableTools.push("insert_content (for adding lines to existing files)")
21
-
}
22
19
if(experiments?.["search_and_replace"]){
23
20
availableTools.push("search_and_replace (for finding and replacing individual pieces of text)")
24
21
}
@@ -30,14 +27,6 @@ function getEditingInstructions(diffStrategy?: DiffStrategy, experiments?: Recor
30
27
"- The append_to_file tool adds content to the end of files, such as appending new log entries or adding new data records. This tool will always add the content at the end of the file.",
31
28
)
32
29
}
33
-
34
-
// Additional details for experimental features
35
-
if(experiments?.["insert_content"]){
36
-
instructions.push(
37
-
"- The insert_content tool adds lines of text to files, such as adding a new function to a JavaScript file or inserting a new route in a Python file. This tool will insert it at the specified line location. It can support multiple operations at once.",
38
-
)
39
-
}
40
-
41
30
if(experiments?.["search_and_replace"]){
42
31
instructions.push(
43
32
"- The search_and_replace tool finds and replaces text or regex in files. This tool allows you to search for a specific regex pattern or text and replace it with another value. Be cautious when using this tool to ensure you are replacing the correct text. It can support multiple operations at once.",
0 commit comments