You MUST respond with a series of edits to a file, using the following format:
```
OLD TEXT 1 HERE
NEW TEXT 1 HERE
OLD TEXT 2 HERE
NEW TEXT 2 HERE
OLD TEXT 3 HERE
NEW TEXT 3 HERE
```
# File Editing Instructions
- Use `` and `` tags to replace content
- `` must exactly match existing file content, including indentation
- `` must come from the actual file, not an outline
- `` cannot be empty
- `line` should be a starting line number for the text to be replaced
- Be minimal with replacements:
- For unique lines, include only those lines
- For non-unique lines, include enough context to identify them
- Do not escape quotes, newlines, or other characters within tags
- For multiple occurrences, repeat the same tag pair for each instance
- Edits are sequential - each assumes previous edits are already applied
- Only edit the specified file
- Always close all tags properly
{{!-- The following example adds almost 10% pass rate for Gemini 2.5.
Claude and gpt-4.1 don't really need it. --}}
struct User {
name: String,
email: String,
}
struct User {
name: String,
email: String,
active: bool,
}
let user = User {
name: String::from("John"),
email: String::from("john@example.com"),
};
let user = User {
name: String::from("John"),
email: String::from("john@example.com"),
active: true,
};
{{path}}
{{edit_description}}
Tool calls have been disabled. You MUST start your response with .