Skip to content

Commit 69d05a3

Browse files
authored
Merge pull request #668 from RooVetGit/clearer_modes_prompt
Clearer modes prompt section
2 parents e2a8a7a + ce072d9 commit 69d05a3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/core/prompts/sections/modes.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ MODES
1616
${modes.map((mode: ModeConfig) => ` * "${mode.name}" mode - ${mode.roleDefinition.split(".")[0]}`).join("\n")}
1717
Custom modes will be referred to by their configured name property.
1818
19-
- 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:
19+
- 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.
20+
21+
- The following fields are required and must not be empty:
2022
* slug: A valid slug (lowercase letters, numbers, and hyphens). Must be unique, and shorter is better.
2123
* name: The display name for the mode
2224
* roleDefinition: A detailed description of the mode's role and capabilities
2325
* 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)
2426
25-
The customInstructions field is optional.
27+
- The customInstructions field is optional.
28+
29+
- 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."
2630
2731
The file should follow this structure:
2832
{

0 commit comments

Comments
 (0)