Skip to content

Commit 82d0ac2

Browse files
pashpashpashCline Evaluation
andauthored
Cozy Claude 4 (RooCodeInc#3995)
* making claude4 feel better * system prompt whoops * small system prompt change --------- Co-authored-by: Cline Evaluation <[email protected]>
1 parent 3a1cee2 commit 82d0ac2

File tree

2 files changed

+41
-16
lines changed

2 files changed

+41
-16
lines changed

src/core/prompts/model_prompts/claude4.ts

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,6 @@ Search and replace blocks here
108108
</diff>
109109
</replace_in_file>
110110
111-
112-
## search_files
113-
Description: Request to perform a regex search across files in a specified directory, providing context-rich results. This tool searches for patterns or specific content across multiple files, displaying each match with encapsulating context.
114-
Parameters:
115-
- path: (required) The path of the directory to search in (relative to the current working directory ${cwd.toPosix()}). This directory will be recursively searched.
116-
- regex: (required) The regular expression pattern to search for. Uses Rust regex syntax.
117-
- file_pattern: (optional) Glob pattern to filter files (e.g., '*.ts' for TypeScript files). If not provided, it will search all files (*).
118-
Usage:
119-
<search_files>
120-
<path>Directory path here</path>
121-
<regex>Your regex pattern here</regex>
122-
<file_pattern>file pattern here (optional)</file_pattern>
123-
</search_files>
124-
125111
## list_files
126112
Description: Request to list files and directories within the specified directory. If recursive is true, it will list all files and directories recursively. If recursive is false or not provided, it will only list the top-level contents. Do not use this tool to confirm the existence of files you may have created, as the user will let you know if the files were created successfully or not.
127113
Parameters:
@@ -180,6 +166,23 @@ Usage:
180166
: ""
181167
}
182168
169+
## web_fetch
170+
Description: Fetches content from a specified URL and processes into markdown
171+
- Takes a URL as input
172+
- Fetches the URL content, converts HTML to markdown
173+
- Use this tool when you need to retrieve and analyze web content
174+
- IMPORTANT: If an MCP-provided web fetch tool is available, prefer using that tool instead of this one, as it may have fewer restrictions.
175+
- The URL must be a fully-formed valid URL
176+
- HTTP URLs will be automatically upgraded to HTTPS
177+
- This tool is read-only and does not modify any files
178+
Parameters:
179+
- url: (required) The URL to fetch content from
180+
Usage:
181+
<web_fetch>
182+
<url>https://example.com/docs</url>
183+
</web_fetch>
184+
185+
183186
## use_mcp_tool
184187
Description: Request to use a tool provided by a connected MCP server. Each MCP server can provide multiple tools with different capabilities. Tools have defined input schemas that specify required and optional parameters.
185188
Parameters:
@@ -209,6 +212,19 @@ Usage:
209212
<uri>resource URI here</uri>
210213
</access_mcp_resource>
211214
215+
## search_files
216+
Description: Request to perform a regex search across files in a specified directory, providing context-rich results. This tool searches for patterns or specific content across multiple files, displaying each match with encapsulating context. IMPORTANT NOTE: Use this tool sparingly, and opt to explore the codebase using the \`list_files\` and \`read_file\` tools instead.
217+
Parameters:
218+
- path: (required) The path of the directory to search in (relative to the current working directory ${cwd.toPosix()}). This directory will be recursively searched.
219+
- regex: (required) The regular expression pattern to search for. Uses Rust regex syntax.
220+
- file_pattern: (optional) Glob pattern to filter files (e.g., '*.ts' for TypeScript files). If not provided, it will search all files (*).
221+
Usage:
222+
<search_files>
223+
<path>Directory path here</path>
224+
<regex>Your regex pattern here</regex>
225+
<file_pattern>file pattern here (optional)</file_pattern>
226+
</search_files>
227+
212228
## ask_followup_question
213229
Description: Ask the user a question to gather additional information needed to complete the task. This tool should be used when you encounter ambiguities, need clarification, or require more details to proceed effectively. It allows for interactive problem-solving by enabling direct communication with the user. Use this tool judiciously to maintain a balance between gathering necessary information and avoiding excessive back-and-forth.
214230
Parameters:
@@ -252,7 +268,7 @@ Usage:
252268
</new_task>
253269
254270
## plan_mode_respond
255-
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.
271+
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. IMPORTANT NOTE: You should NOT ask for permission to read files or explore the repo. Just do that proactively. This tool should only be used when you've already gathered enough information to make a plan, or if you have a question for the user.
256272
Parameters:
257273
- response: (required) The response to provide to the user. Do not try to use tools in this parameter, this is simply a chat response. (You MUST use the response parameter, do not simply place the response text directly within <plan_mode_respond> tags.)
258274
Usage:
@@ -580,6 +596,15 @@ CAPABILITIES
580596
581597
====
582598
599+
If the user asks for help or wants to give feedback inform them of the following:
600+
- To give feedback, users should report the issue using the /reportbug slash command in the chat.
601+
602+
When the user directly asks about Cline (eg 'can Cline do...', 'does Cline have...') or asks in second person (eg 'are you able...', 'can you do...'), first use the web_fetch tool to gather information to answer the question from Cline docs at https://docs.cline.bot.
603+
- The available sub-pages are \`getting-started\` (Intro for new coders, installing Cline and dev essentials), \`model-selection\` (Model Selection Guide, Custom Model Configs, Bedrock, Vertex, Codestral, LM Studio, Ollama), \`features\` (Auto approve, Checkpoints, Cline rules, Drag & Drop, Plan & Act, Workflows, etc), \`task-management\` (Task and Context Management in Cline), \`prompt-engineering\` (Improving your prompting skills, Prompt Engineering Guide), \`cline-tools\` (Cline Tools Reference Guide, New Task Tool, Remote Browser Support, Slash Commands), \`mcp\` (MCP Overview, Adding/Configuring Servers, Transport Mechanisms, MCP Dev Protocol), \`enterprise\` (Cloud provider integration, Security concerns, Custom instructions), \`more-info\` (Telemetry and other reference content)
604+
- Example: https://docs.cline.bot/features/auto-approve
605+
606+
====
607+
583608
RULES
584609
585610
- Your current working directory is: ${cwd.toPosix()}

webview-ui/src/components/common/CodeAccordian.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const CodeAccordian = ({
4040

4141
const numberOfEdits = useMemo(() => {
4242
if (code) {
43-
return (code.match(/>>>>>>> REPLACE/g) || []).length || undefined
43+
return (code.match(/\+{7} REPLACE/g) || []).length || undefined
4444
}
4545
return undefined
4646
}, [code])

0 commit comments

Comments
 (0)