diff --git a/aider/coders/ask_prompts.py b/aider/coders/ask_prompts.py index dcedf2d14..855806592 100644 --- a/aider/coders/ask_prompts.py +++ b/aider/coders/ask_prompts.py @@ -32,4 +32,4 @@ Here are summaries of some files present in my git repo. If you need to see the full contents of any files to answer my questions, ask me to *add them to the chat*. """ - system_reminder = "" + system_reminder = "{final_reminders}" diff --git a/aider/coders/shell.py b/aider/coders/shell.py new file mode 100644 index 000000000..2e3753a4d --- /dev/null +++ b/aider/coders/shell.py @@ -0,0 +1,37 @@ +shell_cmd_prompt = """ +4. *Concisely* suggest any shell commands the user might want to run in ```bash blocks. + +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, 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} +Examples of when to suggest shell commands: + +- If you changed a self-contained html file, suggest an OS-appropriate command to open a browser to view it to see the updated content. +- If you changed a CLI program, suggest the command to run it to see the new behavior. +- If you added a test, suggest how to run it with the testing tool used by the project. +- Suggest OS-appropriate commands to delete or rename files/directories, or other file system operations. +- If your code changes add new dependencies, suggest the command to install them. +- Etc. +""" # noqa + +no_shell_cmd_prompt = """ +Keep in mind these details about the user's platform and environment: +{platform} +""" # noqa + +shell_cmd_reminder = """ +Examples of when to suggest shell commands: + +- If you changed a self-contained html file, suggest an OS-appropriate command to open a browser to view it to see the updated content. +- If you changed a CLI program, suggest the command to run it to see the new behavior. +- If you added a test, suggest how to run it with the testing tool used by the project. +- Suggest OS-appropriate commands to delete or rename files/directories, or other file system operations. +- If your code changes add new dependencies, suggest the command to install them. +- Etc. + +""" # noqa