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
ALL responses MUST show ANY \`language construct\` OR filename reference as clickable, exactly as [\`filename OR language.declaration()\`](relative/file/path.ext:line); line is required for \`syntax\` and optional for filename links. This applies to ALL markdown responses and ALSO those in <attempt_completion>`
10
+
ALL responses MUST show ANY \`language construct\` OR filename reference as clickable, exactly as [\`filename OR language.declaration()\`](relative/file/path.ext:line); line is required for \`syntax\` and optional for filename links. This applies to ALL markdown responses and ALSO those in ${toolUseStyle==="json" ? "attempt_completion" : "<attempt_completion>"/*kilocode_change*/}`
Copy file name to clipboardExpand all lines: src/core/prompts/sections/modes.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ ${allModes
38
38
39
39
// kilocode_change: toolUseStyle
40
40
modesContent+=`
41
-
If the user asks you to create or edit a new mode for this project, you should read the instructions${toolUseStyle!=="json" ? " by using the fetch_instructions tool, like this:\n<fetch_instructions>\n<task>create_mode</task>\n</fetch_instructions>" : "."}`
41
+
If the user asks you to create or edit a new mode for this project, you should read the instructions by using the fetch_instructions tool${toolUseStyle!=="json" ? ", like this:\n<fetch_instructions>\n<task>create_mode</task>\n</fetch_instructions>" : "."}`
- All file paths must be relative to this directory. However, commands may change directories in terminals, so respect working directory specified by the response to <execute_command>.
81
+
`
82
+
rulesContent+=`- All file paths must be relative to this directory. However, commands may change directories in terminals, so respect working directory specified by the response to ${toolUseStyle==="json" ? '"execute_command"' : "<execute_command>"/*kilocode_change*/}.`
83
+
rulesContent+=`
79
84
- You cannot \`cd\` into a different directory to complete a task. You are stuck operating from '${cwd.toPosix()}', so be sure to pass in the correct 'path' parameter when using tools that require a path.
80
85
- Do not use the ~ character or $HOME to refer to the home directory.
81
86
- Before using the execute_command tool, you must first think about the SYSTEM INFORMATION context provided to understand the user's environment and tailor your commands to ensure they are compatible with their system. You must also consider if the command you need to run should be executed in a specific directory outside of the current working directory '${cwd.toPosix()}', and if so prepend with \`cd\`'ing into that directory && then executing the command (as one command since you are stuck operating from '${cwd.toPosix()}'). For example, if you needed to run \`npm install\` in a project outside of '${cwd.toPosix()}', you would need to prepend with a \`cd\` i.e. pseudocode for this would be \`cd (path to project) && (command, in this case npm install)\`.
? " Then if you want to test your work, you might use browser_action to launch the site, wait for the user's response confirming the site was launched along with a screenshot, then perhaps e.g., click a button to test functionality if needed, wait for the user's response confirming the button was clicked along with a screenshot of the new state, before finally closing the browser."
You have access to a set of tools that are executed upon the user's approval. You must use exactly one tool per message, and every assistant message must include a tool call. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use.
8
-
`
10
+
You have access to a set of tools that are executed upon the user's approval. You ${toolUseStyle==="json" ? "MUST USE" : "must use"/*kilocode_change*/} exactly one tool per message, and ${toolUseStyle==="json" ? "EVERY" : "every"/*kilocode_change*/} assistant message ${toolUseStyle==="json" ? "MUST" : "must"/*kilocode_change*/} include a tool call. You use tools step-by-step to accomplish a given task, with each tool use informed by the result of the previous tool use.${
11
+
toolUseStyle==="json"// kilocode_change
12
+
? ""
13
+
: `
9
14
10
-
// kilocode_change: xml-specifix instruction split off
11
-
constxmlInfo=`
12
15
# Tool Use Formatting
13
16
14
17
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
@@ -20,11 +23,5 @@ Tool uses are formatted using XML-style tags. The tool name itself becomes the X
20
23
</actual_tool_name>
21
24
22
25
Always use the actual tool name as the XML tag name for proper parsing and execution.`
0 commit comments