You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/Cline.ts
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1038,7 +1038,7 @@ export class Cline {
1038
1038
: ""
1039
1039
}`+
1040
1040
(responseText
1041
-
? `\n\n${this.chatSettings?.mode==="plan" ? "New message to respond to with plan_mode_response tool (be sure to provide your response in the <response> parameter)" : "New instructions for task continuation"}:\n<user_message>\n${responseText}\n</user_message>`
1041
+
? `\n\n${this.chatSettings?.mode==="plan" ? "New message to respond to with plan_mode_respond tool (be sure to provide your response in the <response> parameter)" : "New instructions for task continuation"}:\n<user_message>\n${responseText}\n</user_message>`
1042
1042
: this.chatSettings.mode==="plan"
1043
1043
? "(The user did not provide a new message. Consider asking them how they'd like you to proceed, or to switch to Act mode to continue with the task.)"
1044
1044
: ""),
@@ -1572,7 +1572,7 @@ export class Cline {
1572
1572
return`[${block.name} for '${block.params.server_name}']`
1573
1573
case"ask_followup_question":
1574
1574
return`[${block.name} for '${block.params.question}']`
// webview invoke sendMessage will send this marker in order to put webview into the proper state (responding to an ask) and as a flag to extension that the user switched to ACT mode.
"\nIn this mode you should focus on information gathering, asking questions, and architecting a solution. Once you have a plan, use the plan_mode_response tool to engage in a conversational back and forth with the user. Do not use the plan_mode_response tool until you've gathered all the information you need e.g. with read_file or ask_followup_question."
3743
+
"\nIn this mode you should focus on information gathering, asking questions, and architecting a solution. Once you have a plan, use the plan_mode_respond tool to engage in a conversational back and forth with the user. Do not use the plan_mode_respond tool until you've gathered all the information you need e.g. with read_file or ask_followup_question."
3744
3744
details+=
3745
3745
'\n(Remember: If it seems the user wants you to use tools only available in Act Mode, you should ask the user to "toggle to Act mode" (use those words) - they will have to manually do this themselves with the Plan/Act toggle button below. You do not have the ability to switch to Act Mode yourself, and must wait for the user to do it themselves once they are satisfied with the plan. You also cannot present an option to toggle to Act mode, as this will be something you need to direct the user to do manually themselves.)'
Copy file name to clipboardExpand all lines: src/core/prompts/system.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -239,18 +239,18 @@ Your final result description here
239
239
<command>Command to demonstrate result (optional)</command>
240
240
</attempt_completion>
241
241
242
-
## plan_mode_response
242
+
## plan_mode_respond
243
243
Description: Respond to the user's inquiry in an effort to plan a solution to the user's task. This tool should be used when you need to provide a response to a question or statement from the user about how you plan to accomplish the task. This tool is only available in PLAN MODE. The environment_details will specify the current mode, if it is not PLAN MODE then you should not use this tool. Depending on the user's message, you may ask questions to get clarification about the user's request, architect a solution to the task, and to brainstorm ideas with the user. For example, if the user's task is to create a website, you may start by asking some clarifying questions, then present a detailed plan for how you will accomplish the task given the context, and perhaps engage in a back and forth to finalize the details before the user switches you to ACT MODE to implement the solution.
244
244
Parameters:
245
245
- response: (required) The response to provide to the user. Do not try to use tools in this parameter, this is simply a chat response.
246
246
- options: (optional) An array of 2-5 options for the user to choose from. Each option should be a string describing a possible choice or path forward in the planning process. This can help guide the discussion and make it easier for the user to provide input on key decisions. You may not always need to provide options, but it may be helpful in many cases where it can save the user from having to type out a response manually. Do NOT present an option to toggle to Act mode, as this will be something you need to direct the user to do manually themselves.
247
247
Usage:
248
-
<plan_mode_response>
248
+
<plan_mode_respond>
249
249
<response>Your response here</response>
250
250
<options>
251
251
Array of options here (optional), e.g. ["Option 1", "Option 2", "Option 3"]
252
252
</options>
253
-
</plan_mode_response>
253
+
</plan_mode_respond>
254
254
255
255
# Tool Use Examples
256
256
@@ -881,11 +881,11 @@ ACT MODE V.S. PLAN MODE
881
881
882
882
In each user message, the environment_details will specify the current mode. There are two modes:
883
883
884
-
- ACT MODE: In this mode, you have access to all tools EXCEPT the plan_mode_response tool.
884
+
- ACT MODE: In this mode, you have access to all tools EXCEPT the plan_mode_respond tool.
885
885
- In ACT MODE, you use tools to accomplish the user's task. Once you've completed the user's task, you use the attempt_completion tool to present the result of the task to the user.
886
-
- PLAN MODE: In this special mode, you have access to the plan_mode_response tool.
886
+
- PLAN MODE: In this special mode, you have access to the plan_mode_respond tool.
887
887
- In PLAN MODE, the goal is to gather information and get context to create a detailed plan for accomplishing the task, which the user will review and approve before they switch you to ACT MODE to implement the solution.
888
-
- In PLAN MODE, when you need to converse with the user or present a plan, you should use the plan_mode_response tool to deliver your response directly, rather than using <thinking> tags to analyze when to respond. Do not talk about using plan_mode_response - just use it directly to share your thoughts and provide helpful answers.
888
+
- In PLAN MODE, when you need to converse with the user or present a plan, you should use the plan_mode_respond tool to deliver your response directly, rather than using <thinking> tags to analyze when to respond. Do not talk about using plan_mode_respond - just use it directly to share your thoughts and provide helpful answers.
0 commit comments