How acasto/iptic-memex works
Main Components
a) Core Application Layer:
• Entry point (main.py)
• Configuration management (config_handler.py, session_handler.py)
• Mode handlers (modes/ directory)
b) Action System:
• Action handlers (actions/ directory)
• Command processing
• Context management
c) Context Management System:
• Context handlers (contexts/ directory)
• Different types of content processors
d) Provider Integration Layer:
• Provider interfaces (providers/ directory)
• API communication handlers
e) External Integrations:
• File system interactions
• Web content fetching
• Search capabilities
• Code execution environment
[User Interface Layer]
• CLI Interface
• Mode Handlers (ask, chat, completion)
[Core Application Layer]
• Action System
• Command Processors
• Context Management
• Context Handlers
• Configuration Management
• Settings & Models
[Provider Integration Layer]
• LLM Providers
• OpenAI
• Anthropic
• Others...
[External Services Layer]
• File System
• Web Content
• Search Services
• Code Execution
Implementation Details
• Use rectangles for main components
• Use clouds for external services
• Notes for important configuration points
Key Relationships to Highlight
• How the action system interfaces with context management
• Relationship between providers and the core application
• Demonstrate how different modes interact with the action system
• Configuration management's influence on all components