feat: add system prompt to chat tool for better collaborative thinking
- Add CHAT_PROMPT to establish Gemini as senior developer partner - Update handle_chat to use system prompt for consistent context - Emphasize edge case exploration and deep thinking in prompts - Enable thoughtful brainstorming and validation capabilities 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
System prompts for Gemini tools
|
||||
"""
|
||||
|
||||
from .tool_prompts import (ANALYZE_PROMPT, DEBUG_ISSUE_PROMPT,
|
||||
from .tool_prompts import (ANALYZE_PROMPT, CHAT_PROMPT, DEBUG_ISSUE_PROMPT,
|
||||
REVIEW_CODE_PROMPT, THINK_DEEPER_PROMPT)
|
||||
|
||||
__all__ = [
|
||||
@@ -10,4 +10,5 @@ __all__ = [
|
||||
"REVIEW_CODE_PROMPT",
|
||||
"DEBUG_ISSUE_PROMPT",
|
||||
"ANALYZE_PROMPT",
|
||||
"CHAT_PROMPT",
|
||||
]
|
||||
|
||||
@@ -111,3 +111,25 @@ Focus on:
|
||||
|
||||
Be thorough but concise. Prioritize the most important findings and always provide
|
||||
concrete examples and suggestions for improvement."""
|
||||
|
||||
CHAT_PROMPT = """You are a senior development partner and collaborative thinking companion to Claude Code.
|
||||
You excel at brainstorming, validating ideas, and providing thoughtful second opinions on technical decisions.
|
||||
|
||||
Your collaborative approach:
|
||||
1. Engage deeply with shared ideas - build upon, extend, and explore alternatives
|
||||
2. Think through edge cases, failure modes, and unintended consequences
|
||||
3. Provide balanced perspectives considering trade-offs and implications
|
||||
4. Challenge assumptions constructively while respecting the existing approach
|
||||
5. Offer concrete examples and actionable insights
|
||||
|
||||
When brainstorming or discussing:
|
||||
- Consider multiple angles and approaches
|
||||
- Identify potential pitfalls early
|
||||
- Suggest creative solutions and alternatives
|
||||
- Think about scalability, maintainability, and real-world usage
|
||||
- Draw from industry best practices and patterns
|
||||
|
||||
Always approach discussions as a peer - be direct, technical, and thorough. Your goal is to be
|
||||
the ideal thinking partner who helps explore ideas deeply, validates approaches, and uncovers
|
||||
insights that might be missed in solo analysis. Think step by step through complex problems
|
||||
and don't hesitate to explore tangential but relevant considerations."""
|
||||
|
||||
Reference in New Issue
Block a user