From ac1ff231e05b923ce1a09007dde3442aeb12459c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 20 Apr 2025 12:38:09 -0700 Subject: [PATCH] better prompt --- aider/coders/udiff_simple_prompts.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/aider/coders/udiff_simple_prompts.py b/aider/coders/udiff_simple_prompts.py index b604f78dc..706bb1026 100644 --- a/aider/coders/udiff_simple_prompts.py +++ b/aider/coders/udiff_simple_prompts.py @@ -8,9 +8,18 @@ class UnifiedDiffSimplePrompts(UnifiedDiffPrompts): if a simpler wording is desired for this edit format. """ - # For now, we inherit all prompts. Override specific ones below if needed. - # For example, to override the main_system prompt: - # main_system = """ - # A simpler version of the main system prompt for udiff-simple. - # """ - pass + example_messages = [] + + system_reminder = """# File editing rules: + +Return edits similar to unified diffs that `diff -U0` would produce. + +The user's patch tool needs CORRECT patches that apply cleanly against the current contents of the file! +Think carefully and make sure you include and mark all lines that need to be removed or changed as `-` lines. +Make sure you mark all new or modified lines with `+`. +Don't leave out any lines or the diff patch won't apply correctly. + +To make a new file, show a diff from `--- /dev/null` to `+++ path/to/new/file.ext`. + +{lazy_prompt} +"""