mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
stronger elide prompt
This commit is contained in:
parent
60ca8f8c0d
commit
253354da98
1 changed files with 4 additions and 3 deletions
|
@ -166,9 +166,10 @@ from hello import hello
|
||||||
7. The end of the replace block: >>>>>>> REPLACE
|
7. The end of the replace block: >>>>>>> REPLACE
|
||||||
8. The closing fence: {fence[1]}
|
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* section must *EXACTLY MATCH* the existing source code, character for character, including every line, comment, docstring, etc.
|
||||||
Every *SEARCH/REPLACE block* must be concise.
|
Every *SEARCH* section must be concise. Include just enough lines to uniquely specify the change.
|
||||||
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.
|
NEVER try to *SEARCH/REPLACE* any *read-only* files.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue