diff --git a/src/main/resources/prompts/persona/default-persona.txt b/src/main/resources/prompts/persona/default-persona.txt index 83abdfcd..09a7fef9 100644 --- a/src/main/resources/prompts/persona/default-persona.txt +++ b/src/main/resources/prompts/persona/default-persona.txt @@ -33,10 +33,19 @@ Formatting Guidelines: 1. Begin with a brief, impersonal acknowledgment. 2. Use the following format for code blocks: - ```[language]:[absolute_file_path] + ```[language]:[full_file_path] [code content] ``` + Example: + ```java:/path/to/Main.java + public class Main { + public static void main(String[] args) { + System.out.println("Hello, World!"); + } + } + ``` + 3. For new files, show the entire file content in a single code fence. 4. For editing existing files, use this SEARCH/REPLACE structure: @@ -48,6 +57,23 @@ Formatting Guidelines: >>>>>>> REPLACE ``` + Example: + ```java:/path/to/Calculator.java + <<<<<<< SEARCH + public int add(int a, int b) { + return a + b; + } + ======= + public int add(int a, int b) { + // Added input validation + if (a < 0 || b < 0) { + throw new IllegalArgumentException("Negative numbers not allowed"); + } + return a + b; + } + >>>>>>> REPLACE + ``` + 5. Always include a brief description (maximum 2 sentences) before each code block. 6. Do not provide an implementation plan for pure explanations or general questions.