How pkhaan/argo works
ARGO is a confidence-gated DeFi risk automation system: market and web intelligence feeds a specialist CrewAI analysis, whose verdict is checked and presented for approval before Sui execution. The dashboard also exposes market data, risk/trade details, action history, and on-chain events, with a wallet-signed DAO override. The README documents several capabilities whose implementations were not sampled; those links are cited to the README rather than presented as inspected code.
Main entry points: index.tsx ARGO dashboard · main.py Crew runner · tools Data tools · server.py Job API
Components 21
Market intelligence
- Data tools
tools
Agent analysis
- Specialist agents
agents.py - Analysis tasks
tasks.py - Crew runner
main.py - Verdict guards
main.py
Job and verdict service
- Job API
server.py - In-memory jobs
server.py
Dashboard
- ARGO dashboard
nextui-dashboard/pages/index.tsx - Analysis workflow
nextui-dashboard/hooks/useAgentAnalysis.ts - Live market widgets
nextui-dashboard/components/arg/CryptoSparklineWidget.tsx - Risk and trade views
nextui-dashboard/components/arg/RiskScore.tsx - Action log
nextui-dashboard/components/arg/ActionLog.tsx - On-chain event log
nextui-dashboard/components/arg/OnChainLog.tsx
Sui execution
- Execution API routes
nextui-dashboard/pages/api
Other components
- DAO operator
- Binance market data
- Dune Analytics
- Web search and news
- Connected Sui wallet
- Sui Move contract
- Sui RPC
Connections 21
- Binance market data → Data tools: supplies market data
- Dune Analytics → Data tools: supplies chain data
- Web search and news → Data tools: supplies web signals
- Data tools → Specialist agents: provides signals
agents.py - Specialist agents → Analysis tasks: perform tasks
- Crew runner → Specialist agents: builds crew
main.py - Crew runner → Analysis tasks: builds tasks
main.py - Crew runner → Verdict guards: checks verdict
main.py - Job API → Crew runner: runs analysis
server.py - Job API → In-memory jobs: updates jobs
server.py - ARGO dashboard → Analysis workflow: uses workflow
nextui-dashboard/pages/index.tsx - Analysis workflow → Job API: requests analysis
- ARGO dashboard → Live market widgets: renders widgets
nextui-dashboard/pages/index.tsx - ARGO dashboard → Risk and trade views: renders risk
nextui-dashboard/pages/index.tsx - ARGO dashboard → Action log: renders activity
nextui-dashboard/pages/index.tsx - ARGO dashboard → On-chain event log: renders events
nextui-dashboard/pages/index.tsx - ARGO dashboard → Execution API routes: requests execution
- Execution API routes → Sui Move contract: submits transactions
- Connected Sui wallet → Sui Move contract: signs override
- Sui Move contract → Sui RPC: emits events
- On-chain event log → Sui RPC: reads events