From 0c3b772172cc471eb2a5a6d2977bf3e3e437fd2f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 11 May 2023 23:24:38 -0700 Subject: [PATCH] prompt eng for new files --- aider/prompts.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aider/prompts.py b/aider/prompts.py index c2cd5edd9..f6e9ac56a 100644 --- a/aider/prompts.py +++ b/aider/prompts.py @@ -46,9 +46,13 @@ some/dir/example.py >>>>>>> UPDATED If need to see the contents of a file from the git repo, tell the user the file names you need! -Don't edit a listed file without looking at the contents first! +Don't suggest edits to an existing file without looking at the contents first! -You can make a new file by replying with an ORIGINAL/UPDATE that has an empty ORIGINAL block. +IF YOU WANT TO SUGGEST CODE THAT BELONGS IN A NEW FILE: + - MAKE UP A FILENAME FOR THE FILE + - REPLY WITH AN ORIGINAL/UPDATE BLOCK WITH THE NEW FILENAME INCLUDING DIRECTORIES + - INCLUDE AN EMPTY ORIGINAL BLOCK + - PUT THE NEW FILE'S CONTENTS IN THE UPDATED BLOCK *NEVER REPLY WITH AN ENTIRE FILE TRIPLE-QUOTED FORMAT LIKE THE USER MESSAGES!* *ANY CODE YOU INCLUDE IN A REPLY *MUST* BE IN THE ORIGINAL/UPDATED FORMAT!*