refactor: adjust default prompt

This commit is contained in:
Carl-Robert Linnupuu 2025-06-02 00:04:59 +01:00
parent 0f1e0a79a9
commit 0b50f4b42f

View file

@ -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.