AgentMeshx

4 AI agents audit smart contracts together over a P2P mesh, then store proof on-chain.

AgentMeshx

Created At

Open Agents

Winner of

0G

0G - Best Autonomous Agents, Swarms & iNFT Innovations

Project Description

AgentMesh is a decentralized smart contract security platform where four specialized AI agents (reentrancy, access control, logic errors, economic exploits) run as independent peers on a Gensyn AXL mesh network. You paste a Solidity contract, and all four agents analyze it in parallel, share findings with each other over P2P, debate severity, and reach consensus. The final report gets stored on 0G S the audit happened and what it found. Each agent has its own ENS identity using ENSIP-25 text records and proves ownership through ENSIP-26 verification, so you can look up any agent and confirm it's real. The whole thing runs without a central server coordinating the agents. They discover each other through ENS, communicate through AXL, think through 0G Compute, and leave a permanent trail on 0G Chain. The dashboard shows the live mesh topology, streams the actual inter-agent messages as they happen, and lets you drill into the consensus report with per-finding vote breakdowns.

How it's Made

The backend runs four separate AXL node instances on different ports, each with its own peer ID and transport layer. When an audit starts, each agent does a deterministic static pattern scan first (regex-based vulnerability detection with false-positive suppression), then sends the contract to 0G Compute for deeper LLM analysis using their serving broker SDK. Agents share findings over the AXL mesh using a custom message protocol, then cross-evaluate each other's findings through a voting system. The consensus engine aggregates votes with confidence weighting and produces a final severity rating per finding.

For on-chain proof, I deployed two Solidity contracts on 0G Chain (testnet 16602): an AgentRegistry where agents register their ENS names and specialties, and an AuditAttestation contract that records the report hash, storage root hash, and vulnerability counts. Reports get uploaded to 0G Storage through their SDK, which returns a root hash we include in the attestation.

ENS integration goes beyond basic text records. Each agent registers ENSIP-25 records (agent type, capabilities, mesh endpoint) under subnames of agentmesh.eth on Sepolia. ENSIP-26 signatures prove each agent actually controls its name, not just that someone wrote metadata there.

The frontend is Next.js with real-time WebSocket streaming. The topology graph polls AXL node connections every 2 seconds. The chat feed shows actual P2P messages between agents as they analyze, debate, and vote. Built with TypeScript throughout, monorepo structure with shared types between frontend and backend.

Stack: TypeScript, Next.js 15, Express, Gensyn AXL (P2P), 0G Compute (inference), 0G Storage (persistence), 0G Chain (attestation), ENS with ENSIP-25/26 (identity), ethers.js, WebSocket, Tailwind CSS.

background image mobile

Join the mailing list

Get the latest news and updates

AgentMeshx | ETHGlobal