Skip to content

Commit 36f57ce

Browse files
arafatkatzeCline Evaluationellipsis-dev[bot]
authored
Fix Claude 4 family diff edit prompt (RooCodeInc#3866)
* Fix Claude 4 diff edits prompt * Show gemini 2.5 flash prompt cache * Update src/core/prompts/system.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --------- Co-authored-by: Cline Evaluation <[email protected]> Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent ed0181a commit 36f57ce

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/big-maps-kick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
fix prompt for claude 4 family diff edits

src/core/prompts/system.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ ${
605605
3. Once the file has been edited with either write_to_file or replace_in_file, the system will provide you with the final state of the modified file. Use this updated content as the reference point for any subsequent SEARCH/REPLACE operations, since it reflects any auto-formatting or user-applied changes.
606606
4. All edits are applied in sequence, in the order they are provided
607607
5. All edits must be valid for the operation to succeed - if any edit fails, none will be applied
608+
6. Do not make more than 4 replacements in a single replace_in_file call, as this can lead to errors and make it difficult to track changes. If you need to make more than 4 changes, consider breaking them into multiple replace_in_file calls.
609+
7. Make sure a single old_str in a replace_in_file call is no more than 4 lines, as too many lines can lead to errors. If you need to replace a larger section, break it into smaller blocks.
608610
609611
`
610612
: `

0 commit comments

Comments
 (0)