Skip to content

Autonomous Agent Upgrade for Intercom - Event-Driven Dex built on Trac Network. Auto-trigger trading, price-based logic, threshold based swaps, on-chain reactions. Agents execute swaps when on-chain conditions are met. Includes upgraded SKILL instructions, registered Trac address and verified working proof for TNK incentive.

Notifications You must be signed in to change notification settings

Hottieboss/AutoDEX-Agent-App-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

1001659664 1001659663 ![Uploading 1001659664.png…]() # AutoDEX Agent — Autonomous Event-Driven DEX on Trac Network

Fork of intercom-swap Built for the TNK fork incentive program · Ongoing · 500 TNK per eligible fork


📍 Trac Address

trac1s5uceuqlqaz5ezreyxwlx6azetn5hladjd9xtd5y27u6vaww3djqvpfk07

What This Fork Does

AutoDEX Agent transforms Intercom into an intelligent, automated trading system. Agents monitor price, RSI, volume, spread, and Solana on-chain events — and execute token swaps automatically when predefined conditions are met.

Core Capabilities

Feature Description
Auto-trigger Execution Agents post RFQs automatically when conditions fire
Price-based Logic AutoBuy below threshold, AutoSell above threshold
RSI + Volume Signals Secondary confirmations prevent false triggers
Arb Monitor Cross-venue spread watcher triggers both swap legs simultaneously
Chain Watcher Monitors Solana slots — auto-claims USDT escrow on confirmation
Agent Builder UI Deploy new agents with custom conditions, no code needed
Live Event Log Real-time feed of every trigger, execution, and chain event
Condition Monitor Dashboard showing exactly which conditions are currently met/unmet

How Autonomous Execution Works

Market Price / On-chain Event
          │
          ▼
  Agent Condition Check
  ┌────────────────────────────────┐
  │  IF price < $96,200            │
  │  AND rsi_14 < 40               │
  │  THEN swap 50,000 sats         │
  └────────────────────────────────┘
          │ condition met
          ▼
  Post RFQ → 0000intercomswapbtcusdt (P2P Intercom)
          │
          ▼
  Receive Quote → Accept → TERMS
          │
          ▼
  LN Invoice created (Maker)
          │
          ▼
  Taker pays LN → learns preimage
          │
          ▼
  Chain Watcher detects escrow → Auto-claims USDT (Solana)

Built-in Agents

Agent Trigger Action
AutoBuy price < threshold AND rsi_14 < 40 RFQ → swap USDT for BTC
AutoSell price > threshold AND volume_1h > X RFQ → swap BTC for USDT
Arb Monitor spread > 0.05% AND ln_liquidity > 100k Execute both legs
Chain Watcher escrow_slot confirmed AND preimage present Auto-claim USDT

Quick Start

# 1. Clone this fork
git clone https://github.com/YOUR_USERNAME/intercom-swap
cd intercom-swap

# 2. Install
scripts/bootstrap.sh
npm install

# 3. Run tests (mandatory)
npm test
npm run test:e2e

# 4. Configure promptd
./scripts/promptd.sh --print-template > onchain/prompt/setup.json
# Edit: llm.*, peer.keypair, sc_bridge.token_file, solana.rpc_url, ln.network

# 5. Start peer
scripts/run-swap-maker.sh swap-maker 49222 0000intercomswapbtcusdt

# 6. Start promptd + dashboard
./scripts/promptd.sh --config onchain/prompt/setup.json
# Open: http://127.0.0.1:9333/

Or open index.html directly in any browser for instant proof.


Proof of Working App

📸 Screenshot of AutoDEX Agent dashboard running — add your own below:

AutoDEX Agent Dashboard

Dashboard showing 4 active agents, live price chart with threshold lines, event log, and condition monitor.


File Structure

intercom-swap/
├── index.html   ← AutoDEX Agent dashboard (this fork's app)
├── README.md    ← This file (Trac address registered above)
├── SKILL.md     ← Updated agent instructions
├── src/         ← Intercom core (upstream)
├── scripts/     ← CLI tooling (upstream)
├── contract/    ← Solana escrow program (upstream)
└── onchain/     ← Local state — gitignored

Links


License

MIT — see LICENSE.md

About

Autonomous Agent Upgrade for Intercom - Event-Driven Dex built on Trac Network. Auto-trigger trading, price-based logic, threshold based swaps, on-chain reactions. Agents execute swaps when on-chain conditions are met. Includes upgraded SKILL instructions, registered Trac address and verified working proof for TNK incentive.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages