SWARM OS

SWARMOS IS multi-agent AI system with 0G Compute verification, agent arena and competitive breeding

SWARM OS

Created At

Open Agents

Project Description

SWARM OS is a production-ready autonomous multi-agent AI system combining verified intelligence with evolutionary algorithms and competitive dynamics.

PHASE 1 - VERIFIED INTELLIGENCE (0G Compute): Four specialized AI agents (Planner, Researcher, Critic, Executor) collaborate on complex problems. The Planner breaks requests into structured steps. The Researcher verifies claims. The Critic evaluates feasibility/safety/legality/cost. The Executor implements decisions. The key innovation: every decision is independently verified on 0G Compute with cryptographic proofs proving correctness. Results mint as iNFTs with verification proofs on-chain.

PHASE 2 - EVOLUTIONARY AGENTS: Agents evolve across generations through genetic breeding. Each agent has 6 DNA traits: Reasoning, Creativity, Caution, Speed, Accuracy, Adaptability. When agents breed, traits blend (average ± mutation) creating offspring with inherited strengths. Parents earn 2.5% royalties on offspring earnings. Genetic algorithm drives emergent improvement - agents naturally get smarter.

PHASE 3 - COMPETITIVE ARENA: Agents compete in tournament brackets. Winners ranked on leaderboards. Top performers breed. Losers evolve. After 5+ rounds, system metrics improve dramatically (e.g., avg score: 83% → 91%). True emergence - no human intervention, just natural selection. Real-time visualization, persistent leaderboards, history tracking.

PHASE 4 - CROSS-CHAIN AGENT SWARMS (ROADMAP): Current system operates on single chain. Phase 4 extends SWARM OS to coordinate agents across multiple blockchains: Ethereum, Polygon, 0G Chain. Bridge contracts sync agent decisions. Unified leaderboard ranking agents globally. Cross-chain iNFT breeding. Global tournaments with multi-chain participation.

TECHNICAL STACK:

  • Frontend: React 18 + TypeScript + Vite + TailwindCSS
  • Backend: Node.js + Express + TypeScript
  • AI: Claude Opus 4.1 (Anthropic API) / Fallback to OPEN AI in failure of anthropic credits.
  • Storage: 0G Storage (KV + Log)
  • Verification: 0G Compute (cryptographic proofs)
  • Blockchain: Solidity + Foundry, ERC-721 iNFT contracts
  • Deployment: Vercel (frontend)

INNOVATION:

  1. 0G Compute verification - Unique, no other project does this
  2. Emergent evolution - Agents genuinely improve through breeding + selection
  3. Competitive arena - True emergence with natural selection
  4. Multi-chain vision - Phase 4 scales to Ethereum, Polygon, 0G

LIVE DEMO: https://frontend-six-steel-45.vercel.app/

How it's Made

SWARM OS uses a modular agent architecture built with Node.js/Express backend and React frontend, communicating via WebSocket for real-time updates.

AGENT ARCHITECTURE: We implemented 4 specialized AI agents using Claude Opus 4.1:

  1. Planner Agent - Strategic planning, step decomposition, cost/timeline estimation
  2. Researcher Agent - Fact verification, evidence gathering, confidence scoring
  3. Critic Agent - Multi-dimension evaluation (feasibility/safety/legality/cost), scoring & decisions
  4. Executor Agent - Plan execution or simulation, transaction management

Each agent is an event emitter, allowing orchestrated workflows. They communicate via a central SwarmOrchestrator that manages the pipeline.

0G COMPUTE INTEGRATION (KEY INNOVATION): Rather than trusting agent decisions directly, we send plan + evidence + verdict to 0G Compute for independent verification. 0G returns confidence scores and cryptographic proofs. This cryptographic proof is then embedded in the iNFT, creating verifiable on-chain attestation of decision correctness.

BREEDING SYSTEM: Implemented genetic crossover algorithm: child_trait = (parent1 + parent2) / 2 ± mutation(-5 to +5). Traits persist in 0G KV Store. Breeding creates new iNFTs with updated generation counter and parent references.

ARENA TOURNAMENT: Tournament logic runs agents through 5 rounds with variance simulation. Winners breed after each round (genetic improvement). Losers evolve based on feedback. Leaderboard updates dynamically.

FRONTEND: React components with WebSocket real-time updates. Agent cards show live status. Breeding modal displays trait prediction. Arena shows bracket visualization. All styled with TailwindCSS.

SMART CONTRACTS: ERC-721 iNFT contract with AgentTraits struct (6 dimensions), generation tracking, parent references, heritage array, breeding function with royalty distribution.

DEPLOYMENT:

  • Frontend: Vercel
  • Backend: Local or cloud deployment
  • Live demo: https://frontend-six-steel-45.vercel.app/

The entire system is production-ready with proper error handling, type safety (TypeScript throughout), and comprehensive logging.

background image mobile

Join the mailing list

Get the latest news and updates