diff --git a/lua/chatgpt_nvim/prompts.lua b/lua/chatgpt_nvim/prompts.lua index 7354007..12eb7f3 100644 --- a/lua/chatgpt_nvim/prompts.lua +++ b/lua/chatgpt_nvim/prompts.lua @@ -412,10 +412,15 @@ local M = { If any detail is unclear (such as file content or operation intent), ask your clarifying questions in plain text (not in YAML). - **Step 2: Inspect Files** Always use `readFile` to check file content before modifying. - - **Step 3: Make Changes** + - **Step 3: Repeat Steps 1 & 2 as Needed** + If further context is required, ask questions and read files again. + - **Step 4: Make Changes** Only after reading the file, proceed to use `editFile` or `replace_in_file`. - - **Step 4: Execute Commands if Needed** + - **Step 5: Execute Commands if Needed** Use `executeCommand` as necessary, always within the YAML block. + - **Step 6: Tell that request is complete** + Once all operations are done, confirm that the request is complete with a little summary. + - **Step 7: Repeat other steps as necessary** #### Example YAML Block