How leen2233/hey-py works
Component Relationships
a. Primary Flow:
• CLI → API Client → DuckDuckGo AI Service
b. Supporting Flows:
• CLI ↔ Memory Manager ↔ File System (.cache/hey)
• CLI ↔ Config Handler ↔ File System (.config/hey)
Special Elements
a. Configuration Management:
• Config file location (~/.config/hey)
• Environment variable options
• Supported AI models
b. Memory System:
• 10-message limit
• 24-hour expiry mechanism
• Cache storage location (~/.cache/hey)
Key Interactions to Highlight
• User command processing flow
• AI model selection and management
• Message storage and retrieval
• Configuration updates
• Proxy handling
Technical Details
• Supported AI models (Claude 3 Haiku, GPT-4o Mini, etc.)
• Storage formats (TOML for config, JSON for messages)
• Cache management system
• Proxy support (HTTP/SOCKS)
Notes for important features like
• Real-time streaming
• Rich markdown support
• Auto-expiry mechanism
• Proxy configuration