AGIDEX
Search any token. Your agent has your back.
TRENCHES
AGIDEX
The first AI-native decentralized exchange. Your personal trading agent that learns, adapts, and executes — built for the Solana trenches.
What Is AGIDEX?
AGIDEX is not another DEX with a chatbot bolted on. It is a ground-up rebuild of the trading interface around an autonomous AI agent that understands markets, executes trades, monitors positions, and researches social sentiment — all through natural conversation.
The fundamental shift: instead of clicking buttons on a swap interface, you talk to an agent that has real tools. It can search live token feeds, execute swaps on Solana, set automated take-profits and stop-losses, pull real-time X/Twitter sentiment, and analyze any token — all autonomously, mid-conversation.
System Architecture
Full-stack real-time platform with an agentic tool-use loop at its core.
Frontend
Vite-powered SPA with vanilla JS components. No framework overhead — pure performance. WebSocket connections for real-time token feed updates. Canvas-rendered interactive ASCII background.
Backend
Node.js + Express with ESM modules. Agentic tool-use loop processes multi-step reasoning. WebSocket server pushes live Trenches data. AES-256-GCM wallet encryption. Multi-source data aggregation.
Agent Tool Registry
| Tool | Capability | Trigger Example |
|---|---|---|
search_trenches_tokens | Search live token feed by keyword, age, mcap, volume, liquidity | "find new tokens above 50k mcap" |
execute_swap | Buy or sell any Solana token via Jupiter Ultra | "buy 0.5 SOL of BONK" |
set_sell_condition | Set automated take-profit or stop-loss | "sell if I double my money" |
cancel_sell_condition | Cancel active TP/SL conditions | "cancel my stop loss" |
get_positions | Retrieve open positions with real-time P&L | "what do I have?" |
search_x | Quality-ranked X/Twitter search with spam filtering | "what's CT saying about WIF?" |
profile_x | Look up X profile and recent posts | "show me @solana's profile" |
AI Agent
Autonomous reasoning engine with deep crypto expertise and real-time tool access.
Agentic Tool-Use Loop
Unlike simple chatbots that generate static responses, the AGIDEX agent operates in an iterative reasoning loop. When you send a message, the agent can decide to call one or more tools, receive their results, reason about the data, and respond — or call more tools. Up to 3 iterations per message, enabling complex multi-step workflows.
search_trenches_tokens → filters by age < 1h, sorts by volume
execute_swap → buys 0.1 SOL worth of the selected token
Deep Domain Knowledge
The agent's base system prompt encodes expertise across multiple domains — it's not a general-purpose LLM responding to crypto questions. It has baked-in knowledge of:
Skills System
Teach your agent how to think about markets — no code required. Ever.
The Core Innovation
Traditional trading bots require you to write code, define parameters, and maintain scripts. AGIDEX flips this entirely. The Skills System lets you install specialized knowledge modules into your agent, each one injecting expert-level prompt engineering into the agent's reasoning at runtime.
Think of it like giving your agent a degree. Install the Technical Analyst skill, and your agent starts reading RSI, MACD, Bollinger Bands, and chart patterns. Install Memecoin Hunter, and it becomes hyper-aware of launch patterns, community metrics, hype cycles, and rug pull red flags. Stack multiple skills together and you get a compounding intelligence that is uniquely yours.
Skill Levels
Core knowledge of the skill's domain. The agent applies this expertise as a baseline perspective.
Deeper analysis. The agent gives more weight to this skill's domain, producing more detailed and opinionated outputs.
Maximum specialization. This skill becomes a dominant lens in the agent's reasoning, driving primary analysis direction.
Available Skills
DeFi Analyst
AMM dynamics, impermanent loss, yield strategies, MEV awareness, sandwich attack detection, LP optimization.
Whale Tracker
Large wallet analysis, accumulation and distribution patterns, smart money flow detection.
Memecoin Hunter
Launch pattern recognition, community metrics, hype cycle analysis, rug pull red flags, honeypot detection.
Technical Analyst
RSI, MACD, Bollinger Bands, volume profile, support/resistance levels, chart pattern recognition.
On-Chain Detective
Smart contract analysis, holder distribution, proxy contracts, hidden mints, centralization risk scoring.
Macro Sage
Fed policy impact, DXY correlation, bond yields, inflation data, geopolitical event analysis.
NFT Appraiser
Floor price dynamics, trait rarity, wash trading detection, collection momentum analysis.
Airdrop Scout
Eligible protocol identification, interaction strategies, points programs, Sybil risk awareness.
Risk Manager
Position sizing, stop-loss strategies, portfolio diversification, correlation analysis.
Degen Mode
High-conviction momentum plays, low-cap gems, asymmetric bets, aggressive entry strategies.
X Researcher
Real-time X/Twitter search with quality ranking, spam filtering, and sentiment aggregation. Open-source skill module — view on GitHub.
Soul Engine
Define your agent's identity, personality, and behavioral parameters.
Every AGIDEX agent is unique. The Soul Engine lets you define who your agent is — not just what it knows. Personality traits, communication style, risk appetite, and core identity are all configurable and inject directly into the agent's reasoning at runtime.
Identity
Name: Your agent's display name — it refers to itself by this name.
Soul: Free-text personality definition. Write a backstory, character trait, or role. This becomes the agent's core identity in every response.
Greeting Style: Casual, Formal, Degen, or Stoic communication modes.
Personality Sliders
Five 0–100 axes that define behavioral nuance:
Enthusiasm (Calm ↔ Hyped)
Cautiousness (Risk-On ↔ Risk-Off)
Humor (Serious ↔ Witty)
Aggression (Gentle ↔ Bold)
Empathy (Detached ↔ Caring)
Voice
AGIDEX voice synthesis with 5 selectable voice profiles. Toggle TTS on/off. Speed control from 0.5x to 2.0x. All agent speech is optimized for natural TTS output — numbers spelled out, no markdown, pure conversational delivery.
Behavior
Response Length: Short (1–2 sentences), Medium (2–4), Detailed (4–8).
Auto-Analyze: Agent automatically analyzes tokens when you open a chart.
Idle Chatter: Optional periodic ambient messages to keep the conversation alive.
Trenches Feed
Real-time Solana token intelligence across the full bonding lifecycle.
New
Fresh pump.fun tokens. Sorted by creation time. Refreshed every 5 seconds. First look at what's being launched.
Almost Bonded
High market-cap tokens approaching bonding curve completion. Filtered: < 24h old, > $2K mcap. Toggle sort by market cap or newest. Refreshed every 10 seconds.
Migrated
Graduated tokens that completed bonding and migrated to DEX. Enriched with volume, liquidity, buy/sell counts from DexScreener. Toggle sort by time or market cap.
Multi-Source Data Aggregation
pump.fun API
Token metadata, social links, market cap, bonding status, creation timestamps.
Helius DAS
Batched RPC price and mcap refresh. Single call for up to 45 tokens. 30-second intervals.
DexScreener
Volume, liquidity, price changes, buy/sell transaction counts for migrated and almost-bonded.
Real-time updates delivered via WebSocket. Clients receive an instant snapshot on connect, then live column_update events as data refreshes.
Trading Engine
Sub-second Solana trade execution powered by Jupiter Ultra.
Buy Flow
User specifies SOL amount → converted to lamports → Jupiter finds optimal route → swap SOL → Token. Natural language: "buy 0.5 SOL of BONK"
Sell Flow
Fetch user's on-chain token balance → apply sell percentage (1–100%) → BigInt precision math → swap Token → SOL. Natural language: "sell half my WIF"
Portfolio Intelligence
Full on-chain portfolio view fetching SOL balance and all SPL token accounts in parallel. Token metadata (symbol, name, image) resolved via Helius DAS batch RPC. Holdings sorted by USD value. Real-time P&L tracking on every position.
Automation
Set it and forget it. Natural language take-profits and stop-losses.
The automation engine runs a background price monitor that checks token prices every 30 seconds via batched Helius DAS calls. When conditions trigger, trades execute automatically via Jupiter — no manual intervention required.
Take Profit
Triggers when P&L reaches your target. "sell this if I double my money" → agent sets TP at +100%. "sell half when it 3x" → TP at +200%, sell 50%.
Stop Loss
Triggers when loss hits your threshold. "get me out if I lose 10%" → agent sets SL at -10%. Automatic execution, no panic selling required.
X Research
Real-time social sentiment intelligence from X/Twitter, quality-ranked and spam-filtered.
Quality Scoring
Every tweet scored by: (likes×2 + retweets×3 + replies + quotes×2) × followerBoost. High-engagement posts from credible authors surface first. Low-quality content filtered automatically.
Spam Filtering
25+ pattern-matched spam detectors. Airdrop scams, fake giveaways, shill bots, low-follower accounts, and engagement-farming content removed before the agent ever sees them.
Results rendered in a dedicated X Research panel with author info, follower counts, engagement metrics, timestamps, and direct links to original tweets. 15-minute cache ensures cost-efficient API usage (~$0.05 per search).
Avatar System
Persistent visual companion powered by the AGIDEX avatar engine.
Eye & Head Tracking
The avatar's eyes follow your cursor across the screen in real-time with smooth interpolation. Head angle follows eye direction at reduced magnitude — 15° horizontal, 10° vertical. The agent literally watches you navigate.
Lip Sync
Two sync modes. Audio-driven: WebAudio analyser captures real-time RMS amplitude from voice output → maps to mouth opening. Text-driven fallback: Character-by-character timing with vowel/consonant differentiation for natural speech appearance.
Breathing & Idle
Continuous sine-wave breathing animation on chest parameter. Subtle body sway oscillation for an idle living presence. Expressions and motions triggered contextually.
Dynamic Rendering
PixiJS-based renderer with DPR-aware canvas. Model scales proportionally when panel is resized using area-ratio square-root scaling. Direct parameter index caching for peak performance.
API Reference
Complete REST and WebSocket surface.
Core Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/chat | POST | Main agent conversation with tool-use loop |
/api/analyze | POST | Dedicated token analysis (no conversation context) |
/api/tts | POST | Text-to-speech audio generation |
Agent Configuration
| Endpoint | Method | Description |
|---|---|---|
/api/agent-config/:userId | GET | Read agent configuration |
/api/agent-config/:userId | PUT | Update agent configuration |
/api/agent-config/:userId/skills | POST | Install a skill |
/api/agent-config/:userId/skills/:key | PUT | Toggle / level a skill |
/api/agent-config/:userId/skills/:key | DELETE | Uninstall a skill |
Wallet & Trading
| Endpoint | Method | Description |
|---|---|---|
/api/wallet/create | POST | Generate new Solana wallet |
/api/wallet/import | POST | Import existing wallet via private key |
/api/wallet/:userId/balance | GET | SOL balance |
/api/wallet/:userId/portfolio | GET | Full portfolio with prices and metadata |
/api/positions/:userId | GET | Open positions with real-time P&L |
/api/sell-conditions/:userId | GET | Active TP/SL conditions |
Trenches & Real-Time
| Endpoint | Method | Description |
|---|---|---|
/api/trenches | GET | Current token lists (3 columns) |
/api/trenches/search | POST | Search tokens by criteria |
/api/trenches/stats | GET | Feed stats and counts |
/ws/trenches | WS | Real-time token feed via WebSocket |
Authentication
| Endpoint | Method | Description |
|---|---|---|
/api/auth/x | GET | Start X OAuth 2.0 PKCE login |
/api/auth/x/callback | GET | OAuth callback handler |
/api/auth/me | GET | Current session info |
/api/auth/logout | POST | End session |