You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Implement ConversationalGeminiService for multi-turn Claude-Gemini dialogues
- Add ConversationManager for session state management
- Add 4 new MCP tools: start_conversation, continue_conversation, finalize_conversation, get_conversation_status
- Update DeepCodeReasonerV2 to support conversational analysis
- Add examples demonstrating conversational analysis usage
- Update README with conversational tools documentation and examples
- Add uuid dependency for session ID generation
This enables Claude and Gemini to engage in iterative problem-solving conversations
for complex code analysis tasks that benefit from multi-turn refinement.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+89-1Lines changed: 89 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ The "escalation" model treats LLMs like heterogeneous microservices - route to t
17
17
## Features
18
18
19
19
-**Gemini 2.5 Pro Preview**: Uses Google's latest Gemini 2.5 Pro Preview (05-06) model with 1M token context window
20
+
-**Conversational Analysis**: NEW! AI-to-AI dialogues between Claude and Gemini for iterative problem-solving
20
21
-**Execution Flow Tracing**: Understands data flow and state transformations, not just function calls
21
22
-**Cross-System Impact Analysis**: Models how changes propagate across service boundaries
22
23
-**Performance Modeling**: Identifies N+1 patterns, memory leaks, and algorithmic bottlenecks
@@ -99,7 +100,63 @@ Add to your Claude Desktop configuration (`~/Library/Application Support/Claude/
99
100
100
101
**Note**: The tool parameters use snake_case naming convention and are validated using Zod schemas. The actual implementation provides more detailed type safety than shown in these simplified examples. Full TypeScript type definitions are available in `src/models/types.ts`.
101
102
102
-
### escalate_analysis
103
+
### Conversational Analysis Tools
104
+
105
+
The server now includes AI-to-AI conversational tools that enable Claude and Gemini to engage in multi-turn dialogues for complex analysis:
106
+
107
+
#### start_conversation
108
+
Initiates a conversational analysis session between Claude and Gemini.
109
+
110
+
```typescript
111
+
{
112
+
claude_context: {
113
+
attempted_approaches: string[]; // What Claude tried
114
+
partial_findings: any[]; // What Claude found
115
+
stuck_description: string; // Where Claude got stuck
// Claude provides more context based on Gemini's questions
33
+
constresponse1=awaitmcp.continueConversation({
34
+
session_id: sessionId,
35
+
message: "The getUserWithDetails function is called in a loop from the API handler. Each user triggers 3-4 additional queries for related data. The data volume is typically 100-1000 users per request.",
36
+
include_code_snippets: true
37
+
});
38
+
39
+
// Gemini asks for specific runtime characteristics
40
+
console.log("Gemini:",response1.response);
41
+
// Expected: "That's a classic N+1 problem. Are these related queries for user roles, permissions, or preferences? Also, is there any caching layer between the service and database?"
42
+
43
+
// Claude provides runtime details
44
+
constresponse2=awaitmcp.continueConversation({
45
+
session_id: sessionId,
46
+
message: "The queries are for: user roles (1 query), permissions (1-2 queries), and preferences (1 query). No caching layer currently exists. The database is PostgreSQL with average query time of 10-15ms."
0 commit comments