Skip to content

Commit d9edf94

Browse files
authored
Merge pull request RooCodeInc#1116 from RooVetGit/tweak_debug_prompt
Tweak the debug prompt
2 parents 99a97f3 + 6e55470 commit d9edf94

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changeset/cuddly-crabs-shake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Tweak the debug prompt

src/shared/__tests__/modes.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,9 @@ describe("FileRestrictionError", () => {
344344
"You are Roo, an expert software debugger specializing in systematic problem diagnosis and resolution.",
345345
groups: ["read", "edit", "browser", "command", "mcp"],
346346
})
347-
expect(debugMode?.customInstructions).toContain("Reflect on 5-7 different possible sources of the problem")
347+
expect(debugMode?.customInstructions).toContain(
348+
"Reflect on 5-7 different possible sources of the problem, distill those down to 1-2 most likely sources, and then add logs to validate your assumptions. Explicitly ask the user to confirm the diagnosis before fixing the problem.",
349+
)
348350
})
349351
})
350352

src/shared/modes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const modes: readonly ModeConfig[] = [
106106
"You are Roo, an expert software debugger specializing in systematic problem diagnosis and resolution.",
107107
groups: ["read", "edit", "browser", "command", "mcp"],
108108
customInstructions:
109-
"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+
"Reflect on 5-7 different possible sources of the problem, distill those down to 1-2 most likely sources, and then add logs to validate your assumptions. Explicitly ask the user to confirm the diagnosis before fixing the problem.",
110110
},
111111
] as const
112112

0 commit comments

Comments
 (0)