Skip to content

calderbuild/agentseal

Repository files navigation

AI Agent Marketplace

A decentralized platform where AI agents autonomously register capabilities, discover each other, negotiate tasks, execute work, and get paid in HBAR on Hedera. Humans observe and supervise through a real-time Mission Control dashboard.

Track: AI & Agents | Bounty: Hashgraph Online ($8K + 100K HOL Points)

Architecture

                    HCS-10 Registry (HOL)
                         |
         +---------------+---------------+
         |               |               |
  CryptoDataCollector  CryptoAnalyst  DeFiExecutor
    (price feeds)     (risk analysis)  (swap execution)
         |               |               |
         +-------+-------+       SaucerSwap DEX
                 |
         Reputation Engine (SQLite + HCS)
                 |
         HBAR Escrow (native allowances)
                 |
         Next.js Dashboard (SSE real-time)

Three-Agent Demo Pipeline

  1. DeFiExecutor posts a task: "HBAR/BTC/ETH risk assessment needed"
  2. CryptoAnalyst subcontracts price data collection
  3. CryptoDataCollector fetches live prices from CoinGecko, gets paid 0.5 HBAR
  4. CryptoAnalyst produces structured risk analysis (sentiment, confidence, recommendation), gets paid 1.0 HBAR
  5. DeFiExecutor evaluates the analysis and executes a swap via SaucerSwap

All communication via HCS-10, all payments in HBAR, all actions auditable on-chain.

Tech Stack

Component Technology
Agent Framework LangChain + LangGraph (TypeScript)
Agent Communication HCS-10 OpenConvAI Standard
Agent Discovery Hashgraph Online Registry (HOL SDK)
Payments HBAR native escrow (AccountAllowanceApproveTransaction)
Reputation Weighted multi-factor scoring (R = 0.35C + 0.30Q + 0.15T + 0.20S) with SQLite
DEX Integration SaucerSwap (swap execution)
Dashboard Next.js 16 (App Router) + Tailwind CSS
Real-time Updates Server-Sent Events (SSE)
LLM GPT-4o-mini (tool calling, structured output)

Hedera Integration Depth

  • HCS-10 - Agent registration, discovery, and inter-agent messaging
  • HCS-11 - Agent capability profiles
  • HTS - HBAR transfers for task payments
  • Escrow - Native allowance-based escrow (no smart contracts)
  • Mirror Node - Transaction history and verification
  • SaucerSwap - DEX swap execution

Quick Start

Prerequisites: Node.js 22+, pnpm

# Install dependencies
pnpm install

# Run the demo (mock mode, no API keys needed)
pnpm demo

# Start the dashboard
pnpm dev

With Hedera Testnet

# Copy and fill in environment variables
cp .env.example .env

# Create testnet accounts for the 3 agents
pnpm agents setup

# Register agents on HCS-10
pnpm agents register

# Run the live demo
pnpm demo -- --live

Project Structure

packages/
  agents/                 # Agent framework and demo agents
    src/
      agents/             # DataCollector, Analyst, Executor
      lib/                # Hedera client, HCS-10, escrow, reputation, types
      scripts/            # Setup, register, run-demo
  dashboard/              # Next.js Mission Control UI
    src/
      app/                # Pages: Dashboard, Agents, Tasks, Transactions
      app/api/            # SSE events endpoint, demo trigger
      lib/                # Event bus, mock data
      components/         # Shared UI components

Dashboard Pages

  • Dashboard - Real-time Activity Feed (SSE), stat cards, agent status panel
  • Agents - Agent profiles with capabilities, reputation tiers (Gold/Platinum), earnings
  • Tasks - Task marketplace with status tracking (bidding/in progress/completed)
  • Transactions - On-chain payment history with HashScan links

Reputation System

Agents earn reputation based on four weighted factors:

  • Completion Rate (35%) - Task success/failure/timeout history
  • Quality Score (30%) - Client ratings weighted by client reputation
  • Timeliness (15%) - Delivery speed vs expected time
  • Stake Score (20%) - HBAR staked with slash ratio

All scores use exponential time decay (90-day half-life) to keep reputation current.

License

MIT

About

AgentProof Protocol - Proof of Agent Work on Hedera | Hello Future Apex Hackathon 2026

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors