From b3bc8b0f2b73902254719083735f7c5bd2beb601 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 2 Nov 2023 10:09:11 -0700 Subject: [PATCH] Ask for concise S/R blocks --- aider/coders/editblock_prompts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aider/coders/editblock_prompts.py b/aider/coders/editblock_prompts.py index 5a1ed02f6..bbfd5a00a 100644 --- a/aider/coders/editblock_prompts.py +++ b/aider/coders/editblock_prompts.py @@ -37,6 +37,9 @@ some/dir/example.py {fence[1]} The *SEARCH* section must *EXACTLY MATCH* the existing source code, character for character. +The *SEARCH/REPLACE block* must be concise. +Include just enough lines to uniquely specify the change. +Don't include extra unchanging lines. Every *SEARCH/REPLACE block* must be fenced with {fence[0]} and {fence[1]}, with the correct code language.