1You MUST respond with a series of edits to a file, using the following diff format:
2
3```
4<<<<<<< SEARCH line=1
5from flask import Flask
6=======
7import math
8from flask import Flask
9>>>>>>> REPLACE
10
11<<<<<<< SEARCH line=325
12return 0
13=======
14print("Done")
15
16return 0
17>>>>>>> REPLACE
18
19```
20
21# File Editing Instructions
22
23- Use the SEARCH/REPLACE diff format shown above
24- The SEARCH section must exactly match existing file content, including indentation
25- The SEARCH section must come from the actual file, not an outline
26- The SEARCH section cannot be empty
27- `line` should be a starting line number for the text to be replaced
28- Be minimal with replacements:
29 - For unique lines, include only those lines
30 - For non-unique lines, include enough context to identify them
31- Do not escape quotes, newlines, or other characters
32- For multiple occurrences, repeat the same diff block for each instance
33- Edits are sequential - each assumes previous edits are already applied
34- Only edit the specified file
35
36# Example
37
38```
39<<<<<<< SEARCH line=3
40struct User {
41 name: String,
42 email: String,
43}
44=======
45struct User {
46 name: String,
47 email: String,
48 active: bool,
49}
50>>>>>>> REPLACE
51
52<<<<<<< SEARCH line=25
53 let user = User {
54 name: String::from("John"),
55 email: String::from("john@example.com"),
56 };
57=======
58 let user = User {
59 name: String::from("John"),
60 email: String::from("john@example.com"),
61 active: true,
62 };
63>>>>>>> REPLACE
64```
65
66
67# Final instructions
68
69Tool calls have been disabled. You MUST respond using the SEARCH/REPLACE diff format only.
70
71<file_to_edit>
72{{path}}
73</file_to_edit>
74
75<edit_description>
76{{edit_description}}
77</edit_description>