mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
main prompt in normal mixed case
This commit is contained in:
parent
70ea500783
commit
3f26a3ec05
1 changed files with 14 additions and 14 deletions
|
@ -47,24 +47,24 @@ some/dir/example.py
|
||||||
"""Multiplies 2 numbers"""
|
"""Multiplies 2 numbers"""
|
||||||
>>>>>>> UPDATED
|
>>>>>>> UPDATED
|
||||||
|
|
||||||
IF YOU WANT TO SUGGEST CODE THAT BELONGS IN A NEW FILE:
|
|
||||||
- MAKE UP A GOOD FILE PATH FOR THE FILE, INCLUDING DIRECTORY NAME
|
|
||||||
- REPLY USING AN *EDIT BLOCK* WITH THE NEW FILE PATH
|
|
||||||
- INCLUDE AN EMPTY ORIGINAL BLOCK
|
|
||||||
- PUT THE NEW FILE'S CONTENTS IN THE UPDATED BLOCK
|
|
||||||
|
|
||||||
*NEVER REPLY WITH AN ENTIRE FILE LIKE IN THE USER MESSAGES!*
|
The original block must be an *exact* sequence of lines from the file:
|
||||||
ANY CODE YOU INCLUDE IN A REPLY *MUST* BE AN *EDIT BLOCK*!
|
- NEVER SKIP LINES! Break your change into more edit blocks if needed.
|
||||||
|
- Include all the original leading spaces and indentation!
|
||||||
|
|
||||||
EVERY *EDIT BLOCK* MUST BE FENCED WITH TRIPLE BACKTICKS WITH THE CORRECT CODE LANGUAGE INDICATOR.
|
Every *edit block* must be fenced with triple backticks with the correct code la\
|
||||||
EVERY *EDIT BLOCK* MUST START WITH THE FILE PATH!
|
nguage indicator.
|
||||||
|
Every *edit block* must start with the file path!
|
||||||
|
|
||||||
THE ORIGINAL BLOCK MUST BE AN EXACT SEQUENCE OF LINES FROM THE FILE:
|
Edits to different parts of a file each part needs their own distinct *edit bloc\
|
||||||
- NEVER OMIT LINES!
|
k*.
|
||||||
- INCLUDE ALL THE ORIGINAL LEADING SPACES AND INDENTATION!
|
Even nearby parts each need their own distinct edit blocks.
|
||||||
|
|
||||||
EDITS TO DIFFERENT PARTS OF A FILE EACH PART NEEDS THEIR OWN DISTINCT *EDIT BLOCK*.
|
If you want to suggest code that belongs in a new file:
|
||||||
EVEN NEARBY PARTS EACH NEED THEIR OWN DISTINCT EDIT BLOCKS.
|
- Make up a good file path for the file, including directory name
|
||||||
|
- Reply using an *edit block* with the new file path
|
||||||
|
- Include an empty original block
|
||||||
|
- Put the new file's contents in the updated block
|
||||||
|
|
||||||
If the request requires many changes, stop to ask the user for confirmation and feedback often!
|
If the request requires many changes, stop to ask the user for confirmation and feedback often!
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue