ElizaOS Framework Adaptation
Why ElizaOS? (Differences from Vanilla AI)
Traditional AI agents (like AutoGPT or custom Python scripts) suffer from a critical flaw in DeFi: State Amnesia and Lack of Identity. They execute a task and forget. In high-stakes finance, context is everything.
CogniFi utilizes ElizaOS (formerly known as the ai16z framework), a sophisticated operating system designed specifically for autonomous agents.
Key Advantages for CogniFi:
Identity Persistence: Every agent has a
character.jsonfile that defines its personality, risk tolerance, and trading philosophy. "The Warlord" agent will always trade aggressively, while "The Pacifist" will focus on yield farming.Plugin Architecture: ElizaOS uses a modular plugin system. This allows us to inject custom Solana functionality (like the Lazarus Protocol) without rewriting the core AI logic.
Memory Stream: The agent remembers past trades, past tweets, and community interactions. If users dumped tokens on it yesterday, it remembers the betrayal today.
CogniFi Custom Plugins (@cognifi/plugin-solana-advanced)
We have forked and extended the standard @elizaos/plugin-solana to create a DeFi-native powerhouse.
Extended Functionality:
Action: DETECT_RUG: Instead of just buying tokenX, the plugin analyzes token metadata for common rug-pull patterns (e.g., unlocked liquidity, mutable metadata) before constructing the transaction.Action: EXECUTE_FLASH_LOAN: (Advanced) Allows the agent to borrow liquidity to execute arbitrage opportunities between Raydium and Orca.Action: MANAGE_BONDING_CURVE: Specific logic to interact with Lazarus Protocol curves, calculating the optimal entry point to maximize "Shell Value."
Last updated
