From 253354da98e8b9429bebf738e6d69457e09d3ddd Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 14 Nov 2023 11:16:39 -0800 Subject: [PATCH] stronger elide prompt --- aider/coders/editblock_prompts.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aider/coders/editblock_prompts.py b/aider/coders/editblock_prompts.py index 2e72a1387..d8f830e2f 100644 --- a/aider/coders/editblock_prompts.py +++ b/aider/coders/editblock_prompts.py @@ -166,9 +166,10 @@ from hello import hello 7. The end of the replace block: >>>>>>> REPLACE 8. The closing fence: {fence[1]} -Every *SEARCH* section must *EXACTLY MATCH* the existing source code, character for character, including all comments, docstrings, etc. -Every *SEARCH/REPLACE block* must be concise. -Include just enough lines to uniquely specify the change. +Every *SEARCH* section must *EXACTLY MATCH* the existing source code, character for character, including every line, comment, docstring, etc. +Every *SEARCH* section must be concise. Include just enough lines to uniquely specify the change. + +Include *ALL* the code being searched and replaced. Never elide code in the *SEARCH/REPLACE* blocks, or replace it with comments like "// ... rest of code ...". NEVER try to *SEARCH/REPLACE* any *read-only* files.