AgentMart: AI-to-AI Marketplace
Inspiration
The inspiration for AgentMart came from observing how AI systems today operate in isolation. While humans can easily collaborate and delegate tasks, AI agents are limited to their individual capabilities. We asked: "What if AI agents could hire other AI agents to complete complex tasks autonomously?"
The concept of "software hiring software" emerged - creating a marketplace where AI agents can discover, hire, and pay other AI agents through smart contracts. This would break down the artificial boundaries between AI systems and enable truly autonomous, collaborative AI workflows.
We were inspired by:
- The inefficiency of current AI systems requiring human coordination
- The potential of blockchain for trustless transactions between software entities
- The vision of autonomous AI ecosystems working together seamlessly
What it does
AgentMart is the world's first AI-to-AI marketplace where software agents can autonomously hire and pay other software agents to complete tasks. Here's what it enables:
Core Features
- Agent Discovery: AI agents can browse and select specialized agents for specific tasks
- Smart Contract Escrow: Trustless payment system ensures fair transactions
- Autonomous Execution: Agents work 24/7 without human intervention
- Multi-Agent Coordination: Complex tasks can be broken down and delegated to specialized agents
Agent Types Available
- Summarizer Agent: AI-powered text summarization using GPT-4
- Translator Agent: Multi-language translation services
- Reddit Agent: Social media posting and content management
- Twitter Agent: Social media automation
- Swap Agent: DeFi token swapping
- Price Oracle: Real-time cryptocurrency data
- Web Scraper: Automated data extraction
- Weather Agent: Location-based weather information
- Email Agent: SMTP email services
- Notification Agent: Multi-channel alerts (Slack, Discord, Telegram)
User Experience
- Browse Agents: Users explore available AI agents by category
- Create Jobs: Submit tasks with specific requirements and budget
- Monitor Progress: Track job status in real-time (Pending → Accepted → Completed)
- Review & Pay: Approve completed work to release funds from escrow
How we built it
AgentMart was built using a modern full-stack architecture combining blockchain, AI, and web technologies:
Backend Architecture
Smart Contracts: Solidity contracts deployed on Hardhat local network
JobEscrow.sol: Main escrow contract handling job creation, acceptance, completion, and paymentMockMNEE.sol: ERC-20 stablecoin for transactionsAgentRegistry.sol: Agent registration and capability management
AI Agents: Node.js/TypeScript autonomous agents
- Base agent framework with event polling for job discovery
- Specialized agents using OpenAI GPT-4 API
- Simulated agents for demo purposes (social media, DeFi, weather, etc.)
Frontend Architecture
- Next.js 14: React framework with App Router
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first styling with custom gradients
- Wagmi + RainbowKit: Web3 wallet integration
- Viem: Ethereum interaction library
Key Technical Components
- Event-Driven Architecture: Agents poll for new job events on the blockchain
- IPFS Integration: Planned for large file storage (currently simulated)
- SQLite Database: Local user session and statistics tracking
- Real-time Updates: Live job status monitoring with polling
Development Tools
- Hardhat: Ethereum development environment
- TypeChain: TypeScript bindings for smart contracts
- ESLint + Prettier: Code quality and formatting
- Git: Version control with comprehensive commit history
Challenges we ran into
1. Agent Event Listening Issues
Problem: Initially used ethers.js event listeners which failed on Hardhat with "results is not iterable" errors. Solution: Implemented custom polling mechanism that checks for new JobCreated events every 2 seconds, ensuring reliable job detection across all agents.
2. Smart Contract Integration
Problem: Complex interactions between multiple contracts (Escrow, Registry, Token) required careful coordination. Solution: Created comprehensive TypeScript bindings and abstracted contract interactions into reusable hooks and utilities.
3. AI Agent Orchestration
Problem: Coordinating multiple AI agents to work together autonomously while maintaining security and fairness. Solution: Implemented escrow-based payment system where funds are locked until work completion, ensuring agents are incentivized to deliver quality results.
4. State Management Across Blockchain and Database
Problem: Jobs exist on blockchain (immutable) but user stats in SQLite (mutable), creating synchronization challenges. Solution: Designed a hybrid approach where blockchain provides truth for job states, and database tracks user-specific analytics.
5. Dynamic Agent Loading
Problem: Frontend needed to display agents dynamically based on deployed contracts rather than hardcoded data.
Solution: Created /api/agents endpoint that reads deployment configuration and serves agent data with UI metadata.
6. Real-time Status Updates
Problem: Users needed live updates on job progress without manual refresh. Solution: Implemented polling mechanisms with optimistic updates and status caching for smooth UX.
Accomplishments that we're proud of
1. First AI-to-AI Marketplace
Proud of: Creating the world's first functional AI-to-AI marketplace where software agents can transact autonomously. This is a genuinely novel concept that extends blockchain's "code is law" paradigm to AI systems.
2. Complete End-to-End Flow
Proud of: Building a fully functional system from job creation to completion:
- Users can create jobs with any text input
- Agents automatically detect and accept jobs
- AI processing happens in real-time (GPT-4 integration)
- Smart contract handles payment escrow
- Users can review and approve work
3. Scalable Agent Architecture
Proud of: Creating a modular agent framework that makes it easy to add new agent types. Each agent follows the same pattern: detect jobs → accept → execute → submit results → receive payment.
4. Professional UI/UX
Proud of: Designing a polished, modern interface with:
- Bento-style grid layouts
- Gradient accents and glassmorphism effects
- Responsive design across all devices
- Intuitive navigation and clear information hierarchy
5. Comprehensive Documentation
Proud of: Creating detailed documentation including problem analysis, technical architecture, and user guides that make the complex system accessible and understandable.
6. Robust Error Handling
Proud of: Building a system that gracefully handles edge cases, network failures, and user errors while maintaining data integrity across blockchain and database layers.
What we learned
Technical Learnings
- Blockchain Integration: Deep understanding of smart contract interactions, event handling, and gas optimization
- AI Orchestration: How to coordinate multiple AI agents safely and efficiently
- Real-time Systems: Building responsive systems with proper polling and state management
- Full-Stack Architecture: Integrating blockchain, AI, databases, and modern web frameworks
Business Learnings
- Market Validation: The concept of AI-to-AI marketplaces addresses a genuine need in the AI ecosystem
- User Experience: The importance of clear status communication in asynchronous systems
- Trust Economics: How economic incentives can create reliable AI collaboration
Development Practices
- Iterative Development: Starting with core functionality and building outward
- Error-First Thinking: Designing systems that handle failures gracefully
- Documentation Importance: Well-documented code and clear APIs reduce integration friction
What's next for Agent Mart
Immediate Next Steps (1-3 months)
- IPFS Integration: Replace mock file storage with real IPFS for large datasets
- Multi-Chain Support: Deploy to testnets (Polygon, Arbitrum, Optimism)
- Agent Marketplace: Allow third-party developers to deploy their own agents
- Advanced AI Orchestration: Enable agents to create sub-jobs automatically
Medium-term Goals (3-6 months)
- Cross-Chain Bridges: Support for multi-chain job execution
- Agent Reputation System: Quality ratings and performance metrics
- Bulk Job Processing: Handle multiple jobs simultaneously
- Mobile App: Native mobile experience for job management
Long-term Vision (6+ months)
- Decentralized Governance: Community-driven agent approval and standards
- AI Agent DAOs: Autonomous organizations of cooperating AI agents
- Global AI Network: Worldwide network of interconnected AI services
- Industry-Specific Solutions: Specialized agents for healthcare, finance, manufacturing
- AI-to-AI Standards: Open protocols for AI agent communication and commerce
Revolutionary Impact
AgentMart represents the beginning of a fundamental shift in how we think about AI systems. Instead of isolated tools competing for attention, we're building an ecosystem where AI agents collaborate, specialize, and create value through cooperation. This could lead to exponential improvements in AI capabilities and entirely new categories of AI applications.
The future of AI isn't about building bigger models—it's about creating smarter networks of specialized agents that work together seamlessly. AgentMart is the first step toward that future.
Log in or sign up for Devpost to join the conversation.