feat: enhance debug_issue tool description to encourage sharing large diagnostic files

- Emphasize Gemini's 1M token capacity in the description
- Explicitly encourage sharing large log files, stack traces, memory dumps
- Add 'diagnose issue' as a trigger phrase
- Instruct Claude to proactively use this tool for debugging
- Encourage sharing comprehensive file paths rather than snippets
- Make clear that more context leads to better debugging analysis

This ensures Claude understands it should liberally share diagnostic
files and logs when debugging, taking full advantage of Gemini's
massive context window for thorough root cause analysis.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Fahad
2025-06-10 11:37:57 +04:00
parent beb0b7fe9b
commit 8c07ad1eb2

View File

@@ -36,11 +36,15 @@ class DebugIssueTool(BaseTool):
def get_description(self) -> str: def get_description(self) -> str:
return ( return (
"DEBUG & ROOT CAUSE ANALYSIS - Expert debugging for complex issues. " "DEBUG & ROOT CAUSE ANALYSIS - Expert debugging for complex issues with 1M token capacity. "
"Use this when you need help tracking down bugs or understanding errors. " "Use this when you need help tracking down bugs or understanding errors. "
"Triggers: 'debug this', 'why is this failing', 'root cause', 'trace error'. " "Triggers: 'debug this', 'why is this failing', 'root cause', 'trace error', 'diagnose issue'. "
"I'll analyze the issue, find root causes, and provide step-by-step solutions. " "IMPORTANT: Share diagnostic files liberally! Gemini can handle up to 1M tokens, so include: "
"Include error messages, stack traces, and relevant code for best results. " "large log files, full stack traces, memory dumps, diagnostic outputs, multiple related files, "
"entire modules, test results, configuration files - anything that might help debug the issue. "
"Claude should proactively use this tool whenever debugging is needed and share comprehensive "
"file paths rather than snippets. Include error messages, stack traces, logs, and ALL relevant "
"code files as absolute paths. The more context, the better the debugging analysis. "
"Choose thinking_mode based on issue complexity: 'low' for simple errors, " "Choose thinking_mode based on issue complexity: 'low' for simple errors, "
"'medium' for standard debugging (default), 'high' for complex system issues, " "'medium' for standard debugging (default), 'high' for complex system issues, "
"'max' for extremely challenging bugs requiring deepest analysis." "'max' for extremely challenging bugs requiring deepest analysis."