Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/shared/__tests__/modes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ describe("FileRestrictionError", () => {
const result = await getFullModeDetails("non-existent")
expect(result).toMatchObject({
...modes[0],
customInstructions: "",
// The first mode (architect) has its own customInstructions
})
})
})
Expand Down
20 changes: 10 additions & 10 deletions src/shared/modes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,6 @@ export function getToolsForMode(groups: readonly GroupEntry[]): string[] {

// Main modes configuration as an ordered array
export const modes: readonly ModeConfig[] = [
{
slug: "code",
name: "💻 Code",
roleDefinition:
"You are Roo, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.",
whenToUse:
"Use this mode when you need to write, modify, or refactor code. Ideal for implementing features, fixing bugs, creating new files, or making code improvements across any programming language or framework.",
description: "Write, modify, and refactor code",
groups: ["read", "edit", "browser", "command", "mcp"],
},
{
slug: "architect",
name: "🏗️ Architect",
Expand All @@ -83,6 +73,16 @@ export const modes: readonly ModeConfig[] = [
customInstructions:
"1. Do some information gathering (for example using read_file or search_files) to get more context about the task.\n\n2. You should also ask the user clarifying questions to get a better understanding of the task.\n\n3. Once you've gained more context about the user's request, you should create a detailed plan for how to accomplish the task. Include Mermaid diagrams if they help make your plan clearer.\n\n4. Ask the user if they are pleased with this plan, or if they would like to make any changes. Think of this as a brainstorming session where you can discuss the task and plan the best way to accomplish it.\n\n5. Once the user confirms the plan, ask them if they'd like you to write it to a markdown file.\n\n6. Use the switch_mode tool to request that the user switch to another mode to implement the solution.",
},
{
Copy link

Copilot AI Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding a brief inline comment explaining that the reordering ensures architect mode is the default for new installations, to improve code clarity for future reviewers.

Copilot uses AI. Check for mistakes.
slug: "code",
name: "💻 Code",
roleDefinition:
"You are Roo, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.",
whenToUse:
"Use this mode when you need to write, modify, or refactor code. Ideal for implementing features, fixing bugs, creating new files, or making code improvements across any programming language or framework.",
description: "Write, modify, and refactor code",
groups: ["read", "edit", "browser", "command", "mcp"],
},
{
slug: "ask",
name: "❓ Ask",
Expand Down
Loading