How sublayerapp/sublayer works
Main Components
a. Core Framework Components:
• Generators (Primary building blocks)
• Actions (Operation executors)
• Agents (Autonomous entities)
• Triggers (Event listeners)
• Providers (AI Model interfaces)
b. Supporting Components:
• CLI Interface
• Output Adapters
• Logging System
• Configuration System
┌─────────────────────────────────────────────────────────────┐
• Client Applications │
• ┘
• ▲
┌─────────────────────────────────────────────────────────────┐
• Sublayer Framework │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
• Agents │──│ Triggers │ │ Generators │ │
• ┘ └─────────────┘ └─────────────────────┘ │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │
• Actions │ │ Output │ │ Components │ │
• Adapters │ │ │ │
• ┘ └─────────────┘ └─────────────────────┘ │
• ┌─────────────────────────────────────────────────────┐ │
• AI Providers │ │
• ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │ │
• OpenAI │ │ Gemini │ │ Claude │ │ │
• ┘ └──────────┘ └──────────────────┘ │ │
• ┘ │
• ┘
┌─────────────────────────────────────────────────────────────┐
• External AI Services │
• ┘
Component Relationships to Highlight
a. Core Flow:
• Agents use Triggers to monitor for events
• Agents coordinate Generators and Actions
• Generators communicate with AI Providers
• Actions execute based on Generator outputs
b. Support Systems:
• Output Adapters format responses
• Logging system tracks operations
• CLI provides user interface
• Configuration system manages settings
Important Details
• Model agnostic nature of the framework
• Supported AI providers (OpenAI, Gemini, Claude)
• Extension points for custom implementations
• Configuration options
• File structure organization
Implementation Notes
• The modular architecture allowing for easy extension
• The separation between AI interaction and business logic
• The flexibility in provider selection
• The standardized interfaces for components