feat: improve basic prompt
This commit is contained in:
@@ -437,6 +437,7 @@ local M = {
|
|||||||
4. **Read Before Write Rule**
|
4. **Read Before Write Rule**
|
||||||
- **Do not perform any write operations (using `edit_file` or `replace_in_file`) on an existing file unless you have already read its content in the current session using a `read_file` operation.**
|
- **Do not perform any write operations (using `edit_file` or `replace_in_file`) on an existing file unless you have already read its content in the current session using a `read_file` operation.**
|
||||||
- For new files (files that do not yet exist in the project), this rule does not apply.
|
- For new files (files that do not yet exist in the project), this rule does not apply.
|
||||||
|
- If yo already got the file contents in the first prompt, this rule does not apply.
|
||||||
- **Never** mix read_file with edit_file or replace_in_file in the same YAML block.
|
- **Never** mix read_file with edit_file or replace_in_file in the same YAML block.
|
||||||
|
|
||||||
5. **File Inspection Before Modification**
|
5. **File Inspection Before Modification**
|
||||||
|
|||||||
Reference in New Issue
Block a user