AgentW

AgentW

AgentW: Your intelligent companion across the Aptos ecosystem - connecting 10+ DeFi protocols, executing cctp transaction, and preparing for battle in Agent Wars. Command once, accomplish everything.

Created on 24th March 2025

AgentW

AgentW

AgentW: Your intelligent companion across the Aptos ecosystem - connecting 10+ DeFi protocols, executing cctp transaction, and preparing for battle in Agent Wars. Command once, accomplish everything.

The problem AgentW solves

Meet AgentW - your technical companion for navigating the Aptos ecosystem. This sophisticated agent connects with a robust set of blockchain tools to execute your DeFi operations with precision.

  • AgentW integrates with more than 10 essential Aptos protocols through specialized tool interfaces. Need to manage lending positions on Joule? Place limit orders via Merkle Trade? Stake APT with Echo or Thala? Add liquidity on LiquidSwap? AgentW handles these operations through direct protocol interactions, eliminating the need to juggle multiple interfaces.
    The agent's architecture leverages specialized adapters for each protocol ecosystem - Joule tools for lending markets, Merkle tools for derivatives trading, Thala tools for stablecoin and LP management, LiquidSwap tools for AMM interactions, Amnis tools for staking, Aries tools for borrowing, Echelon tools for yield strategies, and Panora tools for optimized token swaps.
  • What sets AgentW apart is its MCP (Multi-Chain Protocol) server integration, providing a unified command structure across protocol boundaries. This technical foundation allows for complex, multi-step operations executed through a single instruction pipeline.
  • Also add CCTP (Cross-Chain Transfer Protocol) brings interoperability to a new level, enabling Circle USDC transfers between Aptos and eight other networks through secured Wormhole infrastructure. This implementation handles attestation verification and message passing between disparate blockchain.
  • Added native functionality of cdp commericial by paying the usdc natively from Aptos USDC. Added demo of buying OpenRouter Credits with Aptos USDC.
    For technically-minded users, AgentW exposes a full suite of protocol-specific functions while abstracting away the complexity of transaction building, signing, and execution. The upcoming Agent Wars feature will allow you to implement custom logic and strategy parameters, essentially programming your agent to compete in automated DeFi competitions.

Challenges I ran into

The development of AgentW involved several significant technical challenges.

  • MCP integration was particularly time-consuming, requiring extensive refactoring of communication protocols and transaction signing mechanisms to maintain security.

  • CCTP integration was equally demanding, necessitating deep understanding of Wormhole's messaging system and Circle's attestation verification. Testing across multiple testnet environments was essential to ensure secure cross-chain USDC transfers between Aptos and eight other chains.

  • A notable achievement emerged from these challenges - I created and submitted a PR to the global Agent Kit repository, which was merged into the main codebase. This contribution standardized many of the solutions pioneered with AgentW for all platform developers.

  • Server integration presented complications around state consistency and error handling. Each of the ten supported protocols (Joule, Merkle, Thala, etc.) had unique API structures and transaction requirements, making a unified interface challenging to implement.

Throughout this process, we maintained a methodical approach with modular design principles, allowing us to address issues without disrupting the entire system while creating a more adaptable codebase for future Aptos ecosystem changes.

Tracks Applied (4)

defAI-Trading

AgentW uniquely spans multiple tracks with its comprehensive approach to blockchain automation. For the defAI-Trading tr...Read More

Gamefi

In the GameFi track, AgentW introduces the innovative "Agent Wars" feature, where users create customized agents that co...Read More

Agentic Infra

For Agentic Infra, AgentW stands out as the only agent providing full MCP (Multi-Chain Protocol) server support, creatin...Read More

Aptos Foundation Grants

AgentW delivers a comprehensive blockchain automation solution on Aptos with features spanning multiple domains. It serv...Read More

Technologies used

Discussion

Builders also viewed

See more projects on Devfolio