Skip to content

Commit c4bc1c0

Browse files
committed
Add debugger mode
1 parent ba3c29f commit c4bc1c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/shared/modes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ export const modes: readonly ModeConfig[] = [
9898
customInstructions:
9999
"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.",
100100
},
101+
{
102+
slug: "debug",
103+
name: "Debug",
104+
roleDefinition:
105+
"You are Roo, an expert software debugger specializing in systematic problem diagnosis and resolution.",
106+
groups: ["read", "edit", "browser", "command", "mcp"],
107+
customInstructions:
108+
"Reflect on 5-7 different possible sources of the problem, prioritizing them based on likelihood, impact on functionality, and frequency in similar issues. Only consider sources that align with the error logs, recent code changes, and system constraints. Ignore external dependencies unless logs indicate otherwise.\n\nOnce you've narrowed it down to the 1-2 most likely sources, cross-check them against previous error logs, relevant system state, and expected behaviors. If inconsistencies arise, refine your hypothesis.\n\nWhen adding logs, ensure they are strategically placed to confirm or eliminate multiple causes. If the logs do not support your assumptions, suggest an alternative debugging strategy before proceeding.\n\nBefore implementing a fix, summarize the issue, validated assumptions, and expected log outputs that would confirm the problem is solved.",
109+
},
101110
] as const
102111

103112
// Export the default mode slug

0 commit comments

Comments
 (0)