How cheshire-cat-ai/core works
Main System Components
a) Core Components:
• Looking Glass Module (/cat/looking_glass/) - Main conversation handling
• Mad Hatter Module (/cat/mad_hatter/) - Plugin system
• Memory System (/cat/memory/) - Long-term and working memory
• Agents System (/cat/agents/) - Different specialized agents
• Database Layer (/cat/db/) - Data persistence
• API Layer (/cat/routes/) - REST and WebSocket endpoints
b) External Integrations:
• Language Models (LLM) interface
• Embedding Models interface
• Authentication System
• Plugin Registry
Component Relationships
[Client Layer]
• ↑↓ HTTP/WebSocket
[API Gateway]
• ↑↓
[Core Processing Layer]
• → [Looking Glass]
• → [Agents System]
• → [Mad Hatter]
• → [Plugin System]
• → [Memory System]
• → [Vector Store]
• → [Working Memory]
• → [External Services]
• → [LLM Provider]
• → [Embeddings Provider]
Key Technical Details
• Docker container boundary
• REST API endpoints
• WebSocket connections
• Database connections
• Plugin loading paths
• Memory vector store
• Authentication flow
Implementation Notes
• Use standardized UML notation where appropriate
• Clear data flow directions
• Component version information
• Document main configuration points
• Scaling considerations
This architecture represents a modern AI assistant framework with emphasis on extensibility, memory management, and plugin support, making it suitable for both development and production environments.