Architecture Overview

COMPI's architecture implements a distributed agent swarm pattern, where specialized autonomous agents operate within a coordinated intelligence framework. This design ensures both horizontal scalability and domain expertise optimization.

System Architecture Diagram

┌─────────────────────────────────────────────────────────────┐
│                   COMPI Intelligence Layer                  │
├─────────────────────────────────────────────────────────────┤
│  Agent Orchestrator (LangChain + Constitutional AI)         │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐          │
│  │ Lyra  Agent │  │ Aria  Agent │  │ Clara Agent │          │
│  │             │  │             │  │             │          │
│  │ ┌─────────┐ │  │ ┌─────────┐ │  │ ┌─────────┐ │          │
│  │ │ Memory  │ │  │ │ Memory  │ │  │ │ Memory  │ │          │
│  │ │ Vector  │ │  │ │ Vector  │ │  │ │ Vector  │ │          │
│  │ │  Store  │ │  │ │  Store  │ │  │ │  Store  │ │          │
│  │ └─────────┘ │  │ └─────────┘ │  │ └─────────┘ │          │
│  └─────────────┘  └─────────────┘  └─────────────┘          │
├─────────────────────────────────────────────────────────────┤
│                  Message Bus & Event Streaming              │
├─────────────────────────────────────────────────────────────┤
│                   Data Ingestion Layer                      │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐          │
│  │   Helius    │  │ Moralis.    │  │   Twitter   │          │
│  │    RPC      │  │     API     │  │     API     │          │
│  └─────────────┘  └─────────────┘  └─────────────┘          │
└─────────────────────────────────────────────────────────────┘

Core Components

1. Agent Orchestrator

  • Framework: LangChain + Custom Constitutional AI

  • Role: Coordinates agent interactions, manages task distribution

  • Key Features:

    • Autonomous task routing

    • Inter-agent communication protocols

    • Consensus validation mechanisms

    • Error handling and recovery

2. Specialized Agent Swarm

  • Lyra: Blockchain transaction analysis

  • Aria: Fundamental analysis and categorization

  • Clara: Social sentiment and influencer tracking

  • Agent Studio: Custom agent creation and workflow orchestration

3. Memory & Context Management

  • Vector Stores: Persistent memory using Pinecone/Weaviate

  • Context Windows: Dynamic context management for long-running analysis

  • Knowledge Graphs: Relationship mapping between entities

Last updated