Architecture
Learn about Carrot Agent's internal architecture and design principles.
Overview
Carrot Agent follows a modular architecture with clear separation of concerns.
Core Components
Agent Engine
The central component that orchestrates:
- Model interactions
- Tool execution
- Memory management
- Skill learning
Memory System
Three-tier architecture:
- Snapshot Memory: Short-term context
- Session Memory: Conversation history
- Long-term Memory: Persistent knowledge
Skill Manager
Handles:
- Skill creation
- Skill updates
- Skill search
- Automatic skill generation
Tool Registry
Manages available tools:
- File operations
- HTTP requests
- Memory tools
- System utilities
Data Flow
User Input → Agent Engine → Model Provider
↓
Tool Execution
↓
Memory/Skill Update
↓
Response to UserSecurity Model
- Path whitelisting
- URL filtering
- Non-root execution
- Command blocking
Scalability
- Stateless API design
- SQLite for single-instance
- Ready for horizontal scaling
