Skip to content

x402agent/SolanaOS / skills/swarm-orchestrator

swarm-orchestrator

Verified

Orchestrate multi-bot trading swarms on Pump.fun with persona-driven agents

Swarm Orchestrator

Manage multi-bot trading swarms with agent personas, epistemological memory, and cross-bot event routing.

Prerequisites

  • SolanaOS core installed
  • TELEGRAM_BOT_TOKEN for Telegram gateway (optional)
  • HELIUS_RPC_URL configured

Quick Start

# Start the swarm orchestrator
npm run swarm

# Start SolanaOS agent orchestrator
npm run claw
npm run claw:dev  # with hot reload

Agent Roles

RoleDescriptionAuto-Actions
sniperSnipe new token launchesMonitor → Buy on launch
monitorOn-chain event watcherObserve → Alert
fee-claimerClaim creator feesCheck → Claim automatically
analystPrice/curve analysisObserve → Report
momentumMomentum-based tradingRSI+EMA → Execute
graduationTarget near-graduation tokensMonitor progress → Buy
market-makerProvide liquidityBuy/sell oscillation
launcherCreate new tokensBuild → Launch
channel-feedTelegram channel updatesEvents → Post
outsiderCall tracking + leaderboardsTrack → Score

Persona Assignment

Every agent can be born with one of 43+ DeFi personas:

# Via Telegram
/spawn analyst --persona whale-watcher
/spawn sniper --persona alpha-leak-detector
/personas                    # Browse all personas
/personas trading            # Filter by category

Persona Categories

CategoryCountExamples
🪙 Crypto6Whale Watcher, Alpha Detector
🏦 DeFi14Yield Farmer, Flash Loan Analyst
📈 Trading5Pump SDK Expert, MEV Researcher
🔒 Security6Smart Contract Auditor
📚 Education2DeFi Mentor

Event Bus

All bots communicate through a pub/sub event bus:

EventSourceDescription
token:launchwebsocket-serverNew token detected
token:graduationmonitorToken completed bonding curve
trade:buy / trade:sellswarm-botTrade executed
alert:whalemonitorLarge transaction detected
fee:claimfee-claimerFee claimed successfully
call:newoutsiders-botNew call registered

Memory System

Each agent gets its own ClawVault with 3-tier epistemological memory:

  • KNOWN (60s TTL) — live market data
  • LEARNED (7d TTL) — validated patterns
  • INFERRED (3d TTL) — hypotheses
/memory <agent-id>     # View agent's memory
/agents                # List agents with memory stats
/health                # Collective memory overview

Telegram Commands

CommandDescription
/spawn <role> [--persona <id>]Spawn agent
/stop <id>Stop an agent
/agentsList active agents
/personas [query]Browse personas
/memory <id>View agent memory
/healthSwarm health dashboard
/price <mint>Token price
/quote <mint> <sol>Buy/sell quote
/curve <mint>Bonding curve state
/eventsRecent event stream

Bot Manager

The bot manager handles lifecycle for sub-bots:

import { BotManager, EventBus } from "solanaos";

const eventBus = new EventBus(5000);
const manager = new BotManager(eventBus);

await manager.start("telegram-bot");
await manager.start("swarm-bot");

manager.startHealthChecks();

// Route events
eventBus.on("alert:whale", (event) => {
  console.log("Whale detected:", event.data);
});
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall