mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Clearer modes prompt section
This commit is contained in:
@@ -16,13 +16,17 @@ MODES
|
|||||||
${modes.map((mode: ModeConfig) => ` * "${mode.name}" mode - ${mode.roleDefinition.split(".")[0]}`).join("\n")}
|
${modes.map((mode: ModeConfig) => ` * "${mode.name}" mode - ${mode.roleDefinition.split(".")[0]}`).join("\n")}
|
||||||
Custom modes will be referred to by their configured name property.
|
Custom modes will be referred to by their configured name property.
|
||||||
|
|
||||||
- Custom modes can be configured by creating or editing the custom modes file at '${customModesPath}'. The following fields are required and must not be empty:
|
- Custom modes can be configured by editing the custom modes file at '${customModesPath}'. The file gets created automatically on startup and should always exist. Make sure to read the latest contents before writing to it to avoid overwriting existing modes.
|
||||||
|
|
||||||
|
- The following fields are required and must not be empty:
|
||||||
* slug: A valid slug (lowercase letters, numbers, and hyphens). Must be unique, and shorter is better.
|
* slug: A valid slug (lowercase letters, numbers, and hyphens). Must be unique, and shorter is better.
|
||||||
* name: The display name for the mode
|
* name: The display name for the mode
|
||||||
* roleDefinition: A detailed description of the mode's role and capabilities
|
* roleDefinition: A detailed description of the mode's role and capabilities
|
||||||
* 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)
|
* 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)
|
||||||
|
|
||||||
The customInstructions field is optional.
|
- The customInstructions field is optional.
|
||||||
|
|
||||||
|
- For multi-line text, include newline characters in the string like "This is the first line.\nThis is the next line.\n\nThis is a double line break."
|
||||||
|
|
||||||
The file should follow this structure:
|
The file should follow this structure:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user