From 57ad6cc3ea09aee244d8a076217f649ef9cc8d2d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 10 Dec 2024 07:59:24 -0800 Subject: [PATCH] Update shell cmd prompt: no multi-line, run from project root --- aider/coders/editblock_prompts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/coders/editblock_prompts.py b/aider/coders/editblock_prompts.py index da2acdf95..bad6a9cf2 100644 --- a/aider/coders/editblock_prompts.py +++ b/aider/coders/editblock_prompts.py @@ -35,7 +35,9 @@ ONLY EVER RETURN CODE IN A *SEARCH/REPLACE BLOCK*! Just suggest shell commands this way, not example code. Only suggest complete shell commands that are ready to execute, without placeholders. -Only suggest at most a few shell commands at a time, not more than 1-3. +Only suggest at most a few shell commands at a time, not more than 1-3, one per line. +Do not suggest multi-line shell commands. +All shell commands will run from the root directory of the user's project. Use the appropriate shell based on the user's system info: {platform}