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: .roomodes
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
{
2
2
"customModes": [
3
3
{
4
-
"slug": "translator",
5
-
"name": "Translator",
4
+
"slug": "translate",
5
+
"name": "Translate",
6
6
"roleDefinition": "You are Roo, a linguistic specialist focused on translating and managing localization files. Your responsibility is to help maintain and update translation files for the application, ensuring consistency and accuracy across all language resources.",
Copy file name to clipboardExpand all lines: src/core/prompts/__tests__/__snapshots__/system.test.ts.snap
+27-3Lines changed: 27 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -132,19 +132,27 @@ Example: Requesting to write to frontend-config.json
132
132
</write_to_file>
133
133
134
134
## execute_command
135
-
Description: Request to execute a CLI command on the system. Use this when you need to perform system operations or run specific commands to accomplish any step in the user's task. You must tailor your command to the user's system and provide a clear explanation of what the command does. For command chaining, use the appropriate chaining syntax for the user's shell. Prefer to execute complex CLI commands over creating executable scripts, as they are more flexible and easier to run. Commands will be executed in the current working directory: /test/path
135
+
Description: Request to execute a CLI command on the system. Use this when you need to perform system operations or run specific commands to accomplish any step in the user's task. You must tailor your command to the user's system and provide a clear explanation of what the command does. For command chaining, use the appropriate chaining syntax for the user's shell. Prefer to execute complex CLI commands over creating executable scripts, as they are more flexible and easier to run. Prefer relative commands and paths that avoid location sensitivity for terminal consistency, e.g: \`touch ./testdata/example.file\`, \`dir ./examples/model1/data/yaml\`, or \`go test ./cmd/front --config ./cmd/front/config.yml\`. If directed by the user, you may open a terminal in a different directory by using the \`cwd\` parameter.
136
136
Parameters:
137
137
- command: (required) The CLI command to execute. This should be valid for the current operating system. Ensure the command is properly formatted and does not contain any harmful instructions.
138
+
- cwd: (optional) The working directory to execute the command in (default: /test/path)
138
139
Usage:
139
140
<execute_command>
140
141
<command>Your command here</command>
142
+
<cwd>Working directory path (optional)</cwd>
141
143
</execute_command>
142
144
143
145
Example: Requesting to execute npm run dev
144
146
<execute_command>
145
147
<command>npm run dev</command>
146
148
</execute_command>
147
149
150
+
Example: Requesting to execute ls in a specific directory if directed
151
+
<execute_command>
152
+
<command>ls -la</command>
153
+
<cwd>/home/user/projects</cwd>
154
+
</execute_command>
155
+
148
156
## ask_followup_question
149
157
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.
150
158
Parameters:
@@ -543,19 +551,27 @@ Example: Replace all occurrences of "old" with "new" using regex
543
551
</search_and_replace>
544
552
545
553
## execute_command
546
-
Description: Request to execute a CLI command on the system. Use this when you need to perform system operations or run specific commands to accomplish any step in the user's task. You must tailor your command to the user's system and provide a clear explanation of what the command does. For command chaining, use the appropriate chaining syntax for the user's shell. Prefer to execute complex CLI commands over creating executable scripts, as they are more flexible and easier to run. Commands will be executed in the current working directory: /test/path
554
+
Description: Request to execute a CLI command on the system. Use this when you need to perform system operations or run specific commands to accomplish any step in the user's task. You must tailor your command to the user's system and provide a clear explanation of what the command does. For command chaining, use the appropriate chaining syntax for the user's shell. Prefer to execute complex CLI commands over creating executable scripts, as they are more flexible and easier to run. Prefer relative commands and paths that avoid location sensitivity for terminal consistency, e.g: \`touch ./testdata/example.file\`, \`dir ./examples/model1/data/yaml\`, or \`go test ./cmd/front --config ./cmd/front/config.yml\`. If directed by the user, you may open a terminal in a different directory by using the \`cwd\` parameter.
547
555
Parameters:
548
556
- command: (required) The CLI command to execute. This should be valid for the current operating system. Ensure the command is properly formatted and does not contain any harmful instructions.
557
+
- cwd: (optional) The working directory to execute the command in (default: /test/path)
549
558
Usage:
550
559
<execute_command>
551
560
<command>Your command here</command>
561
+
<cwd>Working directory path (optional)</cwd>
552
562
</execute_command>
553
563
554
564
Example: Requesting to execute npm run dev
555
565
<execute_command>
556
566
<command>npm run dev</command>
557
567
</execute_command>
558
568
569
+
Example: Requesting to execute ls in a specific directory if directed
570
+
<execute_command>
571
+
<command>ls -la</command>
572
+
<cwd>/home/user/projects</cwd>
573
+
</execute_command>
574
+
559
575
## ask_followup_question
560
576
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.
561
577
Parameters:
@@ -923,19 +939,27 @@ Example: Replace all occurrences of "old" with "new" using regex
923
939
</search_and_replace>
924
940
925
941
## execute_command
926
-
Description: Request to execute a CLI command on the system. Use this when you need to perform system operations or run specific commands to accomplish any step in the user's task. You must tailor your command to the user's system and provide a clear explanation of what the command does. For command chaining, use the appropriate chaining syntax for the user's shell. Prefer to execute complex CLI commands over creating executable scripts, as they are more flexible and easier to run. Commands will be executed in the current working directory: /test/path
942
+
Description: Request to execute a CLI command on the system. Use this when you need to perform system operations or run specific commands to accomplish any step in the user's task. You must tailor your command to the user's system and provide a clear explanation of what the command does. For command chaining, use the appropriate chaining syntax for the user's shell. Prefer to execute complex CLI commands over creating executable scripts, as they are more flexible and easier to run. Prefer relative commands and paths that avoid location sensitivity for terminal consistency, e.g: \`touch ./testdata/example.file\`, \`dir ./examples/model1/data/yaml\`, or \`go test ./cmd/front --config ./cmd/front/config.yml\`. If directed by the user, you may open a terminal in a different directory by using the \`cwd\` parameter.
927
943
Parameters:
928
944
- command: (required) The CLI command to execute. This should be valid for the current operating system. Ensure the command is properly formatted and does not contain any harmful instructions.
945
+
- cwd: (optional) The working directory to execute the command in (default: /test/path)
929
946
Usage:
930
947
<execute_command>
931
948
<command>Your command here</command>
949
+
<cwd>Working directory path (optional)</cwd>
932
950
</execute_command>
933
951
934
952
Example: Requesting to execute npm run dev
935
953
<execute_command>
936
954
<command>npm run dev</command>
937
955
</execute_command>
938
956
957
+
Example: Requesting to execute ls in a specific directory if directed
958
+
<execute_command>
959
+
<command>ls -la</command>
960
+
<cwd>/home/user/projects</cwd>
961
+
</execute_command>
962
+
939
963
## ask_followup_question
940
964
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.
Copy file name to clipboardExpand all lines: src/core/prompts/sections/custom-instructions.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,9 @@ export async function addCustomInstructions(
47
47
48
48
// Add language preference if provided
49
49
if(options.language){
50
-
sections.push(`Language Preference:\nYou should always speak and think in the "${options.language}" language.`)
50
+
sections.push(
51
+
`Language Preference:\nYou should always speak and think in the "${options.language}" language unless the user gives you instructions below to do otherwise.`,
0 commit comments