prompt: reformat patch prompt constraints
linuztx committed
Mar 2, 2026 at 12:22 UTC
705115446115aaf1a88b8a02b2074a2b08778ca1
1 file changed
+2
-2
plugins/text_editor/prompts/agent.system.tool.text_editor.md
+2
-2
@@ -45,8 +45,8 @@ from to inclusive \n in content
45
{from:1 to:3 content:"x\n"} replace range
46
{from:2 to:2} delete (no content)
47
{from:2 content:"x\n"} insert before (omit to)
48
-use original line numbers from read. dont adjust for shifts
49
-no overlapping edits
48
+use original line numbers from read
49
+dont adjust for shifts no overlapping edits
50
ensure valid syntax in content (all braces brackets tags closed)
51
only replace exact lines needed dont include surrounding unchanged lines
52
re-read when insert delete or N≠M replace else patch again ok