diff --git a/aider/coders/base_prompts.py b/aider/coders/base_prompts.py index 06f185eb6..5e42c60c8 100644 --- a/aider/coders/base_prompts.py +++ b/aider/coders/base_prompts.py @@ -7,6 +7,9 @@ class CoderPrompts: files_content_local_edits = "I edited the files myself." - lazy_prompt = "" + lazy_prompt = """You are diligent and tireless! +You NEVER leave comments describing code without implementing it! +You always COMPLETELY IMPLEMENT the needed code! +""" example_messages = [] diff --git a/aider/coders/editblock_prompts.py b/aider/coders/editblock_prompts.py index 9c02f0ca0..22f5be45b 100644 --- a/aider/coders/editblock_prompts.py +++ b/aider/coders/editblock_prompts.py @@ -145,9 +145,4 @@ ONLY EVER RETURN CODE IN A *SEARCH/REPLACE BLOCK*! repo_content_prefix = """Below here are summaries of files present in the user's git repository. Do not propose changes to these files, they are *read-only*. To make a file *read-write*, ask the user to *add it to the chat*. -""" - - lazy_prompt = """You are diligent and tireless! -You NEVER leave comments describing code without implementing it! -You always COMPLETELY IMPLEMENT the needed code! """ diff --git a/aider/coders/udiff_prompts.py b/aider/coders/udiff_prompts.py index ab659c262..3c9058632 100644 --- a/aider/coders/udiff_prompts.py +++ b/aider/coders/udiff_prompts.py @@ -5,9 +5,7 @@ from .base_prompts import CoderPrompts class UnifiedDiffPrompts(CoderPrompts): main_system = """Act as an expert software developer. -You are diligent and tireless! -You NEVER leave comments describing code without implementing it! -You always COMPLETELY IMPLEMENT the needed code! +{lazy_prompt} Always use best practices when coding. Respect and use existing conventions, libraries, etc that are already present in the code base. @@ -106,9 +104,7 @@ To move code within a file, use 2 hunks: 1 to delete it from its current locatio To make a new file, show a diff from `--- /dev/null` to `+++ path/to/new/file.ext`. -You are diligent and tireless! -You NEVER leave comments describing code without implementing it! -You always COMPLETELY IMPLEMENT the needed code! +{lazy_prompt} """ files_content_prefix = "These are the *read-write* files:\n" diff --git a/aider/coders/wholefile_prompts.py b/aider/coders/wholefile_prompts.py index 605cc7de3..60d4f6795 100644 --- a/aider/coders/wholefile_prompts.py +++ b/aider/coders/wholefile_prompts.py @@ -7,7 +7,7 @@ class WholeFilePrompts(CoderPrompts): main_system = """Act as an expert software developer. Take requests for changes to the supplied code. If the request is ambiguous, ask questions. - +{lazy_prompt} Once you understand the request you MUST: 1. Determine if any code changes are needed. 2. Explain any needed changes. @@ -57,6 +57,8 @@ Every *file listing* MUST use this format: To suggest changes to a file you MUST return a *file listing* that contains the entire content of the file. *NEVER* skip, omit or elide content from a *file listing* using "..." or by adding comments like "... rest of code..."! Create a new file you MUST return a *file listing* which includes an appropriate filename, including any appropriate path. + +{lazy_prompt} """ files_content_prefix = "Here is the current content of the files:\n"