feat: improve basic prompt

This commit is contained in:
2025-02-13 01:18:42 +01:00
parent 5b972c5c9f
commit 51f7c2c66f

View File

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