feat: enhance tool triggers and reorder documentation
- Add comprehensive triggers for chat tool including 'ask gemini', 'brainstorm', 'second opinion' - Enhance triggers for all tools with more natural phrases: - think_deeper: added 'deeper analysis', 'critical thinking' - review_code: added 'review my code', 'find security issues' - debug_issue: added 'stack trace', 'crashed', 'what's wrong' - analyze: added 'what does this do', 'how does this work' - review_pending_changes: added 'review diff', 'validate implementation' - Reorder Quick Tool Selection Guide to list chat first - All tests pass (65 tests), ruff clean, black formatted
This commit is contained in:
@@ -116,12 +116,12 @@ Just ask Claude naturally:
|
|||||||
## Available Tools
|
## Available Tools
|
||||||
|
|
||||||
**Quick Tool Selection Guide:**
|
**Quick Tool Selection Guide:**
|
||||||
|
- **Need a thinking partner?** → `chat` (brainstorm ideas, get second opinions, validate approaches)
|
||||||
- **Need deeper thinking?** → `think_deeper` (extends Claude's analysis, finds edge cases)
|
- **Need deeper thinking?** → `think_deeper` (extends Claude's analysis, finds edge cases)
|
||||||
- **Code needs review?** → `review_code` (bugs, security, performance issues)
|
- **Code needs review?** → `review_code` (bugs, security, performance issues)
|
||||||
- **Pre-commit validation?** → `review_pending_changes` (validate git changes before committing)
|
- **Pre-commit validation?** → `review_pending_changes` (validate git changes before committing)
|
||||||
- **Something's broken?** → `debug_issue` (root cause analysis, error tracing)
|
- **Something's broken?** → `debug_issue` (root cause analysis, error tracing)
|
||||||
- **Want to understand code?** → `analyze` (architecture, patterns, dependencies)
|
- **Want to understand code?** → `analyze` (architecture, patterns, dependencies)
|
||||||
- **Need a thinking partner?** → `chat` (brainstorm ideas, get second opinions, validate approaches)
|
|
||||||
- **Check models?** → `list_models` (see available Gemini models)
|
- **Check models?** → `list_models` (see available Gemini models)
|
||||||
- **Server info?** → `get_version` (version and configuration details)
|
- **Server info?** → `get_version` (version and configuration details)
|
||||||
|
|
||||||
|
|||||||
46
config.py
46
config.py
@@ -21,6 +21,23 @@ TEMPERATURE_CREATIVE = 0.7 # For architecture, deep thinking
|
|||||||
|
|
||||||
# Tool trigger phrases for natural language matching
|
# Tool trigger phrases for natural language matching
|
||||||
TOOL_TRIGGERS = {
|
TOOL_TRIGGERS = {
|
||||||
|
"chat": [
|
||||||
|
"chat with gemini",
|
||||||
|
"ask gemini",
|
||||||
|
"brainstorm",
|
||||||
|
"discuss",
|
||||||
|
"get gemini's opinion",
|
||||||
|
"talk to gemini",
|
||||||
|
"gemini's thoughts",
|
||||||
|
"collaborate with gemini",
|
||||||
|
"second opinion",
|
||||||
|
"what does gemini think",
|
||||||
|
"bounce ideas",
|
||||||
|
"thinking partner",
|
||||||
|
"explain",
|
||||||
|
"help me understand",
|
||||||
|
"clarify",
|
||||||
|
],
|
||||||
"think_deeper": [
|
"think_deeper": [
|
||||||
"think deeper",
|
"think deeper",
|
||||||
"ultrathink",
|
"ultrathink",
|
||||||
@@ -32,6 +49,11 @@ TOOL_TRIGGERS = {
|
|||||||
"extended thinking",
|
"extended thinking",
|
||||||
"validate my approach",
|
"validate my approach",
|
||||||
"find edge cases",
|
"find edge cases",
|
||||||
|
"gemini think deeper",
|
||||||
|
"deeper analysis",
|
||||||
|
"extend thinking",
|
||||||
|
"critical thinking",
|
||||||
|
"comprehensive analysis",
|
||||||
],
|
],
|
||||||
"review_code": [
|
"review_code": [
|
||||||
"review",
|
"review",
|
||||||
@@ -44,6 +66,11 @@ TOOL_TRIGGERS = {
|
|||||||
"check this code",
|
"check this code",
|
||||||
"review for",
|
"review for",
|
||||||
"find vulnerabilities",
|
"find vulnerabilities",
|
||||||
|
"review my code",
|
||||||
|
"code problems",
|
||||||
|
"code issues",
|
||||||
|
"find security issues",
|
||||||
|
"performance review",
|
||||||
],
|
],
|
||||||
"debug_issue": [
|
"debug_issue": [
|
||||||
"debug",
|
"debug",
|
||||||
@@ -56,6 +83,13 @@ TOOL_TRIGGERS = {
|
|||||||
"diagnose",
|
"diagnose",
|
||||||
"troubleshoot",
|
"troubleshoot",
|
||||||
"investigate this error",
|
"investigate this error",
|
||||||
|
"stack trace",
|
||||||
|
"exception",
|
||||||
|
"crashed",
|
||||||
|
"broken",
|
||||||
|
"fix this error",
|
||||||
|
"debug this",
|
||||||
|
"what's wrong",
|
||||||
],
|
],
|
||||||
"analyze": [
|
"analyze": [
|
||||||
"analyze",
|
"analyze",
|
||||||
@@ -66,6 +100,13 @@ TOOL_TRIGGERS = {
|
|||||||
"understand",
|
"understand",
|
||||||
"analyze file",
|
"analyze file",
|
||||||
"analyze these files",
|
"analyze these files",
|
||||||
|
"what does this do",
|
||||||
|
"how does this work",
|
||||||
|
"explain this code",
|
||||||
|
"architecture analysis",
|
||||||
|
"code structure",
|
||||||
|
"dependencies",
|
||||||
|
"analyze directory",
|
||||||
],
|
],
|
||||||
"review_pending_changes": [
|
"review_pending_changes": [
|
||||||
"review pending changes",
|
"review pending changes",
|
||||||
@@ -83,5 +124,10 @@ TOOL_TRIGGERS = {
|
|||||||
"pre-commit",
|
"pre-commit",
|
||||||
"before I commit",
|
"before I commit",
|
||||||
"should I commit",
|
"should I commit",
|
||||||
|
"commit ready",
|
||||||
|
"review diff",
|
||||||
|
"check diff",
|
||||||
|
"validate implementation",
|
||||||
|
"review my work",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user