How devoxx/devoxxgenieideaplugin works
Main Components Architecture
The system should be represented in layers, with these key components:
a) UI Layer:
• Tool Window Components (DevoxxGenieToolWindowFactory)
• Settings Panels
• Response Panels
• Input Components
b) Controller Layer:
• PromptExecutionController
• ProjectContextController
• ActionButtonsPanelController
• TokenCalculationController
c) Service Layer:
• Chat Services (ChatService, ChatMemoryService)
• LLM Provider Services (LLMProviderService)
• RAG Services (ProjectIndexerService, SemanticSearchService)
• Git Integration Services (GitMergeService)
• Project Services (ProjectContentService, ProjectScannerService)
d) Model Layer:
• Chat Models
• LLM Provider Models
• Request/Response Models
• Configuration Models
Integration Points
Connections with external systems:
• Local LLM Providers (Ollama, LMStudio, GPT4All)
• Cloud LLM Providers (OpenAI, Anthropic, Google, etc.)
• ChromaDB for vector storage
• Docker for RAG infrastructure
• Git for diff/merge functionality
Data Flow Representation
User Input → Prompt Processing → LLM Provider Selection → Model Inference → Response Handling → UI Display
Specific Implementation Details
• RAG Implementation (ChromaDB + Embeddings)
• Git Diff/Merge Integration
• Token Cost Calculator
• Chat Memory Management
• Project Context Management
┌─────────────────────────────────────────────────────────────────┐
• UI Layer │
• ┤
• DevoxxGenieToolWindow │
• Settings Panels │
• Response Panels │
• Input Components │
• ┬─────────────────────────────────────┬────────────┘
┌─────────────▼─────────────────────────────────────▼────────────┐
• Controller Layer │
• ┤
• Prompt Execution │
• Project Context │
• Token Calculation │
• ┬─────────────────────────────────────┬────────────┘
┌─────────────▼─────────────────────────────────────▼────────────┐
• Service Layer │
• ┤
• Chat Services │ LLM Services │ RAG Services │ Git Services│
• ┬─────────────────────────────────────┬────────────┘
┌─────────────▼─────────────────────────────────────▼────────────┐
• External Integrations │
• ┤
• Local LLMs │ Cloud LLMs │ ChromaDB │ Docker │ Git │ │
• ┘
Important Notes
• Bidirectional flows where appropriate
• Error handling paths
• Async operations (streaming responses)
• Security boundaries
• Configuration points
• Scaling components (RAG infrastructure)