← Back to all posts
·Chain Insights Team·2 min read

Architecture Overview: How the $CIA Pipeline Works

A deep dive into the Chain Insights Agent pipeline — from on-chain indexers and ML analysis to GraphRAG and autonomous agent delivery.

The Chain Insights Agent ($CIA) is built as a multi-stage pipeline that transforms raw blockchain data into actionable intelligence. In this post, we'll walk through the major components and how they fit together.

The Big Picture

At a high level, data flows through four stages:

  1. Ingestion — On-chain indexers pull data from multiple blockchains in real-time
  2. Analysis — ML models score transactions and detect patterns
  3. Knowledge — GraphRAG builds a structured knowledge graph from findings
  4. Delivery — Autonomous agents synthesize insights and deliver them to users

Let's look at each stage in more detail.

Stage 1: On-Chain Indexers

Our indexing layer connects to multiple blockchain networks and processes blocks as they're produced. We track:

  • Token transfers and swaps
  • Smart contract deployments and interactions
  • Wallet activity patterns and fund flows
  • Cross-chain bridge transactions

The indexers normalize data into a common format regardless of the source chain, making downstream analysis chain-agnostic.

Stage 2: ML Analyzer

Normalized data feeds into our machine learning pipeline. We run multiple models in parallel:

  • Anomaly Detection — Statistical models that flag unusual patterns in transaction volumes, timing, and amounts
  • Cluster Analysis — Grouping related wallets and contracts based on behavioral similarity
  • Risk Scoring — Composite scores that combine multiple signals into actionable risk assessments

Each model operates independently but contributes to a shared scoring system.

Stage 3: GraphRAG Engine

This is where things get interesting. We build a knowledge graph that captures relationships between entities — wallets, contracts, tokens, and events. On top of this graph, we run Retrieval-Augmented Generation (RAG) to answer complex questions like:

  • "What wallets are connected to this suspicious contract?"
  • "Has this pattern appeared before on other chains?"
  • "What's the risk profile of this token launch?"

The graph grows continuously as new data flows in, making the system smarter over time.

Stage 4: Agent Framework

The final stage is our autonomous agent framework. Agents are specialized workers that:

  • Monitor for specific conditions or patterns
  • Synthesize findings from the ML and GraphRAG layers
  • Generate human-readable intelligence reports
  • Deliver alerts through multiple channels

Users can configure agents for their specific needs — whether that's monitoring a portfolio, tracking a specific protocol, or getting early warnings about market-moving events.

What's Next

We're actively developing each of these stages. In upcoming posts, we'll dive deeper into individual components, share performance benchmarks, and discuss the technical trade-offs we've made along the way.

Stay tuned.