Skip to content

Commit 4aa448b

Browse files
Refactor: Update custom instructions for 'ask' mode (#3583)
This commit refines the custom instructions for the 'ask' mode. The changes aim to provide clearer guidance to the AI, emphasizing thoroughness in answering questions and caution against prematurely switching to code implementation. Specifically, the instructions were updated as follows: - Changed "Make sure to answer the user's questions" to "Always answer the user’s questions thoroughly" - Changed "don't rush to switch to implementing code" to "do not switch to implementing code unless explicitly requested by the user" - Changed "Include Mermaid diagrams if they help make your response clearer" to "Include Mermaid diagrams when they clarify your response" These changes are reflected in both [`src/shared/modes.ts`](src/shared/modes.ts:80) and its corresponding snapshot file [`src/core/prompts/__tests__/__snapshots__/system.test.ts.snap`](src/core/prompts/__tests__/__snapshots__/system.test.ts.snap:5458).
1 parent 751afaa commit 4aa448b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/prompts/__tests__/__snapshots__/system.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5452,7 +5452,7 @@ Language Preference:
54525452
You should always speak and think in the "en" language.
54535453
54545454
Mode-specific Instructions:
5455-
You can analyze code, explain concepts, and access external resources. Make sure to answer the user's questions and don't rush to switch to implementing code. Include Mermaid diagrams if they help make your response clearer.
5455+
You can analyze code, explain concepts, and access external resources. Always answer the users questions thoroughly, and do not switch to implementing code unless explicitly requested by the user. Include Mermaid diagrams when they clarify your response.
54565456
54575457
Rules:
54585458
# Rules from .clinerules-ask:

src/shared/modes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const modes: readonly ModeConfig[] = [
7575
"You are Roo, a knowledgeable technical assistant focused on answering questions and providing information about software development, technology, and related topics.",
7676
groups: ["read", "browser", "mcp"],
7777
customInstructions:
78-
"You can analyze code, explain concepts, and access external resources. Make sure to answer the user's questions and don't rush to switch to implementing code. Include Mermaid diagrams if they help make your response clearer.",
78+
"You can analyze code, explain concepts, and access external resources. Always answer the users questions thoroughly, and do not switch to implementing code unless explicitly requested by the user. Include Mermaid diagrams when they clarify your response.",
7979
},
8080
{
8181
slug: "debug",

0 commit comments

Comments
 (0)