From 8c07ad1eb25245369dd8f7c5b7f52cc0cc6ee0d6 Mon Sep 17 00:00:00 2001 From: Fahad Date: Tue, 10 Jun 2025 11:37:57 +0400 Subject: [PATCH] feat: enhance debug_issue tool description to encourage sharing large diagnostic files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- tools/debug_issue.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/debug_issue.py b/tools/debug_issue.py index 87680f2..fc00873 100644 --- a/tools/debug_issue.py +++ b/tools/debug_issue.py @@ -36,11 +36,15 @@ class DebugIssueTool(BaseTool): def get_description(self) -> str: 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. " - "Triggers: 'debug this', 'why is this failing', 'root cause', 'trace error'. " - "I'll analyze the issue, find root causes, and provide step-by-step solutions. " - "Include error messages, stack traces, and relevant code for best results. " + "Triggers: 'debug this', 'why is this failing', 'root cause', 'trace error', 'diagnose issue'. " + "IMPORTANT: Share diagnostic files liberally! Gemini can handle up to 1M tokens, so include: " + "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, " "'medium' for standard debugging (default), 'high' for complex system issues, " "'max' for extremely challenging bugs requiring deepest analysis."