AgentNexus

AgentNexus: DeFi yield optimizer with AI agents, ZK safety, and one‑click bridge‑and‑execute.

Repo
AgentNexus banner

About

Title

AgentNexus — Autonomous, Explainable, Cross‑Chain DeFi Yield Optimization powered by uAgents, ASI:One, MeTTa, Avail Nexus, and Pyth

What this project is

AgentNexus is an autonomous multi‑agent DeFi portfolio manager that discovers yields, reasons about protocol risk, and executes optimal, cross‑chain strategies on behalf of the user. It combines agentic AI (Fetch.ai’s uAgents, Agentverse), Web3‑native reasoning (ASI:One LLM + MeTTa knowledge graphs), verifiable execution (Avail Nexus Bridge & Execute), and real‑time market data (Pyth) into a single, production‑style system.

Unlike dashboards that only surface APYs, AgentNexus:

Continuously scans protocols like Aave V3, Compound V3, and Morpho on Base Sepolia, pulling APY/TVL and price data via Pyth to build a real‑time opportunity set.​

Scores risk using a hybrid approach:

ASI:One LLM produces human‑readable risk rationales per protocol and allocation.​

MeTTa knowledge graphs encode structured rules (TVL bands, audit tags, protocol tenure) for consistent, explainable scoring.​

Allocates funds and submits transactions to deployed adapter smart contracts (verified on Basescan) using Avail Nexus Bridge & Execute for single‑flow bridge + function call when needed.​

Exposes a unified, chain‑agnostic portfolio view, with agent reasoning accessible through an ASI:One chat interface for why/how each decision was made.​

Core components

Agents (uAgents + Agentverse)

YieldScanner: polls protocol APY/TVL and normalizes signals per chain.​

RiskAssessor: calls ASI:One to produce risk narratives, then applies MeTTa rules to produce scores and constraints (e.g., min risk score, allocation caps).​

ProtocolExecutor: converts strategy into on‑chain actions, using Avail Nexus’s bridgeAndExecute() when capital must move cross‑chain; otherwise executes locally on Base Sepolia.​

Smart contracts (verified)

Protocol Adapters: thin, auditable integration for Aave/Compound/Morpho with a unified interface (supply/withdraw/query), enabling safe, composable execution.

AgentVault: custody and accounting for user deposits, with hooks for proof verification.

Frontend

Unified portfolio balances, per‑protocol positions, and performance.

ASI:One chat wired to agent logs/decisions for “Why X over Y?” explainability.

Pyth price integration via Hermes API for ETH/USD, USDC/USD.​

Zero‑knowledge (ZK) component

AgentNexus introduces a “Provable Strategy” flow that prepares for privacy‑preserving allocation submissions and verifiable constraints:

Private Strategy Commit: The frontend/agent creates a commitment to the allocation vector without revealing the exact per‑protocol amounts.

ZK Proof of Validity: A circuit enforces constraints such as:

Allocations sum to 100%: ∑i ai = 1, ai ≥ 0.

Risk limit respected: ∑i ai · risk_i ≥ Rmin (or max VaR below threshold).

Liquidity/TVL bounds: ai ≤ cap_i for lower‑liquidity pools.

On‑chain Verification: The StrategyVerifier verifies the proof before the executor calls adapters. This prevents strategy leakage (anti‑copy/MEV) while guaranteeing safety rules, and allows future auditability without compromising proprietary strategy details. The same pattern can be extended to prove “better‑than‑baseline” allocation, time‑locked commitments, or MEV‑resistant batched rebalances.

Why this matters

DeFi power users struggle with fragmented liquidity, volatile yields, and opaque risks. AgentNexus turns this into a “self‑driving” experience:

Autonomous: agents scan, reason, and act across chains and protocols.

Explainable: every action is accompanied by a human‑readable rationale (ASI:One) grounded in structured rules (MeTTa).

