How unit-mesh/auto-dev-vscode works
Main Components Architecture
The system should be divided into these major components:
a) Core Extension Layer
• AutoDevExtension (Entry point)
• Service Container
• Configuration Management
• Command System
b) Feature Modules
• Code Intelligence
• Chat System
• Code Search
• Action System
• Context Providers
• Prompt Management
c) Integration Layer
• VSCode API Integration
• LLM Providers
• External Tools Integration
Detailed Component Breakdown
a) Code Intelligence System
• Tree-sitter Integration
• AST Analysis
• Code Structure Analysis
• Language-specific Providers
b) Search & Indexing System
• Embedding System
• Vector Search
• Chunk Management
• Multiple RAG Strategies
c) Action System
• Code Actions
• Quick Fixes
• Code Lens
• Refactoring Actions
Data Flow Representation
User Input -> Command System -> Feature Module -> LLM Provider -> Result Processing -> UI Update
Integration Points
Connections for:
• VSCode Extension API
• Language Servers
• LLM Providers (OpenAI, Anthropic, etc.)
• Local Tools (git, tree-sitter)
Specific Implementation Details
Create sections for:
• Provider Container Management
• Template System
• Configuration Management
• Context Management
Key Architectural Patterns
Highlight:
• Provider Pattern for extensibility
• Command Pattern for actions
• Observer Pattern for events
• Strategy Pattern for different implementations
Cross-cutting Concerns
Shared services:
• Logging System
• Error Handling
• Configuration Management
• Resource Management
The separation of concerns between different components
Remember to:
• Keep components grouped logically
• Clear interaction patterns
• Maintain a balance between detail and clarity
• Version/configuration management
• Security boundaries
This architecture should reflect the plugin's capability to handle multiple languages, support various AI providers, and maintain extensibility while keeping the core system maintainable and performant.