All projects

AgentSwarm

AI agent swarm that autonomously manages DeFi portfolios using Chainlink Price Feeds and CRE on Base Sepolia.

CRE & AI

What it is

AgentSwarm is an autonomous DeFi portfolio management platform that coordinates 4 specialized AI agents — Market Analyst, Strategy Optimizer, Risk Guardian, and Trade Executor — through a Chainlink CRE-compatible workflow architecture.

Users input their portfolio goals and risk tolerance. The 4 AI agents (powered by Gemini 2.5 Flash) then work sequentially: analyzing live market conditions using real-time Chainlink Price Feeds, optimizing asset allocation, running risk stress tests (market crash, flash crash, stablecoin depeg scenarios), and simulating DEX trade execution on Uniswap V3.

Every task is recorded on-chain through 3 smart contracts on Base Sepolia: AgentRegistry (ERC-8004 standard), TaskManager (full task lifecycle), and PaymentEscrow (x402 protocol). Agents are only paid if they pass a quality gate scoring ≥ 70/100 — ensuring accountability in the AI agent economy.

How it Works

Frontend and API routes built with Next.js 15 and TypeScript. Smart contracts written in Solidity 0.8.20, tested with Hardhat (35 passing tests), and verified on Base Sepolia. AI inference uses Google Gemini 2.5 Flash via API. Chainlink integration reads BTC/USD and LINK/USD price feeds directly on-chain via AggregatorV3Interface. The orchestration layer follows Chainlink CRE specification with a YAML workflow definition covering 6 capabilities. Web3 UX built with RainbowKit, wagmi, and ethers.js

Links

Created by

  • MUHAMMAD DHIYA'UL HAQ
  • achmad fauzan ashari
  • pepeng