Verifiable: cross‑chain execution is auditable (Avail Nexus), assets are managed via verified adapters, and strategies can be privacy‑preserving yet provably safe (ZK).

Composable: add new chains, protocols, or scoring rules without rewriting the system.

Track alignment (why it fits)

ASI Alliance: Uses ASI:One for human–agent interaction and decision justification; integrates MeTTa knowledge graphs to structure risk reasoning; uAgents + Agentverse for registration/discoverability.​

Avail Nexus: Uses bridgeAndExecute() to move funds and call adapters in a single flow; ready for smart‑balance checks and unified execution patterns.​

Pyth: Real‑time price feeds (Hermes REST) drive valuation, risk/health metrics, and allocation thresholds.​

Fetch.ai/uAgents: Multi‑agent architecture with real messaging, identity, and orchestration via Agentverse.​

What’s implemented now

Deployed, verified adapters for Aave, Compound, Morpho on Base Sepolia; AgentVault and StrategyVerifier live and wired to agents.

3 agents running with inter‑agent messaging: discovery → risk → execution loop.

ASI:One chat integrated in frontend; agents call ASI:One for risk narratives and strategy validation; MeTTa rules incorporated for consistent scoring.

Pyth price integration via Hermes endpoint; unified balances/positions visualized in the dashboard.

ZK flow scaffolded: StrategyVerifier contract, allocation constraints, and proof plumbing prepared; off‑chain prover integration planned (circuit + witness + on‑chain verify).

How it works (flow)

YieldScanner fetches APY/TVL and normalized oracle prices from Pyth; emits opportunities.

RiskAssessor queries ASI:One for qualitative risk reasoning and applies MeTTa rules to emit a numeric score and constraints.

Strategy is formed (e.g., 40% Aave, 35% Compound, 25% Morpho), optionally committed and proven (ZK) for validity/privacy, then handed to ProtocolExecutor.

Executor executes via adapters; if capital relocation is needed, it calls Avail Nexus bridgeAndExecute() to bridge and invoke the target adapter in one step.

Frontend shows updated portfolio, per‑protocol allocations, and the agent’s reasoning; users can ask ASI:One “why” questions for transparency.

What’s next

Full ZK proof pipeline (circuit, prover service, on‑chain verifier integration) for private allocations and constraint proofs.

Additional protocols/networks, and support for dynamic yield/risk regimes (volatility‑adaptive rebalancing).

Agentverse listing and MCP integration for turnkey discoverability/interoperability.

More advanced MeTTa rulebooks (e.g., oracle diversity, liquidity decay, chain‑specific risk).

Tech used

Agents: uAgents, Agentverse (Fetch.ai)​

LLM & Chat: ASI:One (LLM + Chat Protocol)​

Reasoning: MeTTa Knowledge Graphs​

Cross‑chain: Avail Nexus SDK (bridgeAndExecute)​

Oracles: Pyth Network (Hermes)​

Contracts: Solidity adapters (Aave/Compound/Morpho), AgentVault, StrategyVerifier (ZK‑ready)

Frontend: Next.js, Wagmi/viem, Tailwind

Chain: Base Sepolia (testnet)

This project shows how autonomous agents, explainable AI, zero‑knowledge proofs, and cross‑chain execution can work together to deliver a “self‑driving” DeFi portfolio—auditable, safe, and human‑understandable from end to end

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Adapt.ai

A decentralized AI agent marketplace enabling users to autonomously execute financial strategies in DeFi with tailored AI agents, multisig security and AI-driven insights.

Web3Swarm

A multi-agent system for DeFi automation, social interactions, & browser automation. Smart agents execute trades, monitor markets, interact socially, and automate workflows—all powered by AI. The future of Web3 intelligence starts here!

0xDef.ai Agent: DeFi copilot for SAFE and Web3

Supercharge your DeFi game with 0xDef.ai Agent — an AI-driven portfolio manager that finds the best yield, rebalances assets, and executes transactions seamlessly. Max profits, Min risk on autopilot!