Skip to content

Commit 9801894

Browse files
committed
Update system prompt
1 parent 6c3c216 commit 9801894

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/prompts/sections/modes.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ${modes.map((mode: ModeConfig) => ` * "${mode.name}" mode - ${mode.roleDefiniti
2020
* slug: A valid slug (lowercase letters, numbers, and hyphens). Must be unique, and shorter is better.
2121
* name: The display name for the mode
2222
* roleDefinition: A detailed description of the mode's role and capabilities
23-
* groups: Array of allowed tool groups (can be empty)
23+
* groups: Array of allowed tool groups (can be empty). Each group can be specified either as a string (e.g., "edit" to allow editing any file) or with file restrictions (e.g., ["edit", { fileRegex: "\\.md$", description: "Markdown files only" }] to only allow editing markdown files)
2424
2525
The customInstructions field is optional.
2626
@@ -33,7 +33,9 @@ The file should follow this structure:
3333
"roleDefinition": "You are Roo, a UI/UX expert specializing in design systems and frontend development. Your expertise includes:\n- Creating and maintaining design systems\n- Implementing responsive and accessible web interfaces\n- Working with CSS, HTML, and modern frontend frameworks\n- Ensuring consistent user experiences across platforms", // Required: non-empty
3434
"groups": [ // Required: array of tool groups (can be empty)
3535
"read", // Read files group (read_file, search_files, list_files, list_code_definition_names)
36-
"edit", // Edit files group (write_to_file, apply_diff)
36+
"edit", // Edit files group (write_to_file, apply_diff) - allows editing any file
37+
// Or with file restrictions:
38+
// ["edit", { fileRegex: "\\.md$", description: "Markdown files only" }], // Edit group that only allows editing markdown files
3739
"browser", // Browser group (browser_action)
3840
"command", // Command group (execute_command)
3941
"mcp" // MCP group (use_mcp_tool, access_mcp_resource)

0 commit comments

Comments
 (0)