/swarmmind:swarm-orchestratefrom swarmmind
Run SwarmMind's autonomous DeFi intelligence cycle - coordinates market scanning, risk assessment, and trade execution across specialized AI agents with x402 micropayments on X Layer
Ships in swarmmind. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
SwarmMind's Portfolio Manager uses a ReAct (Reasoning + Acting) loop to autonomously coordinate a swarm of specialized DeFi agents. The LLM dynamically decides which agents to call, in what order, and how to react to results.
# 1. Start all agents
cd packages/agents/alpha-scout && npm run dev &
cd packages/agents/risk-oracle && npm run dev &
cd packages/agents/trade-executor && npm run dev &
cd packages/agents/portfolio-manager && npm run dev &
# 2. Set a strategy
curl -X POST http://localhost:3000/strategy \
-H "Content-Type: application/json" \
-d '{"strategy": "Conservative DeFi trading on X Layer, max $50 per position"}'
# 3. Run one ReAct cycle
curl -X POST http://localhost:3000/orchestrate/react
# 4. View reasoning trace
curl http://localhost:3000/reasoning/latest
| Tool | Agent | Description |
|---|---|---|
get_market_signals | Alpha Scout | Fetch trading signals (ARBITRAGE, MOMENTUM, MEAN_REVERSION) |
assess_risk | Risk Oracle | Evaluate signal risk (score 1-10, PROCEED/CAUTION/REJECT) |
assess_liquidity | Liquidity Agent | Check pool depth (DEEP/ADEQUATE/SHALLOW/AVOID) |
execute_trade | Trade Executor | Execute swap via OKX DEX aggregator |
get_portfolio_state | Portfolio Manager | Current positions, balances, recent trades |
check_agent_status | All | Health check for any agent |
Connect to ws://localhost:3000 to receive real-time events:
TOOL_CALL - Tool invocation (request/response phases)SIGNAL_DETECTED - New trading signal foundRISK_ASSESSED - Risk evaluation completedTRADE_EXECUTED - Trade confirmedLIQUIDITY_ASSESSED - Pool liquidity checkedPORTFOLIO_UPDATE - State updated after cycleStrategies are parsed by the LLM into structured parameters:
{
"riskTolerance": "LOW | MEDIUM | HIGH",
"maxPositionSize": 100,
"preferredTokens": ["OKB", "USDC"],
"strategyType": "CONSERVATIVE | BALANCED | AGGRESSIVE",
"constraints": ["Only trade OKB/USDC pair"]
}
SwarmMind integrates with the onchainos skill ecosystem:
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/swarm-riskAssess DeFi trade risk using SwarmMind's Risk Oracle agent - evaluates volatility, liquidity depth, smart contract risk, and market conditions on X Layer/swarm-signalsGet real-time DeFi trading signals from SwarmMind's Alpha Scout agent - analyzes X Layer DEX data for arbitrage, momentum, and mean reversion opportunities/swarm-tradeExecute DeFi trades through SwarmMind's Trade Executor agent - routes orders through OKX DEX aggregator on X Layer with slippage protectionGenerated from the plugin's indexed repository (kuaamu/swarmmind) — no native marketplace selected
npx claudepluginhub p/kuaamu-swarmmindOther plugins' skills for the same job